List Team Users
GET
/api/v1/teams/{team_id}/users
const url = 'https://example.com/%7B%7Bapp_url%7D/api/v1/teams/1/users';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/%7B%7Bapp_url%7D/api/v1/teams/1/users \ --header 'Authorization: Bearer <token>'Retrieves the users for a team.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”team_id
required
integer
Team ID
Responses
Section titled “Responses”Successful
Media typeapplication/json
object
results
required
Array
object
id
required
integer
first_name
required
string
last_name
required
string
email
required
string format: email
created_at
required
string format: date-time
updated_at
required
string format: date-time
profile_image_url
required
string format: url
wants_marketing_emails
required
boolean
two_factor_enabled
required
boolean
disabled_email_notifications
required
Array<string>
organization_membership
required
object
role_id
required
integer
invitation_sent_at
required
string format: date-time
invitation_accepted_at
required
string format: date-time
pagination
object
per
required
integer
page
required
integer
total
required
integer
Example
{ "results": [ { "id": 12345, "first_name": "Joe", "last_name": "Cottam", "email": "joe@example.com", "created_at": "2023-08-23T10:30:00.000Z", "updated_at": "2023-08-23T10:30:00.000Z", "profile_image_url": "https://example.com/profile.jpg", "wants_marketing_emails": false, "two_factor_enabled": false, "disabled_email_notifications": [ "mentioned_in_comment" ], "organization_membership": { "role_id": 12345, "invitation_sent_at": "2023-08-23T10:30:00.000Z", "invitation_accepted_at": "2023-08-23T10:30:00.000Z" } } ], "pagination": { "per": 10, "page": 1, "total": 100 }}Unauthorized
Media typeapplication/json
object
message
required
string
Example
{ "message": "Record not found"}Forbidden
Media typeapplication/json
object
message
required
string
Example
{ "message": "Record not found"}Not Found
Media typeapplication/json
object
message
required
string
Example
{ "message": "Record not found"}