Skip to main content

Base URL

Send all API requests to:
https://api.getarbol.com

Authentication

Every request requires a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Get your API key from app.getarbol.com under Settings → API Keys.
Keep your keys secret. Never commit them to GitHub, paste them in Slack, or use them in client-side JavaScript. API keys give full access to your account.

Request Format

All requests use JSON. Include Content-Type: application/json in your headers:
curl -X POST https://api.getarbol.com/agents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "My Agent"}'

Response Format

All responses return JSON. Success = 2xx status code. List endpoints include pagination:
{
  "items": [...],
  "total": 42,
  "page": 1,
  "pageSize": 20
}

Error Handling

When something goes wrong, you’ll get an HTTP error code and a JSON error object:
{
  "error": {
    "code": "NOT_FOUND",
    "message": "The requested resource was not found."
  }
}
Status CodeDescription
400Bad Request - Invalid parameters or request body
401Unauthorized - Missing or invalid API key
403Forbidden - Insufficient permissions
404Not Found - Resource does not exist
409Conflict - Resource already exists or state conflict
422Unprocessable Entity - Validation error
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Rate Limiting

We limit requests per organization to keep the API fast for everyone. Hit the limit and you’ll get a 429 status code. Check these headers to see your limits:
  • X-RateLimit-Limit - Maximum requests per window
  • X-RateLimit-Remaining - Remaining requests in the current window
  • X-RateLimit-Reset - Unix timestamp when the window resets

Pagination

List endpoints support pagination with the following query parameters:
ParameterTypeDefaultDescription
pageinteger1Page number
pageSizeinteger20Number of items per page (max 100)

ID Prefixes

Every resource ID starts with a prefix so you can tell what it is at a glance:
ResourcePrefixExample
Agentagt_agt_abc123...
Contactcnt_cnt_def456...
Conversationcnv_cnv_ghi789...
Campaigncmp_cmp_jkl012...
Propertyprp_prp_mno345...
Documentdoc_doc_pqr678...

Need Help?

If you run into issues or need support, head to your dashboard to create a support ticket. You can also email us directly at david@getarbol.com.