Skip to the content.

Team Users API

With Team Users api V4 you can:

Fetch a team user

Get a team_user. See the optional available fields.

GET /api/v4/teams/1/team_users/14?fields=first_name,last_name,email,-supervisor_id
{
  "id":14,
  "agreed_to_join":true,
  "app_version":"2.9.6",
  "bluetooth_enabled":true,
  "email":"safeuser@responsiblecompany.com",
  "first_name":"Safe",
  "last_active_at":"2020-09-11T15:43:29.682+12:00",
  "last_invited_at":null,
  "last_name":"Awareson",
  "location_enabled":true,
  "push_notification_enabled":true,
  "role":"team_member",
  "user_id":22
}

List team users

Fetch a paginated list of team users. Optional params:

GET /api/v4/teams/1/team_users?fields=first_name,last_name,email,-supervisor_id&orderby=last_activity+asc
[
  {
    "id":14,
    "agreed_to_join":true,
    "app_version":"2.9.6",
    "bluetooth_enabled":true,
    "email":"safeuser@responsiblecompany.com",
    "first_name":"Safe",
    "last_active_at":"2020-09-11T15:43:29.682+12:00",
    "last_invited_at":null,
    "last_name":"Awareson",
    "location_enabled":true,
    "push_notification_enabled":true,
    "role":"team_member",
    "user_id":22
  },
  ...
]

Bulk Create Team Users (Async)

Create multiple team_users in a background process.

It takes an optional description field and echo its value on Async Job responses. It also requires a list of team_users to be added to the Organization. These are the allowed fields in for each entry on team_users list:

The response for this request is an Async Job Resource with current status of the Background process. The background process status can be polled if you need to retrieve conclusion status, result and eventual error messages.

Please note that it is possible to have partial failure if not all items are validated.

POST /api/v4/teams/123/team_users/async_bulk_create

{
  "team_users": [
    {
      "email": "ana.admin@team.com",
      "ref": "record1",
      "first_name": "Ana",
      "last_name": "Begins",
      "skip_sending_email": true
      "team_role": "team_admin",
    },
    {
      "email": "mark.manager@team.com",
      "team_role": "team_manager"
    },
    {
      "email": "merrit.member@team.com",
      "team_role": "team_member"
    }
  ],
  "description": "Adding members to organization"
}
{
  "id": 133881,
  "completed": false,
  "description": "Adding members to organization",
  "success": null,
  "artifact_url": null,
  "result": null,
  "download_filename": null
}

Available team_user fields

You can use the fields parameter in any of the Team Users API methods. The requested method will respond with the required fields accordingly. Some fields are included by default but you can opt-out from them on request.