Send location and contact
curl --request POST \
--url https://api.wadial.com/api/v1/sessions/{sessionId}/messages/location \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wadial.com/api/v1/sessions/{sessionId}/messages/location', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wadial.com/api/v1/sessions/{sessionId}/messages/location"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)API Reference
Send location and contact
Send a location pin or contact card from a connected token.
POST
/
api
/
v1
/
sessions
/
{sessionId}
/
messages
/
location
Send location and contact
curl --request POST \
--url https://api.wadial.com/api/v1/sessions/{sessionId}/messages/location \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wadial.com/api/v1/sessions/{sessionId}/messages/location', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wadial.com/api/v1/sessions/{sessionId}/messages/location"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)Send a location
POST /api/v1/sessions/{sessionId}/messages/location
Authorization: Bearer <api_key>
Content-Type: application/json
Idempotency-Key: <unique-message-key>
{
"to": "15551234567",
"content": {
"type": "location",
"latitude": 37.7749,
"longitude": -122.4194,
"name": "Market Street",
"address": "San Francisco, CA"
}
}
Send a contact
POST /api/v1/sessions/{sessionId}/messages/contact
Authorization: Bearer <api_key>
Content-Type: application/json
Idempotency-Key: <unique-message-key>
{
"to": "15551234567",
"content": {
"type": "contact",
"displayName": "Jane Doe",
"vcard": "BEGIN:VCARD\nVERSION:3.0\nFN:Jane Doe\nTEL:+15551234567\nEND:VCARD"
}
}
contacts:
{
"to": "15551234567",
"content": {
"type": "contact",
"displayName": "2 contacts",
"contacts": [
{
"displayName": "Jane Doe",
"vcard": "BEGIN:VCARD\nVERSION:3.0\nFN:Jane Doe\nTEL:+15551234567\nEND:VCARD"
}
]
}
}
data.Was this page helpful?
⌘I