Session
Create a new session
Endpoints
- Message templates
- Session
- GETGet all sessions
- POSTCreate a new session
- GETGet a session
- PUTUpdate a session
- DELDelete a session
- PUTResubscribe a session
- GETSearch for sessions
- GETGet a session by user id
- GETGet session activities
- GETGet session events
- POSTImport a session
- POSTImport sessions from intercom
- POSTUnsubscribe sessions
- GETGet session checklists
- GETGet session Stripe info
- GETGet session Chargebee info
- GETGet session LemonSqueezy info
- GET
- Team
- Messages
- Help center collections
- Help center articles
- Help center redirects
- Ticket
- Engagement Banner
- Engagement Chat Message
- Engagement Cobrowse
- Engagement Email
- Engagement News
- Engagement Product Tour
- Engagement Push Notification
- Engagement Survey
- Engagement Tooltip
- Engagement Whatsapp Messages
- Engagement Checklist
- Engagement
- AI content
- Engagement Modal
- Invitation
- Project
Session
Create a new session
Create a new session and associate it with a project.
POST
/
sessions
curl --request POST \
--url https://api.gleap.io/v3/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'project: <project>' \
--data '{
"gleapId": "<string>",
"gleapHash": "<string>",
"lang": "<string>",
"firstActivity": "<any>",
"lastHeardFrom": "<any>",
"lastActivity": "<any>",
"lastFeedbackReport": "<any>",
"project": "<string>",
"organisation": "<string>",
"unsubscribed": true,
"unsubscribedAt": "<any>",
"unsubscribeReason": "<string>",
"lastPageView": "<any>",
"userId": "<string>",
"name": "<string>",
"location": "<any>",
"email": "<string>",
"avatar": "<string>",
"companyId": "<string>",
"emailOnly": true,
"companyName": "<string>",
"sla": 123,
"phone": "<string>",
"blocked": true,
"plan": "<string>",
"value": 123,
"sessions": 123,
"facebookId": "<string>",
"instagramId": "<string>",
"instagramUsername": "<string>",
"outboundHistory": "<any>",
"countFeedbackReports": 123,
"countFeedbackComments": 123,
"checklistTasks": "<any>",
"customData": "<any>",
"eventData": "<any>"
}'
"<any>"
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Body
application/json
Response
200 - application/json
Ok
The response is of type any
.
curl --request POST \
--url https://api.gleap.io/v3/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'project: <project>' \
--data '{
"gleapId": "<string>",
"gleapHash": "<string>",
"lang": "<string>",
"firstActivity": "<any>",
"lastHeardFrom": "<any>",
"lastActivity": "<any>",
"lastFeedbackReport": "<any>",
"project": "<string>",
"organisation": "<string>",
"unsubscribed": true,
"unsubscribedAt": "<any>",
"unsubscribeReason": "<string>",
"lastPageView": "<any>",
"userId": "<string>",
"name": "<string>",
"location": "<any>",
"email": "<string>",
"avatar": "<string>",
"companyId": "<string>",
"emailOnly": true,
"companyName": "<string>",
"sla": 123,
"phone": "<string>",
"blocked": true,
"plan": "<string>",
"value": 123,
"sessions": 123,
"facebookId": "<string>",
"instagramId": "<string>",
"instagramUsername": "<string>",
"outboundHistory": "<any>",
"countFeedbackReports": 123,
"countFeedbackComments": 123,
"checklistTasks": "<any>",
"customData": "<any>",
"eventData": "<any>"
}'
"<any>"