Aperçu de l'API
Documentation de l'API REST et authentification
REST API
avidia content provides a RESTful API for programmatic access to all platform features. All endpoints return JSON responses following a consistent format.
Authentication
API requests require authentication using Supabase session tokens. Include the token in the Authorization header.
Authorization: Bearer <your-token>
Response Format
All API responses follow a consistent JSON format:
{
"success": true,
"data": { ... },
"error": null
}Available Endpoints
GET
/api/flowsList all flowsPOST
/api/flowsCreate a new flowGET
/api/flows/:idGet flow detailsPUT
/api/flows/:idUpdate a flowPOST
/api/ai/generate-contentStart AI content generation (returns a jobId)GET
/api/jobs/:idStatus, progress and result of a background jobPOST
/api/jobs/:id/cancelCancel a queued or running jobPOST
/api/ai/generate-imageGenerate an imagePOST
/api/ai/generate-audioGenerate audio