REST API
API Reference
Complete reference documentation for the commandAGI REST API.
Base URL
https://api.commandAGI.comAuthentication
All API requests require authentication via Bearer token. Include your API key in the Authorization header.
Authorization: Bearer to_your_api_key_hereSee Authentication for details on obtaining and managing API keys.
Response Format
All responses are JSON. Successful requests return a 2xx status code with the requested data. Errors return an appropriate status code with an error object.
Success Response
{
"id": "prof_abc123",
"name": "my-profile",
"createdAt": "2024-01-15T10:30:00Z"
}Error Response
{
"error": "Not Found",
"message": "Profile not found"
}HTTP Status Codes
| Code | Description |
|---|---|
200 | Request succeeded |
201 | Resource created successfully |
400 | Bad request - invalid parameters |
401 | Unauthorized - invalid or missing API key |
403 | Forbidden - insufficient permissions |
404 | Resource not found |
500 | Internal server error |
Endpoints
Profiles
Create, manage, and query taste profiles
GET
/v1/profilesPOST
/v1/profilesGET
/v1/profiles/:idPATCH
/v1/profiles/:idDELETE
/v1/profiles/:idFrames
Upload and manage reference images
GET
/api/framesPOST
/api/frames/uploadPUT
/api/frames/uploadDELETE
/api/framesEvaluation
Score content against taste profiles
POST
/v1/profiles/:id/evalExport
Export profiles for offline use
GET
/v1/profiles/:id/exportRate Limits
API requests are rate limited based on your plan. Rate limit headers are included in every response.
Rate Limit Headers
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1705312200| Plan | Requests/min | Requests/day |
|---|---|---|
| Free | 60 | 1,000 |
| Pro | 300 | 10,000 |
| Enterprise | Custom | Unlimited |
Official SDKs
We provide official SDKs for popular languages. These handle authentication, retries, and provide typed responses.
JavaScript / TypeScript
npm install commandAGIPython
pip install commandAGI