Passer au contenu

API Aperçu

This is the Documentation of the public API of Capgo cloud. The API allows you to programmatically manage your Capgo resources, including organizations, Appareils, Canaux, and Bundles. It’s designed to be RESTful and uses standard HTTP methods.

All API endpoints require authentication. To authenticate your requests, add your API key in the authorization header.

Exemple:

Terminal window
curl -H "authorization: your-api-key" https://api.capgo.app/organization/

The API implements rate limiting to ensure fair Utilisation. Current limits are:

  • 100 requests per minute for standard accounts
  • 1000 requests per minute for Entreprise accounts

If you exceed these limits, you’ll receive a 429 (Too Many Requests) response.

All responses are in JSON format. Successful responses typically include either a data object or a status field. Error responses include an error field with a description of what went wrong.

Exemple Succès response:

{
"status": "ok",
"data": { ... }
}

Exemple Erreur response:

{
"error": "Invalid API key",
"status": "KO"
}
  1. Erreur Handling: Always Vérifier for Erreur responses and handle them appropriately
  2. Rate Limiting: Implement exponential backoff when hitting rate limits
  3. Caching: Cache responses when appropriate to reduce API calls
  4. Versioning: Keep track of API changes through our changelog