Users
Authorization: Bearer
Whether to include deactivated users. Defaults to false.
The request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
GET /users HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"avatar_url": "text",
"email": "text",
"emails": [
"text"
],
"id": "text",
"is_deactivated": true,
"name": "text",
"role": {
"id": "text",
"name": "text",
"slug": "text"
},
"role_id": "text",
"status": "active"
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Authorization: Bearer
The ID of the user to fetch.
The request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
GET /users/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"avatar_url": "text",
"email": "text",
"emails": [
"text"
],
"id": "text",
"is_deactivated": true,
"name": "text",
"role": {
"id": "text",
"name": "text",
"slug": "text"
},
"role_id": "text",
"status": "active"
},
"request_id": "text"
}Authorization: Bearer
The ID of the user to update.
The avatar URL of the user. Must be a square .png, .jpg or .jpeg.
The name of the user.
The role_id of the user.
The new user status for the user. Can be one of active, away, or out_of_office.
activePossible values: The request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
PATCH /users/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"avatar_url": "text",
"name": "text",
"role_id": "text",
"status": "active"
}{
"data": {
"avatar_url": "text",
"email": "text",
"emails": [
"text"
],
"id": "text",
"is_deactivated": true,
"name": "text",
"role": {
"id": "text",
"name": "text",
"slug": "text"
},
"role_id": "text",
"status": "active"
},
"request_id": "text"
}Authorization: Bearer
The cursor to use for pagination.
The number of users to fetch. Defaults to 100. Must be greater than 0 and less than 1000.
The request ID for tracking.
The request was invalid or could not be completed.
An unexpected internal error occurred.
POST /users/search HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 173
{
"cursor": "text",
"filter": {
"field": "text",
"operator": "equals",
"subfilters": [
{
"field": "state",
"operator": "equals",
"value": "new"
}
],
"value": "text",
"values": [
"text"
]
},
"limit": 1
}{
"data": [
{
"avatar_url": "text",
"email": "text",
"emails": [
"text"
],
"id": "text",
"is_deactivated": true,
"name": "text",
"role": {
"id": "text",
"name": "text",
"slug": "text"
},
"role_id": "text",
"status": "active"
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Last updated
Was this helpful?

