Skip to content
MARCBRAIN
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_key

Endpoints

MethodPathDescription
GET/v1/pingCheck your key and connection.
POST/v1/smsSend an SMS message.
GET/v1/sms/{id}Get the delivery status of a message.
POST/v1/payments/verifyConfirm a mobile money or card payment by reference.
GET/v1/accounts/meRead the signed in Marcbrain Account (OAuth token).
POST/v1/render/jobsSubmit 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." }
}
StatusMeaning
400The request is missing a field or has a bad value.
401The key is missing or not valid.
404The resource does not exist.
429Too many requests. Slow down and retry.
500Something 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.