API Overview
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
This is the documentation of the public API of Capgo cloud. The API allows you to programmatically manage your Capgo resources, including organizations, devices, channels, and bundles. It’s designed to be RESTful and uses standard HTTP methods.
Authentication
Section titled “Authentication”All API endpoints require authentication. To authenticate your requests, add your API key in the authorization header.
Example:
curl -H "authorization: your-api-key" https://api.capgo.app/organization/Rate Limiting
Section titled “Rate Limiting”The API implements rate limiting to ensure fair usage. Current limits are:
- 100 requests per minute for standard accounts
- 1000 requests per minute for enterprise accounts
If you exceed these limits, you’ll receive a 429 (Too Many Requests) response.
Response Format
Section titled “Response Format”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.
Example success response:
{ "status": "ok", "data": { ... }}Example error response:
{ "error": "Invalid API key", "status": "KO"}Available Endpoints
Section titled “Available Endpoints”Best Practices
Section titled “Best Practices”- Error Handling: Always check for error responses and handle them appropriately
- Rate Limiting: Implement exponential backoff when hitting rate limits
- Caching: Cache responses when appropriate to reduce API calls
- Versioning: Keep track of API changes through our changelog
Keep going from API Overview
Section titled “Keep going from API Overview”If you are using API Overview to plan authentication and account flows, connect it with @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, Two-factor authentication for the implementation detail in Two-factor authentication, and SSO (Enterprise) for the implementation detail in SSO (Enterprise).