📘
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. Fetch Data

Opted Out Customers

PreviousCampaignsNextWorkrooms

Last updated 2 months ago

Get opted-out customers

post

Retrieve list of customers who have opted out of communications

Header parameters
X-API-KEYstringRequired

Your API key

X-SECRET-KEYstringRequired

Your Secret key

Body
app_idstringRequired
limitinteger · max: 1000Optional
offsetintegerOptional
typestring · enumOptionalPossible values:
Responses
200
Opted-out customers retrieved successfully
application/json
400
Invalid request
post
POST /v2/ExternalApi/getOptoutCustomers HTTP/1.1
Host: api.gleantap.com
X-API-KEY: text
X-SECRET-KEY: text
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "app_id": "text",
  "limit": 1,
  "offset": 1,
  "type": "email"
}
{
  "members": [
    {
      "id": "text",
      "firstname": "text",
      "lastname": "text",
      "email": "text",
      "phone": "text",
      "email_optout": 1,
      "sms_optout": 1,
      "optout_date": "2025-05-21T17:40:58.758Z"
    }
  ]
}