> For the complete documentation index, see [llms.txt](https://docs.cekat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cekat.ai/en/developer-tools/api-tools.md).

# API Tools

## Open Devtools

1. Click **App Launcher** (the grid icon) in the **app bar** at the top of the screen.
2. Under **Your Products**, select **Devtools**. It opens as a tab in the app bar.
3. Use the Devtools sidebar to select **API Keys**, **Webhooks**, or **API Tools**. The **Activity** section contains API message logs, and **API Documentation** opens the API reference.

![Devtools in the App Launcher and its sidebar navigation](https://3748649913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzFvvakHJ5OVubOo4WKlR%2Fuploads%2FQEWjiTTZ1C6lz7w4FHoG%2Fdevtools-app-bar.png?alt=media)

API Tools lets you connect custom tools to your user data, such as addresses, shipment tracking or other customer information.

### **How to use API Tools**

1. **Open API Tools:**
   * Open **App Launcher → Devtools** from the app bar.
   * Select **API Tools** under **Integration**.
2. **Create a custom AI tool (example: shipping cost check):**
   * Click **Create AI Tools**, or go straight to **API Tools**.
   * Choose **Add New API Tools**.
3. **Fill in the new tool's details:**
   * **Name:** Get\_shipping\_cost
   * **Description:** A tool for getting shipping costs.
   * **Webhook Address:** your API server's address (for example `https://logistic-dev-api.zcode.id/order/shipping/cost`).
   * **Max Tool Calls:** the maximum number of calls (default: 30).
   * **API Key Bearer:** (optional) for extra security.
4. **Add AI input fields:**
   * **Destination:**
     * Type: Text, Description: Postal code (for example 11470), Required: Yes.
   * **Weight:**
     * Type: Number, Description: Package weight in grams (for example 1000), Required: Yes.
   * **COD:**
     * Type: Boolean, Description: Cash on Delivery (true/false), Required: No.
   * **Courier:**
     * Type: Text, Description: The courier to use, Enum: jne, ninja, Required: Yes.
5. **Add an additional payload:**
   * **Origin:**
     * Key: origin, Value: 14310.
   * **Contact info:**
     * Key: no\_hp, Type: Phone Number.
6. **Save and test the tool:**
   * Click **Create Tool**.
   * Run a test on the right side of API Tools.
   * Click **Save**.
7. **Turn the tool on:**
   * Go back to **Setting AI Agent > Integration**.
   * Turn on the tool you just created.
8. **Test it in General Chat:**
   * Ask about shipping costs in a chat to see how the AI responds.

If anything's still unclear, watch the video tutorial below to see each step in action.

{% embed url="<https://youtu.be/5SpzL-0TVzI>" %}
