Skip to content

Your First API Request

Follow this guide to make your first request to the Sangho API. No production code required — everything runs in Sandbox.

Step 1: Retrieve your test API keys

Step 2: List your applications

The simplest route to verify your API key is working is GET /apps/. It returns your Sangho applications in a paginated envelope { count, next, previous, data } — the array is in data.

Step 3: Create your first PaymentIntent

A PaymentIntent represents the intent to collect a payment. Create one with an amount of 5,000 XAF in Sandbox to test the complete flow.

Note

In Sandbox, no real funds are involved. Use sk_test_ keys freely to test without risk.

GET /apps/

bash
curl https://api.sangho.ga/v1/apps/ \
  -H "Authorization: Bearer sk_test_xxxx"

Expected response

Response200 OK
json
{
  "count": 1,
  "next": null,
  "previous": null,
  "data": [
    {
      "id": "app_xxxxxxxx",
      "object": "app",
      "name": "My test store",
      "mode": "test",
      "environment": "sandbox",
      "currency": "XAF",
      "is_active": true,
      "created_at": "2026-01-15T09:00:00Z",
      "updated_at": "2026-01-15T09:00:00Z"
    }
  ]
}