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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

project
string
required

Body

application/json

Response

200 - application/json
Ok

The response is of type any.