Skip to content
Last updated

When sending SMS messages, you can include an optional reference object to track messages and associate them with specific services or actions. All send methods accept this object.

ParameterTypeRequiredDescription
reference.servicestringRequired if any other reference property is specifiedIdentifies the product or service sending the SMS. Must match one of the predefined allowed values — any other value returns an error.
reference.actionstringNoDescribes the specific action for the selected service (e.g. 2FA, verification).
reference.keystringNoCustom tracking key for your internal processes.

Example

{
 "destination": "+1234567890",
 "text": "Your verification code is: 123456",
 "reference": {
   "service": "AUTHENTICATION",
   "action": "2FA",
   "key": "user-12345"
 }
}