latestOpenAPI 3.1.02026-08-1014497184.0 KB
8b99dca11019
teams
List an user's Teams tokens
Lists all Teams tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.
get/users/{user_id}/channels/teams/tokens
Path parameters
user_idstring required
Query parameters
limitinteger
defines the maximum number of items to return per page (default: 50)
starting_afterstring
a cursor for use in pagination, points to the last ID in previous page
ending_beforestring
a cursor for use in pagination, points to the first ID in next page
Response
OK
Example response
{
"data": [
{
"created_at": "2021-01-01T00:00:00Z",
"discarded_at": "2021-01-01T00:00:00Z",
"id": "123",
"updated_at": "2021-01-01T00:00:00Z"
}
],
"links": {
"first": "https://api.magicbell.com/v1/example",
"next": "https://api.magicbell.com/v1/example?page_next=abc",
"prev": null
}
}