Skip to main content

Base URLs

Always use the sandbox environment for development and testing.

Authentication

All API requests require authentication via the X-API-Key header:
string
required
Your API key. Use m2m_test_* for sandbox.
string
required
Must be application/json for all POST/PUT requests.
See the Authentication guide for details on managing API keys.

Response format

All successful responses follow this structure:
boolean
required
Always true for successful responses.
object
required
The response payload. Structure varies by endpoint.

Error responses

When an error occurs, the response includes an error code and message:
boolean
required
Always false for error responses.
object
required
Error details.

HTTP status codes

Common error codes

Rate limiting

The API enforces rate limits to ensure fair usage: When you exceed the rate limit, you’ll receive a 429 Too Many Requests response:
Implement exponential backoff in your integration to handle rate limiting gracefully.

Pagination

List endpoints support pagination using limit and offset parameters:
integer
default:"20"
Maximum number of results to return. Range: 1-100.
integer
default:"0"
Number of results to skip for pagination.
Paginated responses include metadata:

Idempotency

For POST requests, you can include an Idempotency-Key header to ensure the request is processed only once:
If you retry a request with the same Idempotency-Key, you’ll receive the same response as the original request.

Available endpoints

Create Link

Generate a magic link for your user.