curl --request POST \
--url https://collectwiseapi.com/text/send \
--header 'Content-Type: application/json' \
--header 'collectwise_key: <api-key>' \
--data '
{
"destination": "3313048434",
"templateId": 100,
"variables": {
"Consumer Name": "Jane Doe",
"Company Name": "Acme Recovery Group",
"Website Payment": "https://pay.collectwise.com/acme",
"Account Number": "ACME-0001",
"Phone#": "800-555-0100"
},
"debtorId": "your-reference-number"
}
'{
"success": true,
"messageId": "1b1f0a9e-6f4e-4f4b-9a2e-1f2d3c4b5a69",
"segments": {
"encoding": "GSM-7",
"segmentCount": 1,
"characterCount": 142,
"maxCharsPerSegment": 160
}
}{
"error": "Missing variables for placeholders: Consumer Name"
}{
"error": "Free-form texts are not enabled for this organization"
}{
"error": "Template not found"
}{
"error": "Too many requests"
}{
"error": "Internal server error"
}{
"error": "Failed to send message"
}Send a Text
Sends one SMS to one phone number, either from a pre-approved template (templateId + variables) or as free-form text (message). Send exactly one of templateId or message; a body with both, or with neither, is a 400. A 200 means the message was accepted and queued, not yet delivered, so use the returned messageId with the status endpoint. Sandbox API keys are rejected.
curl --request POST \
--url https://collectwiseapi.com/text/send \
--header 'Content-Type: application/json' \
--header 'collectwise_key: <api-key>' \
--data '
{
"destination": "3313048434",
"templateId": 100,
"variables": {
"Consumer Name": "Jane Doe",
"Company Name": "Acme Recovery Group",
"Website Payment": "https://pay.collectwise.com/acme",
"Account Number": "ACME-0001",
"Phone#": "800-555-0100"
},
"debtorId": "your-reference-number"
}
'{
"success": true,
"messageId": "1b1f0a9e-6f4e-4f4b-9a2e-1f2d3c4b5a69",
"segments": {
"encoding": "GSM-7",
"segmentCount": 1,
"characterCount": 142,
"maxCharsPerSegment": 160
}
}{
"error": "Missing variables for placeholders: Consumer Name"
}{
"error": "Free-form texts are not enabled for this organization"
}{
"error": "Template not found"
}{
"error": "Too many requests"
}{
"error": "Internal server error"
}{
"error": "Failed to send message"
}Authorizations
Body
US phone number. 3313048434, 13313048434, and +1 (331) 304-8434 are all accepted.
Your reference for this recipient (e.g. your account or reference number). Forwarded as-is; replies and the message record are tracked against it.
The template to send. Must belong to your organization's account. Mutually exclusive with message; send exactly one of the two.
Values substituted into the template's {placeholder} tokens. Required with templateId; use {} if the template has none. If any placeholder is left unresolved, the request fails with 400 rather than texting a literal {token}. Rejected if sent alongside message.
Show child attributes
Show child attributes
Free-form message body, sent verbatim with no template and no placeholder substitution. Mutually exclusive with templateId. Requires free-form texting to be enabled for your organization, otherwise 403.
1 - 1600Optional. Overrides your organization's default campaign for this send.
