List members

Description

Retrieve a list of team members.

Request

HTTP Method: GET

Path Parameter Description
team_id ID of the team
Query Parameter Description
per_page Optional Set the number of results returned per page.
page Optional Specify the page of results to return if there are multiple pages. Defaults to page 1.
curl -X GET \
  https://<<META.tenant.domain>>/api/v1/teams/<<team_id>>/members \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>'

Response

A successful request will return a JSON Array describing team members.

Field description

Parameter Description
id User ID.
email User email.
first_name User first name.
last_name User last name.
is_admin Boolean flag indicating whether user is an admin.
created_at Timestamp describing when the user was created.
last_seen Timestamp describing when the user was last seen in the platform.
invitation_accepted Boolean flag indicating if the user accepted the invitation to join the team.
role The user’s role on the team.

Sample response

{
  "members": [
    {
      "id": 1,
      "first_name": "First name",
      "last_name": "Last name",
      "email": "user@example.com",
      "is_admin": true,
      "created_at": "2021-03-11T09:00:58Z",
      "last_seen": "2021-04-30T08:56:05Z",
      "invitation_accepted": true,
      "role": "TEAM_ADMIN"
    }
  ],
  "meta": {
    "current_page": "https://<<META.tenant.domain>>/api/v1/teams/4178/members?per_page=20&page=1",
    "previous_page": null,
    "next_page": null,
    "per_page": 20,
    "pages": 1,
    "count": 1
  }
}
Was this helpful?