avidia contentAide & Documentation
Retour à l'application

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 flows
POST
/api/flowsCreate a new flow
GET
/api/flows/:idGet flow details
PUT
/api/flows/:idUpdate a flow
POST
/api/ai/generate-contentStart AI content generation (returns a jobId)
GET
/api/jobs/:idStatus, progress and result of a background job
POST
/api/jobs/:id/cancelCancel a queued or running job
POST
/api/ai/generate-imageGenerate an image
POST
/api/ai/generate-audioGenerate audio