API Reference
Complete reference for the Suada API
The Suada API is organized around REST, like a divine order governing the digital cosmos. Our API accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs - the sacred language through which mortals may commune with our services.
Base URL
Authentication
The API uses API keys for authentication. You can obtain your API key from the Suada Dashboard.
Keep your API keys secure and never share them in publicly accessible areas such as GitHub, client-side code, etc.
External User Identifiers
When using passthrough mode, you must include an external user identifier with each request. This allows you to associate Suada resources with your application’s users.
Or as part of the request body:
Ensure that external user identifiers are consistent across requests for the same user to maintain proper resource association.
Rate Limiting
The API implements rate limiting based on your plan:
Plan | Rate Limit |
---|---|
PRO | 300 requests per minute |
ENTERPRISE | 1000 requests per minute |
Rate limit headers are included in all responses:
Error Handling
The API uses conventional HTTP response codes to indicate the success or failure of an API request:
2xx
- Success4xx
- Client errors5xx
- Server errors
Error responses include a JSON object with more details:
Available Endpoints
Chat
Integrations
List Integrations
Get available integrations
Connect Integration
Initialize OAuth flow for an integration
Integration Callback
Handle OAuth callback
Select Property
Select integration property
Integration Status
Get integration status
Disconnect Integration
Disconnect an integration
Model Context Protocol (MCP)
Define Context
Define context for the business analyst
List Contexts
Get available contexts
Get Context
Get details about a specific context
Update Context
Update an existing context
Delete Context
Delete a context
API Modes
Standard Mode
In standard mode, Suada manages user contexts internally. This is the simplest way to get started with the API.
Passthrough Mode
In passthrough mode, you manage user contexts through your application. This mode requires you to:
- Include an external user identifier with each request
- Manage user authentication and authorization in your application
- Maintain consistent user identifiers across requests
Passthrough mode is ideal for applications with existing user management systems.
SDKs
We provide official SDKs for several platforms to help you integrate with Suada: