simtrunkDocs
Messages

Send USSD

Requires the scope `ussd:write`.

POST
/v1/lines/{id}/ussd

Requires the scope ussd:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key, or an access token for one, through the API gateway.

Path Parameters

id*string

Request Body

application/json
  1. body
text*string

A code such as *100#, or a reply in a session.

reply?boolean

text answers the open session's menu.

Response Body

OK

application/json
  1. response
text*string

The network's answer.

done*boolean

The session ended; false: it waits for a reply.

curl -X POST 'https://api.simtrunk.com/v1/lines/string/ussd' \  -H 'Content-Type: application/json' \  -d '{  "text": "string"}'
{  "text": "string",  "done": true}

How is this guide?