Endpoints
- Message templates
- Session
- Team
- Messages
- Help center collections
- Help center articles
- Help center
- 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
- User
- GETGet current user.
- GETGet Cello token for current user.
- POSTReassign all tickets to the user.
- POSTGet Pusher authentication.
- DELGet Pusher authentication.
- PUTUpdate user.
- POSTEnable 2FA.
- POSTVerify 2FA.
- DELDelete 2FA device.
- GETGet current user's role permissions.
- POSTAuthenticate user for Pusher session.
- POSTAuthenticate user for Pusher session.
- POSTResend a verification code to the user's email.
- POSTAuthenticate user for Pusher session.
- POSTAuthenticate user for Pusher session.
- GET
- Statistics
User
Get current user.
Get current user.
GET
/
users
/
me
Copy
curl --request GET \
--url https://api.gleap.io/v3/users/me \
--header 'Authorization: Bearer <token>'
Copy
{
"_id": {
"isValid": {},
"createFromHexString": {},
"createFromTime": {},
"generate": {},
"cacheHexString": "<any>",
"prototype": "<string>"
},
"createdAt": "<string>",
"email": "<string>",
"updatedAt": "<string>",
"code": "<string>",
"password": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"profileImageUrl": "<string>",
"lastSeen": "2023-11-07T05:31:56Z",
"lastAutoAssign": "2023-11-07T05:31:56Z",
"available": true,
"unavailableProjects": [
"<string>"
],
"services": {
"default": "<any>"
},
"isServiceAccount": true,
"serviceAccountApiToken": "<string>",
"confirmed": true,
"referral": "<string>",
"codeCreatedAt": "2023-11-07T05:31:56Z",
"otp": "<string>",
"otpCreatedAt": "2023-11-07T05:31:56Z",
"userRole": "<string>",
"knewGleapFrom": "<string>",
"userUsage": "<string>",
"utm_source": "<string>",
"utm_medium": "<string>",
"utm_term": "<string>",
"utm_content": "<string>",
"utm_campaign": "<string>",
"completedOnboarding": true,
"onboardingFlow": "<string>",
"mastercardUser": true,
"fcmTokens": [
"<string>"
],
"twoFactorAuthentication": {
"methods": {
"webAuthn": [
{
"counter": 123,
"publicKey": "<string>",
"credentialID": "<string>",
"name": "<string>"
}
]
},
"currentWebAuthnChallenge": "<string>",
"isEnabled": true
},
"notificationSettings": {
"directlySendNotifications": true,
"sendEmailOnlyWhenOffline": true
},
"notificationPreferences": {
"all-ticket-messages": {
"push": true,
"inApp": true,
"email": true
},
"all-sla-breached": {
"push": true,
"inApp": true,
"email": true
},
"personal-ticket-messages": {
"push": true,
"inApp": true,
"email": true
},
"all-created-tickets": {
"push": true,
"inApp": true,
"email": true
},
"personal-assignment": {
"push": true,
"inApp": true,
"email": true
},
"personal-mention": {
"push": true,
"inApp": true,
"email": true
},
"team-ticket-messages": {
"push": true,
"inApp": true,
"email": true
},
"team-ticket-assignment": {
"push": true,
"inApp": true,
"email": true
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
Ok
From T, pick a set of properties whose keys are in the union K
Copy
curl --request GET \
--url https://api.gleap.io/v3/users/me \
--header 'Authorization: Bearer <token>'
Copy
{
"_id": {
"isValid": {},
"createFromHexString": {},
"createFromTime": {},
"generate": {},
"cacheHexString": "<any>",
"prototype": "<string>"
},
"createdAt": "<string>",
"email": "<string>",
"updatedAt": "<string>",
"code": "<string>",
"password": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"profileImageUrl": "<string>",
"lastSeen": "2023-11-07T05:31:56Z",
"lastAutoAssign": "2023-11-07T05:31:56Z",
"available": true,
"unavailableProjects": [
"<string>"
],
"services": {
"default": "<any>"
},
"isServiceAccount": true,
"serviceAccountApiToken": "<string>",
"confirmed": true,
"referral": "<string>",
"codeCreatedAt": "2023-11-07T05:31:56Z",
"otp": "<string>",
"otpCreatedAt": "2023-11-07T05:31:56Z",
"userRole": "<string>",
"knewGleapFrom": "<string>",
"userUsage": "<string>",
"utm_source": "<string>",
"utm_medium": "<string>",
"utm_term": "<string>",
"utm_content": "<string>",
"utm_campaign": "<string>",
"completedOnboarding": true,
"onboardingFlow": "<string>",
"mastercardUser": true,
"fcmTokens": [
"<string>"
],
"twoFactorAuthentication": {
"methods": {
"webAuthn": [
{
"counter": 123,
"publicKey": "<string>",
"credentialID": "<string>",
"name": "<string>"
}
]
},
"currentWebAuthnChallenge": "<string>",
"isEnabled": true
},
"notificationSettings": {
"directlySendNotifications": true,
"sendEmailOnlyWhenOffline": true
},
"notificationPreferences": {
"all-ticket-messages": {
"push": true,
"inApp": true,
"email": true
},
"all-sla-breached": {
"push": true,
"inApp": true,
"email": true
},
"personal-ticket-messages": {
"push": true,
"inApp": true,
"email": true
},
"all-created-tickets": {
"push": true,
"inApp": true,
"email": true
},
"personal-assignment": {
"push": true,
"inApp": true,
"email": true
},
"personal-mention": {
"push": true,
"inApp": true,
"email": true
},
"team-ticket-messages": {
"push": true,
"inApp": true,
"email": true
},
"team-ticket-assignment": {
"push": true,
"inApp": true,
"email": true
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.