Authentication
Authenticate with your API Secret or OAuth 2.1.
The v3 API supports two ways to authenticate. Both send a bearer token:
Authorization: Bearer <token>API Secret
OAuth 2.1
Use it for
Your own server-side integration
Third-party apps and AI agents acting for a Gleantap user
Token
The API Secret from Settings → API
gltp_at_... access token + rotating refresh token
Permissions
Full access to the account
Only the scopes the user approves
Workrooms
All (narrow per request with ?workroom=)
Only the workrooms the user selects at consent
API Secret
Get your API Secret
In Gleantap, click Settings in the top-right menu and open the API tab.
If the table is empty, click Generate New Key.
Copy the value in the API Secret column. The API Key column is your account ID; v3 doesn't need it.
Use it
curl https://api.gleantap.com/v3/contacts \
-H "Authorization: Bearer YOUR_API_SECRET"You can send the secret bare or with a gltp_sk_live_ prefix (Bearer gltp_sk_live_YOUR_API_SECRET). Both work the same way.
The API Secret is account-scoped and carries every permission on the account. There is no per-key scope selection. Keep it on your server, never in browser or mobile code. To revoke it, delete it with the trash icon under Settings → API. Generate one secret per integration so you can revoke them independently.
OAuth 2.1
Use OAuth when your app acts on behalf of a Gleantap user. The user signs in to Gleantap, approves the scopes you request, and chooses which workrooms to share.
Discovery
https://api.gleantap.com/v3/.well-known/oauth-authorization-server
Authorize
https://api.gleantap.com/v3/oauth/authorize
Token
POST https://api.gleantap.com/v3/oauth/token
Revoke
POST https://api.gleantap.com/v3/oauth/revoke
Introspect
POST https://api.gleantap.com/v3/oauth/introspect
Client registration
POST https://api.gleantap.com/v3/oauth/register (dynamic client registration)
Scopes
Scopes are resource:action pairs. Request only what you need.
contacts:read / contacts:write
Read / create, update, soft-delete contacts
contacts:delete_hard
Permanently delete contacts
events:read / events:write
Read / record events
segments:read / segments:write
Read and preview / manage segments
templates:read / templates:write
Read / manage message templates
campaigns:manage
Create, schedule, cancel campaigns; read recipients and analytics
flows:read / flows:write
Read / create and edit flows
flows:publish
Publish and unpublish flows
messaging:send
Send transactional SMS, email, and voice
conversations:read
Read conversations and messages
pipelines:manage
Manage pipelines and stages
tasks:read / tasks:manage
Read / manage tasks
appointments:read / appointments:manage
Read / manage appointments
calendars:read / calendars:write
Read / manage booking calendars
forms:manage
Manage forms and read submissions
pages:read / pages:write
Read / manage landing pages
keyword_campaigns:read / keyword_campaigns:write
Read / manage SMS keyword campaigns
scorecards:read / scorecards:write
Read / manage scorecards and metrics
webhooks:manage
Manage webhook endpoints
workrooms:configure
Change workroom settings
staff:read
Read staff users
secondary_objects:read
Read synced records (memberships, classes, …)
copilot:invoke
Use Gleantap's AI assistant features
The live list is always in the scopes_supported field of the discovery document.
Workroom access
On the consent screen the user chooses which workrooms your app can see. Requests for anything in other workrooms return not_found, even if the record exists.
Connecting an AI assistant?
You don't need to build OAuth yourself. See Connect AI Tools (MCP).