The Cargo API allows you to programmatically interact with the Cargo platform. Use it to manage your data models, orchestrate workflows, build AI agents, and integrate with your existing systems.
For JavaScript and TypeScript, you can use our official client library @cargo-ai/api for a typed, convenient way to call the API.
Cargo is built around eight core domains that work together to automate your go-to-market operations:
Core Entities
Base URL
All API requests should be made to:
Authentication
The Cargo API uses Bearer token authentication. Include your API token in the Authorization header of all requests:
Getting your API Token
- Navigate to your workspace settings
- Go to Settings > API Tokens
- Click Create Token and copy the generated token
Keep your API token secure. Never share it publicly or commit it to version
control.
All API responses are returned in JSON format. Data is returned directly at the root level.
Success Response
Error Response
Or for specific error types:
Rate Limiting
API requests are rate-limited per workspace. If you exceed the rate limit, you’ll receive a 429 Too Many Requests response.