📘
Gleantap API
  • Introduction
  • Fetch Data
    • Attribute List
    • Attribute Event List
    • Locations
    • Class Schedule
    • Customers
    • Events for a Customer
    • Opted In Customers
    • Campaigns
    • Opted Out Customers
    • Workrooms
    • Forms
    • Form Submissions
  • Update Data
    • Create or Update Location
    • Create a Class
    • Delete Class
    • Create or Update Contact
    • SMS Opt-in a Contact
    • Add Memberships for Contact
    • Create an Event
    • Delete Contact
    • Merge Contacts
    • Send SMS Notification
    • Send Email Notifications
Powered by GitBook
On this page
  1. Update Data

SMS Opt-in a Contact

PreviousCreate or Update ContactNextAdd Memberships for Contact

Last updated 2 months ago

Opt-in a contact

post

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-05-21"
}
{
  "status": "success"
}