For HIPAA and Pro accounts setup with Contact Consent, this endpoint can send a request to a Contact to collect consent to have conversations over text messages. A group UUID (department) is a required parameter along wtih one of the following: Contact UUID or phone number.
Body
-
The uuid of the department from which you want to retrieve conversations. Not using a department UUID will have the whisper go out on your first department.
-
The phone number of the contact that you would like to send the Contact Request to.
-
The phone number of the contact that you would like to send the Contact Request to.
POST
/api/customers/request_consent.json
curl \
--request POST 'https://application.textline.com/api/customers/request_consent.json' \
--header "Content-Type: application/json" \
--data '{
"group_uuid": "deb79a6a-0652-4e14-86f2-dc8c5c502369",
"customer_uuid": "deb79a6a-0652-4e14-86f2-dc8c5c502369",
"phone_number": "4148675309"
}'
Request example
{
"group_uuid": "deb79a6a-0652-4e14-86f2-dc8c5c502369",
"customer_uuid": "deb79a6a-0652-4e14-86f2-dc8c5c502369",
"phone_number": "4148675309"
}
Response examples (200)
{
"success": 1
}