Sendexa LogoDocs

Handle Requests

Learn about the payload structure Sendexa sends to your server.

INCOMING POST
application/json

Request Payload

When a user interacts with your USSD application, we send a POST request with the following JSON body.

JSON
{
"sessionId": "ussd_sess_987654321",
"phone": "233555539152",
"network": "MTN",
"serviceCode": "*123#",
"type": "continue",
"input": "1",
"timestamp": "2024-01-15T10:30:05Z"
}

Field Definitions

FieldDescription
sessionIdUnique ID for the current USSD session.
phoneThe user's mobile number in international format.
typenew: User just dialed code.
continue: User entered input.
inputThe text or number the user entered (null for 'new').