DDaraja Lab
Workspace / Overview
Sandbox
DEVELOPER WORKSPACE

Test integrations.
Build with confidence.

A focused workspace for exploring Safaricom Daraja sandbox requests and inspecting API responses.

Workspace overview

Your sandbox tools, in one place.

Ready to test
API environment⌘
SandboxIsolated test environment
Requests this session↗
0Saved in this browser
Latest response◷
No requestsRun a connection test to begin

Testing tools

Choose a task to get started.

i
Sandbox safety

Use your Daraja sandbox app credentials and sandbox test data only. Never place consumer secrets or passkeys in frontend code.

API TOOL

STK Push

Initiate a sandbox Lipa na M-Pesa Online request.

Request configuration

Fields sent to the server-side function.

POST
+254
Enter a Kenyan number. The request is sent to the sandbox only.

This sends a real API request to the sandbox. Only use test numbers approved for your Daraja app.

API response

Safaricom response will appear here.

LIVE
{ }
Waiting for a request

Submit the form to inspect the response payload.

No request sent
DIAGNOSTICS

Connection test

Request a sandbox OAuth access token without exposing credentials to the browser.

Credential check

Credentials are read from Cloudflare secrets.

OAUTH
✓
Consumer KeyDARAJA_CONSUMER_KEY
Server-side
✓
Consumer SecretDARAJA_CONSUMER_SECRET
Server-side
✓
Sandbox endpointsandbox.safaricom.co.ke
Configured

The token is displayed only in the response panel for debugging. Do not share it.

Connection response

OAuth endpoint result.

LIVE
⌘
Ready to check connection

Run the test to verify the configured credentials.

No request sent
ACTIVITY

Request history

Requests saved locally in this browser on this device.

Recent requests

History is not synced between devices.

≡
No requests yet

Your recent API tests will appear here.