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.
{
"id": "prof_abc123",
"name": "my-profile",
"createdAt": "2024-01-15T10:30:00Z"
}{
"error": "Not Found",
"message": "Profile not found"
}Monitor API usage, manage profiles, and track performance from the dashboard.
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
/v1/profiles/v1/profiles/v1/profiles/:id/v1/profiles/:id/v1/profiles/:idFrames
Upload and manage reference images
/api/frames/api/frames/upload/api/frames/upload/api/framesEvaluation
Score content against taste profiles
/v1/profiles/:id/evalExport
Export profiles for offline use
/v1/profiles/:id/exportRate Limits
API requests are rate limited based on your plan. Rate limit headers are included in every response.
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