Get started
Quickstart
Get started with CamelPay in under 5 minutes. Create an account, verify your phone, and make your first API call.
1. Create your account
Register as a developer on the CamelPay platform:
curl -X POST https://api.camelpay.in/students/register \
-H "Content-Type: application/json" \
-d '{
"phone": "+255700000000",
"first_name": "Your",
"last_name": "Name",
"email": "developer@example.com"
}'2. Verify your phone
Request an OTP to verify your phone number:
bash
curl -X POST https://api.camelpay.in/students/auth/otp/request \
-H "Content-Type: application/json" \
-d '{"phone": "+255700000000"}'Verify the OTP and get your JWT token:
bash
curl -X POST https://api.camelpay.in/students/auth/otp/verify \
-H "Content-Type: application/json" \
-d '{
"phone": "+255700000000",
"code": "123456"
}'3. Create an API key
First create a developer app, then generate an API key. See API Keys for details.
4. Make your first request
bash
curl -X POST https://api.camelpay.in/payments/checkout \
-H "X-API-Key: cp_test_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"slug": "my-payment-page",
"phone_number": "+255712345678",
"customer_name": "John Doe",
"idempotency_key": "order_12345_67890"
}'Save your JWT token from step 2. You need it to create developer apps, generate API keys, manage payment pages, and view payouts.
