Example
cURL shell commands
Use these commands to test with cURL using a shell command line. Please replace the following vars by valid data:
<your_signature>
: replace by your signature<username>
: replace by your username<host>
: replace by the API host
curl -X POST -H "Content-Type: application/json" -d \
'{
"user_id": "0123456789",
"timestamp": "2021-02-09T09:54:41Z",
"user_type": "POST",
"user_country": "FR",
"roaming": true,
"imei": "123456789012345",
"imsi": "987654321054321",
"localization": "fr-FR",
"flow_name": "sms1",
"transaction_id": "<transaction_id>",
"arg1": "First arg",
"arg2": "2nd arg",
"arg3": "3",
"arg4": "4th argument",
"signature": "<your_signature>"
}' "<host>/v1/<username>/init"
curl -X POST -H "Content-Type: application/json" -d \
'{
"step_type": "STEP",
"text": "This is a super message!",
"shortcode": "30300",
"timestamp": "2021-02-09T09:54:42Z",
"customer_backend_id": "KffAPtZQxQqQbpFphX5CHRk0",
"transaction_id": "<transacrtion_id>",
"step_id": 1,
"imei": "123456789012345",
"location": {
"lat": 48.8534,
"lon": 2.3488
},
"signature": "<your_signature>"
}' "<host>/v1/<username>/step"
curl -X POST -H "Content-Type: application/json" -d \
'{
"timestamp": "2021-02-09T09:56:33Z",
"transaction_id": "<transaction_id>",
"signature": "<your_signature>"
}' "<host>/v1/<username>/check"
Updated over 2 years ago