Dexby

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_KEY on every /v1 route
  • Body: JSON with Content-Type: application/json
  • Success: { "data": ... }
  • Error: { "error": { "code": "...", "message": "..." } }
  • Every /v1 response carries a Request-Id header (req_…). Quote it to support.
  • Idempotency-Key on a POST or PATCH makes a retry answer with the first result.
terminal
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.

RuleDetail
Formatdx_ followed by 64 hex characters.
Where to get itThe dashboard, Configure → API keys → Create. It is shown once.
ProjectA key belongs to one project. The key decides the project, so no /v1 route takes a project id.
RevocationRevoking a key in the dashboard stops it at once. An expired key stops at its expiry.
FailureA 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 true or false.
  • Path parameters are written :id style in these docs, for example /v1/sessions/:id/mcp.

Errors

error
{
	"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.

StatusCodes
400VALIDATION_ERROR, MISSING_CONNECTION, REAUTH_REQUIRED, CONNECTION_NOT_FOUND, EXECUTION_ERROR; a JSON-RPC error on an MCP endpoint URL without a user
401UNAUTHORIZED
403ACTION_DISABLED, FORBIDDEN_ENDPOINT, FORBIDDEN
404NOT_FOUND, TOOL_NOT_FOUND, CONNECTOR_NOT_FOUND, SESSION_NOT_FOUND, CONNECTION_NOT_FOUND
405No body. GET or DELETE on an MCP route.
409AMBIGUOUS_CONNECTION, CONFLICT, NAME_TAKEN, KEY_TAKEN, AUTH_CONFIG_IN_USE, CONNECTOR_UNAVAILABLE, IDEMPOTENCY_CONFLICT, IDEMPOTENCY_IN_PROGRESS
429RATE_LIMITED, with Retry-After in seconds
500INTERNAL_ERROR, EXECUTION_ERROR (a failed credential rotation)
502UPSTREAM_ERROR
503CREDENTIAL_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.

QueryDefaultRule
limit100Integer, 1 to 500. Connections, triggers, users, sessions and connect links: 1 to 200, default 50.
cursornoneThe 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 2xx answer 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 as 400 EXECUTION_ERROR), and a 5xx other than 503 (such as 502 UPSTREAM_ERROR). Any other 4xx, and 503, 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's dexby_execute has its own idempotencyKey.

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

ResourceRoutes
ConnectorsGET /v1/connectors, GET /v1/connectors/:id
ToolsGET /v1/tools, GET /v1/tools/:toolId, POST /v1/tools/execute, POST /v1/tools/proxy
SessionsGET, POST /v1/sessions, GET, DELETE /v1/sessions/:id, /tools, /tools/:name, /mcp
Auth configsGET, POST /v1/auth-configs, GET, PATCH, DELETE /v1/auth-configs/:id
ConnectionsGET, POST /v1/connections, GET, PATCH, DELETE /v1/connections/:id, /default
UsersGET /v1/users, GET, DELETE /v1/users/:userId
Connect linksGET, POST /v1/connect-links, DELETE /v1/connect-links/:id
TriggersGET, POST /v1/triggers, GET, DELETE /v1/triggers/:id, GET /v1/trigger-types
MCPPOST https://mcp.dexby.ai/:slug/:userId, POST /v1/mcp/:slug/:userId
MCP endpointsGET /v1/mcp-endpoints, GET /v1/mcp-endpoints/:slug
LogsGET /v1/logs, GET /v1/logs/:id
UsageGET /v1/usage

Routes that need no API key (catalog, health, assets, trigger ingress, the hosted Connect page) are in public endpoints.

On this page