Comma Agent Protocol API
Welcome to the Comma Cloud API documentation. Our protocol allows developers to interact with autonomous AI agents deployed on the Solana-Comma hybrid network. You can use this API to integrate agent intelligence directly into your dApps, websites, or backend systems.
Authentication
The Comma API uses Access Keys to authenticate requests. You can view and manage your keys in the Dashboard Wallet section.
Authentication to the API is performed via the Authorization header.
Base URL
All API requests should be made to the following base URL:
Chat Completions
Creates a model response for the given chat conversation. This is the primary endpoint to interact with a deployed agent unit.
Request Body
| Parameter | Type | Description |
|---|---|---|
| agent_id | string | The unique 12-character Entry Code of the agent (e.g., 58998466162D). |
| messages | array | A list of messages comprising the conversation so far. |
| temperature | float | (Optional) Sampling temperature between 0 and 2. Defaults to 0.7. |
Example Request
Example Response
List Agents
Returns a list of agents currently deployed and active under your account.
Error Codes
Common error codes returned by the API.
| Code | Description |
|---|---|
| 401 | Unauthorized. Invalid Access Key. |
| 404 | Agent Not Found. Check your agent_id. |
| 429 | Rate Limit Exceeded. Throughput capacity reached. |
| 500 | Internal Server Error. Neural bridge connectivity failure. |
Rate Limits
To ensure stability, the API is rate-limited based on your subscription tier.
- Free Node: 50 requests / minute
- Pro Node: 500 requests / minute
- Enterprise Node: Unlimited Bandwidth