Skip to main content
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>'

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"
  }
}
To send multiple contacts, provide 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"
      }
    ]
  }
}
Successful responses return the outgoing message record in data.