SMS Opt-in a Contact
Sends a double-optin message to a contact. Once the contact responds YES, the contact will be opted in. The double optin message can be configured from the Configure SMS settings.
Header parameters
X-API-KEYstringRequired
Your API key
X-SECRET-KEYstringRequired
Your Secret key
Body
app_idstringRequired
phonestringRequired
emailstring · emailRequired
user_idstringRequired
dobstring · dateOptional
Date of birth in YYYY-MM-DD format
Responses
200
Contact opted-in successfully
application/json
400
Invalid request or age restriction
post
POST /v2/ExternalApi/optin HTTP/1.1
Host: api.gleantap.com
X-API-KEY: text
X-SECRET-KEY: text
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"app_id": "text",
"phone": "text",
"email": "[email protected]",
"user_id": "text",
"dob": "2025-07-05"
}
{
"status": "success"
}
Last updated