TagMango API
Overview
TagMango APIs are a collection of extensive RESTful APIs made to give partners and outside developers safe access to TagMango's main platform functionalities. By integrating with TagMango's creative economy platform, external apps can access essential features like messaging, gamification, course content, and subscriptions.
Getting Started
- Obtain your API key from TagMango.
- Include required headers in all requests, x-whitelabel-host is required for all requests.
- Test endpoints using your API key.
Authentication & Headers
- Authorization:
Bearer <your-api-key>
- x-whitelabel-host: Your whitelabel dashboard domain (e.g.,
yourhost.tagmango.com
) - x-timezone-offset: Timezone offset in minutes (e.g.,
330
for IST)
x-timezone-offset header is optional. If not provided, the server will use the default timezone of the server. It's in minutes.
API key should be handled securely and not exposed to the client.
Response Format
All API endpoints return responses in JSON format with consistent structure:
{
"message": "Operation completed successfully",
"success": true,
"data": <Response data here>
}
Error Handling
The API uses standard HTTP status codes:
- 400 Bad Request: Invalid request parameters
- 401 Unauthorized: Authentication failed
- 404 Not Found: Resource not found
- 429 Too Many Requests: Rate limit exceeded
- 500 Internal Server Error: Server-side error
- API has a rate limit of 120 requests per 10 seconds.
- If you exceed the rate limit, you will receive a 429 status code.
Authentication
- API Key: api_key
- HTTP: Bearer Auth
Security Scheme Type: | apiKey |
---|---|
Header parameter name: | x-api-key |
Security Scheme Type: | http |
---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |