Skip to main content

Test a custom API tool

POST 

/v1/agents/:agentId/custom-api-tools/:toolId/test

x-scope: "custom_api:write"

One real call to your site (two for a write when CSRF is switched on) with sample inputs, through the same path the AI's calls take, without the AI. The answer is 200 whatever the site said: passed is the outcome, and a passing test lets the tool be switched on. The site's response comes back cut at 10,000 characters; the request sent is not echoed. By default Mojeeb waits up to 15 seconds and refuses a response over 1 MB, as on the AI's calls. A test counts toward your key's request budget, and your company can run 30 tests a minute across its keys and the dashboard (429 test_rate_limited beyond that, with Retry-After).

Request​

Responses​

The test's outcome.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.