POST
/
enterprise
/
message
/
generate
curl --request POST \
  --url https://api.contiguity.co/enterprise/message/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "toNumber": "+1234567890",
  "fromNumber": "+0987654321",
  "embedText": "Contact a representative",
  "imageURL": "https://example.com/image.jpg?w=149px&h=149px",
  "companyName": "Twilio",
  "option": "contact_rep"
}'
{
  "code": 200,
  "message": "Generated Message Intent",
  "url": "https://api.contiguity.co/enterprise/message/intent?id=xxxxxx&fromNumber=string&toNumber=string&companyName=Twilio&option=text&embedText=title&imageURL=image",
  "options": {
    "name": "Twilio",
    "to": "string",
    "from": "string",
    "id": "f033895f34162765431fba4259bc42b7fcf",
    "option": "contact_rep"
  }
}

This endpoint is only available to Enterprise customers.

Authorizations

Authorization
string
header
required

Authentication using a Bearer Token. Specify Authorization: Token YOUR_TOKEN. Bearer is allowed.

Body

application/json

Response

200
application/json
Message Intent generated successfully

The response is of type object.