Request a contact's location
POST/api/request-location
Send a Find My location request to an iMessage recipient from a supported Sendblue line. The request is queued like a normal outbound iMessage. If the recipient accepts and shares, the location is delivered later as an inbound message_type: location webhook.
Request a contact's location
curl https://api.sendblue.co/api/request-location \
-H 'Content-Type: application/json' \
-H "sb-api-key-id: $SENDBLUE_API_API_KEY" \
-H "sb-api-secret-key: $SENDBLUE_API_API_SECRET" \
-d '{
"from_number": "+18887776666",
"number": "+19998887777"
}'{
"message": "Location request accepted for dispatch",
"message_handle": "msg_abc123def456",
"number": "+19998887777",
"status": "QUEUED",
"uuid": "msg_abc123def456"
}Returns Examples
{
"message": "Location request accepted for dispatch",
"message_handle": "msg_abc123def456",
"number": "+19998887777",
"status": "QUEUED",
"uuid": "msg_abc123def456"
}