Get users

Learn how to get your users

Description

The following route enables you to get all your users or get a specific set of user.

Endpoint

GET https://sentry.aleno.ai/users

Query parameters

Name
required
Type
Description

ids

optional

string list

ids of target users. If none provided, all your users will be returned.

To get all users, simply remove the query parameter: GET /users

Payload

No payload.

CURL example

curl -X GET \
  'https://sentry.aleno.ai/users?ids=a675415b-62d6-4400-87dc-7f50b24a99cf,4272ce81-df38-4232-9b4d-46ad4f40d4f9' \
  -H 'accept: application/json' \
  -H 'Authorization: YOUR_API_KEY'

Result

Returns list of User objects.

{
  "data": [
    {
      "id": "a675415b-62d6-4400-87dc-7f50b24a99cf",
      "accountId": "938862f0-f629-413d-bc88-a7a4fe54e2ad",
      "userName": "Alice",
      "userContext": "alice_context",
      "createdAt": "2024-03-18T14:45:14.747Z",
      "updatedAt": "2024-03-18T14:45:14.747Z"
    },
    {
      "id": "4272ce81-df38-4232-9b4d-46ad4f40d4f9",
      "accountId": "938862f0-f629-413d-bc88-a7a4fe54e2ad",
      "userName": "Bob",
      "userContext": "bob_context",
      "createdAt": "2024-03-18T14:45:14.747Z",
      "updatedAt": "2024-03-18T14:45:14.747Z"
    }
  ]
}

Last updated