OpenAPI Spec
Machine-readable API contract for LLMs, tooling, and generated clients.
Sell South African airtime, data, vouchers and electricity or send SMS with the SIMcloud API. Use this reference to choose a service, make your first request and see how to read the response.
GET /api/balance.php
curl -4 -sSi https://simcloud.co.za/api/balance.php \
-H "Authorization: Bearer $SIMCLOUD_API_TOKEN"
reports:read
Use SIMcloud Reporting to check my wallet balance in rand.
SIMCLOUD_API_TOKEN in your shell.Check the wallet balance in rand with a read-only request.
curl -4 -sSi https://simcloud.co.za/api/balance.php \
-H "Authorization: Bearer $SIMCLOUD_API_TOKEN"
To test order placement, replace the example number, network, amount and reference with your own values. Select the network and recipient carefully. This POST queues a real airtime purchase when you use a funded account.
curl -4 -sS -i -X POST 'https://simcloud.co.za/api/airtime.php' \
-H "Authorization: Bearer $SIMCLOUD_API_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"msisdn":"0821234567","network":"mtn","amount":10,"reference":"INV-10045"}'
HTTP 201 means SIMcloud accepted the request into the queue. Replace 1527245 with the request_id from your response. Poll that request until it reports delivered or failed.
curl -4 -sS -i 'https://simcloud.co.za/api/airtime.php?request_id=1527245' \
-H "Authorization: Bearer $SIMCLOUD_API_TOKEN"
Authorization: Bearer YOUR_API_TOKEN on every REST request. Send JSON with Content-Type: application/json on POST requests. A 401 means the token is missing or invalid.-4 to select IPv4.+27821234567. For registration, use a 10-digit local number starting with 0. In a query string, encode the leading + as %2B.429 or 503, honour Retry-After when present and apply the retry rules below.queued.client_reference. The service pages describe the identifier and final states for each endpoint.status and message fields. Use a machine-readable code where the endpoint documents one.Use the OpenAPI contract in YAML or JSON. The API documentation index links to the Markdown reference pages.
Machine-readable API contract for LLMs, tooling, and generated clients.
Connect an MCP-compatible client to Reporting with reports:read or Transactions with api.