Developer APIs
API Reference
REST endpoints for SMS, payments, Marcbrain Account sign in and cloud rendering. JSON over HTTPS with key based authentication.
Access
Approved customers: Developer APIs are enabled per Marcbrain Account. Add Developer APIs to your account and our team will issue test and live keys, usually within one business day.
Base URL: https://api.marcbrainltd.com
Authentication
Send your secret key as a bearer token. Keep live keys on your server only and rotate them from Settings, Security.
HTTP
GET /v1/ping HTTP/1.1
Host: api.marcbrainltd.com
Authorization: Bearer sk_test_your_keyEndpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/ping | Check your key and connection. |
| POST | /v1/sms | Send an SMS message. |
| GET | /v1/sms/{id} | Get the delivery status of a message. |
| POST | /v1/payments/verify | Confirm a mobile money or card payment by reference. |
| GET | /v1/accounts/me | Read the signed in Marcbrain Account (OAuth token). |
| POST | /v1/render/jobs | Submit a cloud rendering job. |
| GET | /v1/render/jobs/{id} | Check a rendering job and get download links. |
Errors
Errors return a non 2xx status and a JSON body.
JSON
{
"ok": false,
"error": { "code": "invalid_key", "message": "The API key is not valid." }
}| Status | Meaning |
|---|---|
| 400 | The request is missing a field or has a bad value. |
| 401 | The key is missing or not valid. |
| 404 | The resource does not exist. |
| 429 | Too many requests. Slow down and retry. |
| 500 | Something went wrong on our side. |
Webhooks
Webhooks are sent as POST requests with a JSON body. Respond with HTTP 200 quickly and process work in the background. Treat each event ID as unique so a retry never runs twice.
Rate limits
The default limit is 60 requests per minute per key. Contact support if you need more.