Tayl Tayl Public API

People and groups

Sync people and groups from an HR system, matched by your own IDs, and manage group categories and who belongs to which group.

Part of Tayl's API docs: requests go to https://tayl.pro with Authorization: Bearer <key>, and Errors explains every error code.

Syncing from an HR system or rota tool

  1. Give every person, group and category your system's stable ID as its external_id. The /by-external-id/… operations then read, update and archive them without you storing Tayl's UUIDs.
  2. Create people with POST /api/v1/users/bulk, up to 500 at a time, or one at a time with POST /api/v1/users. Update them with PATCH.
  3. Create the groups, such as sites and teams, then add members with POST /api/v1/groups/{group_id}/memberships and remove them with POST /api/v1/groups/{group_id}/memberships/bulk-remove.
  4. Archive people who leave with DELETE. Archiving keeps their training history, and POST /api/v1/users/{id}/restore brings them back.
  5. Reconcile against a full list regularly, as Conventions describes under incremental sync.

Things to know

People

Groups

Not available yet

Operations

Users

Create, update, archive, and restore people in your organisation.

List users

GET https://tayl.pro/api/v1/users · listUsers · Scope users:read

Lists the organisation's users, including archived ones but not people removed from the organisation or whose accounts were deleted. since considers changes to each person's membership of the organisation.

Parameters

Responses

Example response (200)

{
  "users": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000002",
      "external_id": "usr-1042",
      "email": "alex.chen@example.com",
      "name": "Alex Chen",
      "first_name": "Alex",
      "last_name": "Chen",
      "state": "active",
      "invited_at": "2026-03-10T09:00:00Z",
      "accepted_at": "2026-03-10T09:15:00Z",
      "created_at": "2026-03-10T09:00:00Z",
      "updated_at": "2026-03-16T10:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Create a user

POST https://tayl.pro/api/v1/users · createUser · Scope users:write

Creates an organisation user. An invitation email is sent unless send_invite=false; the invitation flow links the person's Tayl account when they accept. While the organisation is in Setup mode, invitations are held whatever send_invite says: the request still returns 201, and the user stays pending with no invited_at. When the organisation switches to Active, an admin can send the held invitations or invite people one at a time.

Parameters

Body (application/json): UserInput.

Responses

Example request

{
  "email": "alex.chen@example.com",
  "first_name": "Alex",
  "last_name": "Chen",
  "external_id": "usr-1042"
}

Bulk create users

POST https://tayl.pro/api/v1/users/bulk · bulkCreateUsers · Scope users:write

Creates up to 500 users in one call. Each entry succeeds or fails on its own, and the status sums them up: 201 if all succeeded, 207 if some did, 422 if none did. While the organisation is in Setup mode, invitations are held whatever send_invite says: created users stay pending with no invited_at. When the organisation switches to Active, an admin can send the held invitations or invite people one at a time.

Parameters

Body (application/json): BulkUsersRequest.

Responses

Example request

{
  "users": [
    {
      "email": "alex.chen@example.com",
      "first_name": "Alex",
      "last_name": "Chen",
      "external_id": "usr-1042"
    },
    {
      "email": "sam.lee@example.com",
      "first_name": "Sam",
      "last_name": "Lee",
      "external_id": "usr-1043"
    }
  ]
}

Get a user

GET https://tayl.pro/api/v1/users/{id} · getUser · Scope users:read

Returns one current or archived organisation user by Tayl UUID.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000002",
  "external_id": "usr-1042",
  "email": "alex.chen@example.com",
  "name": "Alex Chen",
  "first_name": "Alex",
  "last_name": "Chen",
  "state": "active",
  "invited_at": "2026-03-10T09:00:00Z",
  "accepted_at": "2026-03-10T09:15:00Z",
  "created_at": "2026-03-10T09:00:00Z",
  "updated_at": "2026-03-16T10:00:00Z"
}

Update a user

PATCH https://tayl.pro/api/v1/users/{id} · updateUser · Scope users:write

Applies only the supplied profile and external identifier fields; accepted users retain control of their account name and login email. Changing an invited user's email re-sends their invitation to the new address. In Setup mode the invitation is held instead, and the user returns to pending. If the invitation includes permissions, it is withdrawn (state pending) and an admin must invite them again.

Parameters

Body (application/json): UserUpdateInput.

Responses

Example request

{
  "email": "alex.chen@example.net",
  "external_id": "usr-1042"
}

Archive a user

DELETE https://tayl.pro/api/v1/users/{id} · archiveUser · Scope users:write

Archives the user (they've left the organisation). Learning history is retained; incomplete tasks are cancelled, sessions are ended, and group memberships are suspended. Restoring reverses it. An Organisation Group Admin, or someone who is a group admin elsewhere in the organisation's group, can only be archived by Tayl staff or another group admin, so this returns 403 not_permitted for them.

Parameters

Responses

Restore an archived user

POST https://tayl.pro/api/v1/users/{id}/restore · restoreUser · Scope users:write

Restores a paused or suspended user to active. Archived linked users return to active; unlinked users return to their pending or invited state. Tasks cancelled by the archive are reinstated. An Organisation Group Admin, or someone who is a group admin elsewhere in the organisation's group, can only be restored by Tayl staff or another group admin, so this returns 403 not_permitted for them.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000002",
  "external_id": "usr-1042",
  "email": "alex.chen@example.com",
  "name": "Alex Chen",
  "first_name": "Alex",
  "last_name": "Chen",
  "state": "active",
  "invited_at": "2026-03-10T09:00:00Z",
  "accepted_at": "2026-03-10T09:15:00Z",
  "created_at": "2026-03-10T09:00:00Z",
  "updated_at": "2026-03-16T10:00:00Z"
}

Get a user by external ID

GET https://tayl.pro/api/v1/users/by-external-id/{external_id} · getUserByExternalId · Scope users:read

Returns the user with this external_id, matched case-sensitively.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000002",
  "external_id": "usr-1042",
  "email": "alex.chen@example.com",
  "name": "Alex Chen",
  "first_name": "Alex",
  "last_name": "Chen",
  "state": "active",
  "invited_at": "2026-03-10T09:00:00Z",
  "accepted_at": "2026-03-10T09:15:00Z",
  "created_at": "2026-03-10T09:00:00Z",
  "updated_at": "2026-03-16T10:00:00Z"
}

Update a user by external ID

PATCH https://tayl.pro/api/v1/users/by-external-id/{external_id} · updateUserByExternalId · Scope users:write

Updates the user with this external_id, returning 404 if there's none: it doesn't create one.

Parameters

Body (application/json): UserUpdateInput.

Responses

Example request

{
  "email": "alex.chen@example.net",
  "external_id": "usr-1042"
}

Archive a user by external ID

DELETE https://tayl.pro/api/v1/users/by-external-id/{external_id} · archiveUserByExternalId · Scope users:write

Archives the externally identified user while retaining learning history and allowing a later restore by UUID. Returns 403 not_permitted for an Organisation Group Admin, as archiving by UUID does.

Parameters

Responses

Groups

Mirror your organisation's structure into Tayl groups.

List groups

GET https://tayl.pro/api/v1/groups · listGroups · Scope groups:read

Lists current groups. since considers group updated_at.

Parameters

Responses

Example response (200)

{
  "groups": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000003",
      "external_id": "loc-london",
      "name": "London",
      "description": "People based at the London site",
      "category_id": "019cf5b0-7c00-7000-8000-000000000004",
      "automatic": false,
      "rule_user_group_ids": [],
      "category_made": false,
      "members_count": 18,
      "created_at": "2026-02-01T09:00:00Z",
      "updated_at": "2026-03-15T11:30:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Create a group

POST https://tayl.pro/api/v1/groups · createGroup · Scope groups:write · Personal keys: admins only

Creates a manual group; automatic and rule-based groups are made only by Tayl.

Body (application/json): GroupInput.

Responses

Example request

{
  "name": "London",
  "description": "People based at the London site",
  "category_id": "019cf5b0-7c00-7000-8000-000000000004",
  "external_id": "loc-london"
}

Get a group

GET https://tayl.pro/api/v1/groups/{id} · getGroup · Scope groups:read

Returns one visible group, including its category and current active-member count.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000003",
  "external_id": "loc-london",
  "name": "London",
  "description": "People based at the London site",
  "category_id": "019cf5b0-7c00-7000-8000-000000000004",
  "automatic": false,
  "rule_user_group_ids": [],
  "category_made": false,
  "members_count": 18,
  "created_at": "2026-02-01T09:00:00Z",
  "updated_at": "2026-03-15T11:30:00Z"
}

Update a group

PATCH https://tayl.pro/api/v1/groups/{id} · updateGroup · Scope groups:write · Personal keys: admins only

Updates a manual group's supplied fields; automatic and category-made groups are read-only.

Parameters

Body (application/json): GroupUpdateInput.

Responses

Example request

{
  "name": "London team",
  "description": "People based at the London site"
}

Delete a group

DELETE https://tayl.pro/api/v1/groups/{id} · deleteGroup · Scope groups:write · Personal keys: admins only

Soft-deletes an empty manual group and removes its links to parent groups; the parents remain. Non-deleted memberships and active sub-groups block deletion (422). A category-made group can't be deleted here, and doesn't block deleting a group its rule names: it's hidden with that group. Deleting releases the group's external_id for reuse.

Parameters

Responses

Get a group by external ID

GET https://tayl.pro/api/v1/groups/by-external-id/{external_id} · getGroupByExternalId · Scope groups:read

Returns the group with this external_id, matched case-sensitively.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000003",
  "external_id": "loc-london",
  "name": "London",
  "description": "People based at the London site",
  "category_id": "019cf5b0-7c00-7000-8000-000000000004",
  "automatic": false,
  "rule_user_group_ids": [],
  "category_made": false,
  "members_count": 18,
  "created_at": "2026-02-01T09:00:00Z",
  "updated_at": "2026-03-15T11:30:00Z"
}

Update a group by external ID

PATCH https://tayl.pro/api/v1/groups/by-external-id/{external_id} · updateGroupByExternalId · Scope groups:write · Personal keys: admins only

Updates the group with this external_id, returning 404 if there's none: it doesn't create one.

Parameters

Body (application/json): GroupUpdateInput.

Responses

Example request

{
  "name": "London team",
  "description": "People based at the London site"
}

Delete a group by external ID

DELETE https://tayl.pro/api/v1/groups/by-external-id/{external_id} · deleteGroupByExternalId · Scope groups:write · Personal keys: admins only

Soft-deletes the externally identified group under the same rules as deletion by ID. Non-deleted memberships and active sub-groups block deletion (422); a rule-based group whose rule names it does not. Deleting releases its external identifier for reuse.

Parameters

Responses

Group memberships

Manage which users belong to which groups.

List group members

GET https://tayl.pro/api/v1/groups/{group_id}/memberships · listGroupMemberships · Scope groups:read

Lists current members from every source; only memberships whose source is direct can be removed through this API.

Parameters

Responses

Example response (200)

{
  "memberships": [
    {
      "user_id": "019cf5b0-7c00-7000-8000-000000000002",
      "user_external_id": "usr-1042",
      "email": "alex.chen@example.com",
      "name": "Alex Chen",
      "source": "direct",
      "created_at": "2026-03-12T14:30:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Add members to a group

POST https://tayl.pro/api/v1/groups/{group_id}/memberships · addGroupMembers · Scope groups:write

Adds current users to the group as direct members, entry by entry: existing members report 200, new or restored memberships 201, and archived users 422. A 200 entry keeps its membership's source; one from an included group or an integration is kept in step by Tayl and can't be removed through this API. Not available on automatic groups.

Parameters

Body (application/json): MembershipsRequest.

Responses

Example request

{
  "memberships": [
    {
      "user_external_id": "usr-1042"
    },
    {
      "user_external_id": "usr-1043"
    }
  ]
}

Remove members from a group

POST https://tayl.pro/api/v1/groups/{group_id}/memberships/bulk-remove · removeGroupMembers · Scope groups:write

Removes current users' direct memberships. Someone also in a group that this group includes stays a member, with source inclusion. Archived users report a per-entry 422. Inclusion, automatic, and integration memberships are derived and cannot be removed (per-entry 404). Not available on automatic groups.

Parameters

Body (application/json): MembershipsRequest.

Responses

Example request

{
  "memberships": [
    {
      "user_external_id": "usr-1042"
    },
    {
      "user_external_id": "usr-1043"
    }
  ]
}

Remove a member from a group

DELETE https://tayl.pro/api/v1/groups/{group_id}/memberships/{user_id} · removeGroupMember · Scope groups:write

Removes a current user's direct membership. Someone also in a group that this group includes stays a member, with source inclusion. Archived users receive 422; users without a direct membership receive 404. Not available on automatic groups.

Parameters

Responses

Remove a member from a group by external ID

DELETE https://tayl.pro/api/v1/groups/{group_id}/memberships/by-external-id/{user_external_id} · removeGroupMemberByExternalId · Scope groups:write

Removes a current user's direct membership, naming them by external_id; memberships from included groups or integrations stay as Tayl keeps them. Someone also in a group that this group includes stays a member, with source inclusion.

Parameters

Responses

Group categories

Organise groups by type, such as department or location.

List group categories

GET https://tayl.pro/api/v1/group-categories · listGroupCategories · Scope groups:read

Lists the organisation's taxonomy in display order, including the read-only Automatic category.

Parameters

Responses

Example response (200)

{
  "group_categories": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000004",
      "external_id": "category-location",
      "name": "Location",
      "description": "The site where a person works",
      "colour": "blue",
      "icon": "map-pin",
      "position": 2,
      "automatic": false,
      "created_at": "2026-01-12T08:30:00Z",
      "updated_at": "2026-03-01T12:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Create a group category

POST https://tayl.pro/api/v1/group-categories · createGroupCategory · Scope groups:write · Personal keys: admins only

Adds a category used to organise manual groups in manager views and integrations.

Body (application/json): GroupCategoryInput.

Responses

Example request

{
  "name": "Location",
  "description": "The site where a person works",
  "colour": "blue",
  "icon": "map-pin",
  "external_id": "category-location"
}

Get a group category

GET https://tayl.pro/api/v1/group-categories/{id} · getGroupCategory · Scope groups:read

Returns one organisation group category by Tayl UUID.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000004",
  "external_id": "category-location",
  "name": "Location",
  "description": "The site where a person works",
  "colour": "blue",
  "icon": "map-pin",
  "position": 2,
  "automatic": false,
  "created_at": "2026-01-12T08:30:00Z",
  "updated_at": "2026-03-01T12:00:00Z"
}

Update a group category

PATCH https://tayl.pro/api/v1/group-categories/{id} · updateGroupCategory · Scope groups:write · Personal keys: admins only

Updates the supplied name, visual treatment, or external identifier; the Automatic category is read-only.

Parameters

Body (application/json): GroupCategoryUpdateInput.

Responses

Example request

{
  "description": "The primary site where a person works",
  "colour": "indigo"
}

Delete a group category

DELETE https://tayl.pro/api/v1/group-categories/{id} · deleteGroupCategory · Scope groups:write · Personal keys: admins only

Categories with groups attached cannot be deleted (422); recategorise the groups first.

Parameters

Responses

Get a group category by external ID

GET https://tayl.pro/api/v1/group-categories/by-external-id/{external_id} · getGroupCategoryByExternalId · Scope groups:read

Returns the category with this external_id, matched case-sensitively.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000004",
  "external_id": "category-location",
  "name": "Location",
  "description": "The site where a person works",
  "colour": "blue",
  "icon": "map-pin",
  "position": 2,
  "automatic": false,
  "created_at": "2026-01-12T08:30:00Z",
  "updated_at": "2026-03-01T12:00:00Z"
}

Update a group category by external ID

PATCH https://tayl.pro/api/v1/group-categories/by-external-id/{external_id} · updateGroupCategoryByExternalId · Scope groups:write · Personal keys: admins only

Updates supplied fields on the externally identified category; it never creates a missing category.

Parameters

Body (application/json): GroupCategoryUpdateInput.

Responses

Example request

{
  "description": "The primary site where a person works",
  "colour": "indigo"
}

Delete a group category by external ID

DELETE https://tayl.pro/api/v1/group-categories/by-external-id/{external_id} · deleteGroupCategoryByExternalId · Scope groups:write · Personal keys: admins only

Deletes the externally identified category only when no groups still use it.

Parameters

Responses

Schemas

ExternalId

Caller-owned identifier, unique within the organisation. Matched case-sensitively; surrounding whitespace is stripped. String, at most 255 characters.

UserList

One page of organisation users and its pagination metadata.

User

A member of the organisation (an OrganisationUser). state tracks the membership lifecycle; archived users are retained with their learning history.

Meta

Pagination details on every list. Page links also come in the RFC 8288 Link header, as first, prev, next and last.

NullableExternalId

Caller-owned identifier, unique within the organisation. Matched case-sensitively; surrounding whitespace is stripped. String or null, at most 255 characters.

UserInput

Fields for adding one person.

UserGroupReference

Names a group by exactly one of group_id (Tayl UUID) or group_external_id (yours).

BulkUsersRequest

Up to 500 users, each checked and added on its own.

BulkUsersResult

One entry per submitted user, in submission order. The HTTP status is 201 when every entry succeeded, 207 on partial success, 422 when every entry failed.

BulkUserInput

Same fields as UserInput, but deliberately without schema-level required fields: entries are validated server-side per entry, so a missing or invalid field (email included) fails that entry with a per-entry 422, never the whole request.

ErrorItem

One machine-readable problem in the standard API error envelope.

UserUpdateInput

Fields you leave out keep their values. Name fields are refused once the user has accepted their invitation, as the name then belongs to their account, and first_name and last_name must be sent together, as the invited name is stored as one string. For accepted users, changing email changes only the address the organisation contacts and matches them by, as HR sync does; their Tayl sign-in email is theirs and stays as it is. The changed address stays unconfirmed until the person confirms it, and emails only go there if they choose it. For invited users, changing email re-sends their invitation to the new address, and the previous invitation link stops working.

GroupList

One page of groups and its pagination metadata.

Group

A group of people. Automatic groups (automatic: true) are maintained by Tayl and read-only through the API. Rule-based groups (a non-empty rule_user_group_ids, category_made: true) are made only by Tayl, as a group category's subgroups: each holds everyone in both of the groups its rule names, and is read-only here apart from its memberships. People added to one directly (source direct) are in those groups through it.

GroupInput

Fields accepted when creating a group.

GroupUpdateInput

Fields you leave out keep their values.

MembershipList

One page of active memberships for a group.

Membership

A person's membership of a group. source records how it arose; only direct memberships can be managed through the API.

MembershipsRequest

Users to add to or remove from a group, identified independently.

BulkMembershipsResult

One entry per submitted membership, in submission order. Add: 201 added (or restored), 200 already a member (idempotent). Remove: 200 direct membership removed (the user stays a member through any group this group includes), 404 not a direct member.

Error

Standard error envelope returned by every error response the API renders. An unhandled 500 is built outside the API and carries Rails' default JSON error instead.

MembershipEntry

Names a current user by exactly one of user_id (Tayl UUID) or user_external_id (yours). Entries in one request can mix them. Each entry is checked on its own, so a malformed identifier, an archived user, or an entry naming both identifiers or neither fails with its own 422, never the whole request.

GroupCategoryList

One ordered page of group categories and its pagination metadata.

GroupCategory

A group category, one of the ways the organisation sorts its groups, such as Department or Location. The system "Automatic" category is read-only.

CategoryColour

One of Tayl's category colours. One of "gray", "slate", "red", "orange", "amber", "yellow", "lime", "green", "teal", "blue", "indigo", "purple", "pink".

CategoryIcon

One of Tayl's category icons. One of "tag", "badge", "badge-check", "book", "briefcase", "briefcase-business", "briefcase-medical", "brush", "building", "camera", "chart-line", "clipboard-check", "clipboard-list", "clock", "droplet", "film", "flame", "flask-conical", "globe", "graduation-cap", "hand-heart", "headset", "heart", "hotel", "id-card", "laptop", "leaf", "lightbulb", "map-pin", "map-pinned", "palette", "pencil", "puzzle", "scale", "settings", "shield", "sparkles", "star", "store", "truck", "users", "utensils", "wrench".

GroupCategoryInput

Fields accepted when adding an organisation taxonomy category.

GroupCategoryUpdateInput

Fields you leave out keep their values.