Consent Status API - deprecated
API to check the status of consent on a phone number, independent of a Trip.
Consent Status API picks the data from database. We do not check with Telco for consent status check. This may give outdated data in some corner cases. We highly recommend using Consent Status API along with Consent Initiate API to fetch latest status
We would recommend keeping a time gap of 5 min between initiate call and status call for a particular number to fetch latest consent info
Consent Status API flow:
API Endpoint:
https://api.freighttiger.com/api/consent/status - Production Environment
Request Parameters:
Name | Type | Location | Description | Example |
---|---|---|---|---|
Authorization | string | headers | JWT token required to authenticate API call. | Authorization: Bearer eyJhbGciOiJIUzI1Ni |
mobile | string | parameters | Driver Phone Number for consent |
|
Responses:
{
"mobile_number": "8897264525",
"trip_id": null,
"devices": [
{
"country_code": "91",
"mobile_number": "8897264525",
"carrier": "jio",
"missed_call_timestamp": null,
"missed_call_received": false,
"consent_status": "Pending",
"consent_initiated_timestamp": 1672832638792,
"consent_completed_timestamp": null,
"bypass_missed_call": true,
"tracking_status": "supported"
}
]
}
{
"error": "invalid phone number",
"error_description": "Please pass valid phone number as 'mobile' header"
}
{
"message": "Unauthorized"
}
Post your questions in the comment box to get answers from the experts who watch this page.
For engineering support: visit FT Support