REST API
Base URL, authentication, errors, and pagination for the Dexby REST API.
Quick reference
- Base URL:
https://api.harryy.ai - Auth:
Authorization: Bearer $DEXBY_API_KEYon every/v1route - Body: JSON with
Content-Type: application/json - Success:
{ "data": ... } - Error:
{ "error": { "code": "...", "message": "..." } } - Every
/v1response carries aRequest-Idheader (req_…). Quote it to support. Idempotency-Keyon aPOSTorPATCHmakes a retry answer with the first result.
curl "https://api.harryy.ai/v1/connectors?limit=5" \
-H "Authorization: Bearer $DEXBY_API_KEY"Authentication
Send a project API key as a bearer token.
| Rule | Detail |
|---|---|
| Format | dx_ followed by 64 hex characters. |
| Where to get it | The dashboard, Configure → API keys → Create. It is shown once. |
| Project | A key belongs to one project. The key decides the project, so no /v1 route takes a project id. |
| Revocation | Revoking a key in the dashboard stops it at once. An expired key stops at its expiry. |
| Failure | A missing, unknown, revoked, or expired key answers 401 UNAUTHORIZED. |
| Server only | /v1 sends no CORS headers. Call it from your server, never from a browser, and keep the key out of client bundles. |
Requests
- A body that is not valid JSON is read as
{}, so required fields then fail validation. - Boolean query parameters take
trueorfalse. - Path parameters are written
:idstyle in these docs, for example/v1/sessions/:id/mcp.
Errors
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request body",
"issues": [
{
"code": "invalid_type",
"path": ["userId"],
"message": "Invalid input: expected string, received undefined"
}
]
}
}Branch on code; message can change. issues comes with VALIDATION_ERROR, and choices
(the user's accounts as { id, displayName, global }) with AMBIGUOUS_CONNECTION. The response's
Request-Id header names the call, refused ones included; the log row and audit records keep the
same id.
| Status | Codes |
|---|---|
| 400 | VALIDATION_ERROR, MISSING_CONNECTION, REAUTH_REQUIRED, CONNECTION_NOT_FOUND, EXECUTION_ERROR; a JSON-RPC error on an MCP endpoint URL without a user |
| 401 | UNAUTHORIZED |
| 403 | ACTION_DISABLED, FORBIDDEN_ENDPOINT, FORBIDDEN |
| 404 | NOT_FOUND, TOOL_NOT_FOUND, CONNECTOR_NOT_FOUND, SESSION_NOT_FOUND, CONNECTION_NOT_FOUND |
| 405 | No body. GET or DELETE on an MCP route. |
| 409 | AMBIGUOUS_CONNECTION, CONFLICT, NAME_TAKEN, KEY_TAKEN, AUTH_CONFIG_IN_USE, CONNECTOR_UNAVAILABLE, IDEMPOTENCY_CONFLICT, IDEMPOTENCY_IN_PROGRESS |
| 429 | RATE_LIMITED, with Retry-After in seconds |
| 500 | INTERNAL_ERROR, EXECUTION_ERROR (a failed credential rotation) |
| 502 | UPSTREAM_ERROR |
| 503 | CREDENTIAL_UNAVAILABLE |
What each code means and how to fix it: errors.
Pagination
Every /v1 list returns one page at a time, as does the public GET /catalog.
| Query | Default | Rule |
|---|---|---|
limit | 100 | Integer, 1 to 500. Connections, triggers, users, sessions and connect links: 1 to 200, default 50. |
cursor | none | The previous page's nextCursor. |
A page answers { "data": [...], "nextCursor": "..." }. nextCursor is null on the last
page. On GET /v1/connectors and GET /v1/tools, pass facets=true to add counts per category.
Idempotency
Send Idempotency-Key on a POST or PATCH to make a retry safe. The first request with a key
runs; a repeat with the same key and the same request, within 24 hours, answers with the first
answer again, marked Idempotent-Replayed: true, without acting a second time. Keys belong to the
project: any of its API keys shares them.
- A key is 1 to 255 visible ASCII characters, or
400 VALIDATION_ERROR. - The same key with a different method, path or body answers
409 IDEMPOTENCY_CONFLICT. - A repeat while the first request still runs answers
409 IDEMPOTENCY_IN_PROGRESS. Retry shortly. - A
2xxanswer is kept, and so is any answer after which the request may have acted: one given once the connected app was reached, its own error included (such as400 EXECUTION_ERROR), and a5xxother than503(such as502 UPSTREAM_ERROR). Any other4xx, and503, did nothing, so its key is free for the retry or the corrected request. - The kept answer is encrypted, with the end user it names. Erasing that user erases it.
- MCP routes take no
Idempotency-Key; a session'sdexby_executehas its ownidempotencyKey.
The SDK sends a key with every POST and PATCH while retries are on, the same for each attempt.
Rate limits
/v1 requests are limited per organization by its plan, shared by every project and key. Over
the limit, a call answers 429 RATE_LIMITED with a Retry-After header in seconds. Limits at the
provider come back as UPSTREAM_ERROR or EXECUTION_ERROR.
Resources
| Resource | Routes |
|---|---|
| Connectors | GET /v1/connectors, GET /v1/connectors/:id |
| Tools | GET /v1/tools, GET /v1/tools/:toolId, POST /v1/tools/execute, POST /v1/tools/proxy |
| Sessions | GET, POST /v1/sessions, GET, DELETE /v1/sessions/:id, /tools, /tools/:name, /mcp |
| Auth configs | GET, POST /v1/auth-configs, GET, PATCH, DELETE /v1/auth-configs/:id |
| Connections | GET, POST /v1/connections, GET, PATCH, DELETE /v1/connections/:id, /default |
| Users | GET /v1/users, GET, DELETE /v1/users/:userId |
| Connect links | GET, POST /v1/connect-links, DELETE /v1/connect-links/:id |
| Triggers | GET, POST /v1/triggers, GET, DELETE /v1/triggers/:id, GET /v1/trigger-types |
| MCP | POST https://mcp.dexby.ai/:slug/:userId, POST /v1/mcp/:slug/:userId |
| MCP endpoints | GET /v1/mcp-endpoints, GET /v1/mcp-endpoints/:slug |
| Logs | GET /v1/logs, GET /v1/logs/:id |
| Usage | GET /v1/usage |
Routes that need no API key (catalog, health, assets, trigger ingress, the hosted Connect page) are in public endpoints.