Skip to main content

Send A Text Message

Requires messages.send scope. Use either sender_phone or sender_number_id.
curl -X POST "https://{tenant}.sinjapp.org/api/v1/messages" \
  -H "X-Api-Key: {tenant_api_key}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "sender_phone": "{sender_phone}",
    "to_phone": "{recipient_phone}",
    "type": "text",
    "content": "Hello from Sinjapp Business"
  }'

Send Media

For images, documents, and voice files, use multipart/form-data with the media field. Supported message types are image, voice, and document.
curl -X POST "https://{tenant}.sinjapp.org/api/v1/messages" \
  -H "X-Api-Key: {tenant_api_key}" \
  -H "Accept: application/json" \
  -F "sender_phone={sender_phone}" \
  -F "to_phone={recipient_phone}" \
  -F "type=image" \
  -F "content=Image caption" \
  -F "media=@/path/to/image.png"

Read Message Logs

Requires messages.read scope.
curl "https://{tenant}.sinjapp.org/api/v1/messages" \
  -H "X-Api-Key: {tenant_api_key}" \
  -H "Accept: application/json"