Base URLs
Always use the sandbox environment for development and testing.
Authentication
All API requests require authentication via theX-API-Key header:
string
required
Your API key. Use
m2m_test_* for sandbox.string
required
Must be
application/json for all POST/PUT requests.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:
Pagination
List endpoints support pagination usinglimit 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.
Idempotency
For POST requests, you can include anIdempotency-Key header to ensure the request is processed only once:
Idempotency-Key, you’ll receive the same response as the original request.
Available endpoints
Create Link
Generate a magic link for your user.