Users

The Users API lets you list and search users from your ClearFeed account. This is supported for accounts using either Slack or Microsoft teams as their monitoring system

User Object

Users are represented as JSON objects with the following properties:

Name
Type
Description

id

string

The external user ID from Slack or Microsoft Teams.

name

string

The display name of the user.

email

string

The user's email address, when available.

avatar

string

Avatar URL for the user, when available.

deleted

boolean

Whether the user has been deactivated or deleted in the source system.

is_bot

boolean

Whether the user is a bot account.

Get Users

GET https://api.clearfeed.app/v1/rest/users

Lists users from the connected monitoring system. You can use this endpoint in three modes:

  • List users with pagination

  • Search users by name/email using query

  • Fetch specific users by passing one or more ids

Query Parameters

Name
Type
Description

ids

string

Optional. Comma-separated list of external user IDs to fetch. Maximum 100 IDs. Cannot be combined with query or next_cursor.

query

string

Optional. Search string used to match users in the connected monitoring system. Cannot be combined with ids.

include_deleted

boolean

Optional. When supported by the connected monitoring system, include deleted/deactivated users in list or search results. Defaults to false for list/search requests.

limit

integer

Optional. Number of users to return per page. Minimum 1, maximum 100, default 50.

next_cursor

string

Optional. Base64-encoded pagination cursor returned in response_metadata.next_cursor. Cannot be combined with ids.

Notes

  • When ids is provided, the response includes only the requested matching users.

  • response_metadata.next_cursor is null when there are no more results.

  • If the account is not connected to Slack or Microsoft Teams, this endpoint returns 406 Not Acceptable.

Example: List Users

Example Response

Example: Search Users

Example: Fetch Users by IDs

Example Response for ID Lookup

Error Responses

  • 400 Bad Request: Invalid query parameter combination, such as using ids together with query or next_cursor, or passing an invalid next_cursor.

  • 403 Forbidden: The API token is missing, invalid, or does not have permission to access the API.

  • 406 Not Acceptable: The account is not connected to Slack or Microsoft Teams.

Last updated