Skip to content

Search Slack Workspace Users

GET
/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/workspace/users
curl --request GET \
--url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/slack-bots/example/workspace/users \
--header 'Authorization: Bearer <token>'

Searches users in the Slack workspace connected to this bot. Requires the bot to be connected via OAuth.

organisation
required
string

The organisation ID

botId
required
string

The Slack bot ID

q
string

Search query to filter users by name

Workspace users retrieved successfully

Media typeapplication/json
object
results
Array<object>
object
id
string
name
string
real_name
string
Examplegenerated
{
"results": [
{
"id": "example",
"name": "example",
"real_name": "example"
}
]
}

Access denied

Slack bot not found or not connected

Failed to search users