Tayl Tayl Public API

Assigning training

Assign courses, pathways and signable documents from the content library to people and groups, and change or archive those assignments.

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

The people and group lists from People and groups are repeated here, so finding who to assign training to needs only this page.

Making an assignment

  1. Find the course, pathway or signable document with GET /api/v1/courses, /api/v1/pathways or /api/v1/signable-documents. Content can be assigned once its in_library is true; an admin or content manager adds Tayl's own courses to the library in Tayl first.
  2. Find the people or groups to assign it to with GET /api/v1/users or GET /api/v1/groups, or use your own external_ids.
  3. Create the assignment with POST /api/v1/assignments, naming the content and its targets. Tayl publishes it and, in the background, creates a task for every person targeted, including each member of a targeted group.

Reporting covers following up on who has completed it.

Assignment rules

Operations

Content library

Published courses, pathways, and signable documents available to assign.

List courses

GET https://tayl.pro/api/v1/courses · listCourses · Scope content:read

Lists the published courses the organisation can see: its own, Tayl's, and those shared through its organisation group, which stay visible only while the group shares them, even if assignments still use them. A course can be assigned once in_library is true; an admin or content manager adds Tayl's courses to the library in Tayl. With status=draft or status=archived, it lists the organisation's own drafts or archived courses instead, such as a course created through the API that hasn't been published yet. since considers changes to courses and to their places in the organisation's or group's library. Removing one of Tayl's courses from the library doesn't count, as the course stays listed with in_library false and no new timestamp, so reconcile against the full list regularly.

Parameters

Responses

Example response (200)

{
  "courses": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000005",
      "title": "Food safety essentials",
      "description": "Safe food handling for new starters",
      "status": "published",
      "platform_course": true,
      "syncs_from_v2": false,
      "in_library": true,
      "compliance_training": true,
      "current_version_id": "019cf5b0-7c00-7000-8000-000000000006",
      "current_version_number": 3,
      "published_at": "2026-02-20T10:00:00Z",
      "created_at": "2025-11-01T09:00:00Z",
      "updated_at": "2026-02-20T10:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Get a course

GET https://tayl.pro/api/v1/courses/{id} · getCourse · Scope content:read

Returns a visible published course and the version UUID that a new assignment will deliver, or one of the organisation's own drafts or archived courses.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000005",
  "title": "Food safety essentials",
  "description": "Safe food handling for new starters",
  "status": "published",
  "platform_course": true,
  "syncs_from_v2": false,
  "in_library": true,
  "compliance_training": true,
  "current_version_id": "019cf5b0-7c00-7000-8000-000000000006",
  "current_version_number": 3,
  "published_at": "2026-02-20T10:00:00Z",
  "created_at": "2025-11-01T09:00:00Z",
  "updated_at": "2026-02-20T10:00:00Z"
}

List pathways

GET https://tayl.pro/api/v1/pathways · listPathways · Scope content:read

Lists the published pathways the organisation can see: its own and those shared through its organisation group, which stay visible only while the group shares them, even if assignments still use them. since considers changes to pathways and to their places in the organisation's or group's library. A pathway leaving a library leaves no trace for since, so reconcile against the full list regularly.

Parameters

Responses

Example response (200)

{
  "pathways": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000007",
      "title": "Front of house onboarding",
      "current_version_id": "019cf5b0-7c00-7000-8000-000000000008",
      "current_version_number": 2,
      "published_at": "2026-02-25T10:00:00Z",
      "created_at": "2025-12-01T09:00:00Z",
      "updated_at": "2026-02-25T10:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Get a pathway

GET https://tayl.pro/api/v1/pathways/{id} · getPathway · Scope content:read

Returns a visible published pathway and the version UUID that a new assignment will deliver.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000007",
  "title": "Front of house onboarding",
  "current_version_id": "019cf5b0-7c00-7000-8000-000000000008",
  "current_version_number": 2,
  "published_at": "2026-02-25T10:00:00Z",
  "created_at": "2025-12-01T09:00:00Z",
  "updated_at": "2026-02-25T10:00:00Z"
}

List signable documents

GET https://tayl.pro/api/v1/signable-documents · listSignableDocuments · Scope content:read

Lists the published signable documents the organisation can see: its own and those shared through its organisation group, which stay visible only while the group shares them, even if assignments still use them. since considers changes to documents and to their places in the organisation's or group's library. A document leaving a library leaves no trace for since, so reconcile against the full list regularly.

Parameters

Responses

Example response (200)

{
  "signable_documents": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000009",
      "title": "Employee handbook",
      "compliance_training": true,
      "current_version_id": "019cf5b0-7c00-7000-8000-00000000000a",
      "current_version_number": 4,
      "published_at": "2026-03-01T10:00:00Z",
      "created_at": "2025-10-01T09:00:00Z",
      "updated_at": "2026-03-01T10:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Get a signable document

GET https://tayl.pro/api/v1/signable-documents/{id} · getSignableDocument · Scope content:read

Returns a visible published document and the version UUID that a new assignment will deliver.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-000000000009",
  "title": "Employee handbook",
  "compliance_training": true,
  "current_version_id": "019cf5b0-7c00-7000-8000-00000000000a",
  "current_version_number": 4,
  "published_at": "2026-03-01T10:00:00Z",
  "created_at": "2025-10-01T09:00:00Z",
  "updated_at": "2026-03-01T10:00:00Z"
}

Assignments

Assign training to people and groups. Tayl creates learner tasks automatically.

List assignments

GET https://tayl.pro/api/v1/assignments · listAssignments · Scope assignments:read

Lists the organisation's assignments in every state except draft, as drafts are still being set up in Tayl. since considers changes to assignments; replacing targets changes the assignment, but a change to a setting it inherits from the content library doesn't.

Parameters

Responses

Example response (200)

{
  "assignments": [
    {
      "id": "019cf5b0-7c00-7000-8000-00000000000b",
      "external_id": "asg-food-safety-london-2026",
      "state": "published",
      "assignable_type": "course",
      "assignable_id": "019cf5b0-7c00-7000-8000-000000000005",
      "assignable_version_id": "019cf5b0-7c00-7000-8000-000000000006",
      "title": "Food safety essentials",
      "targets": [
        {
          "type": "group",
          "id": "019cf5b0-7c00-7000-8000-000000000003",
          "external_id": "loc-london"
        }
      ],
      "due_in_days": 14,
      "due_on": null,
      "issues_certificates": true,
      "requires_recompletion": true,
      "require_sequential_progress": false,
      "include_future_members": true,
      "send_notification": true,
      "title_override": null,
      "effective_settings": {
        "due_in_days": 14,
        "valid_for_months": 12,
        "available_to_recertify_within_days": 30,
        "issues_certificates": true,
        "minimum_minutes_required": 10,
        "sources": {
          "due_in_days": {
            "source": "assignment",
            "required": false,
            "locked": false
          },
          "valid_for_months": {
            "source": "content_library",
            "required": false,
            "locked": false
          },
          "available_to_recertify_within_days": {
            "source": "content_library",
            "required": false,
            "locked": false
          },
          "issues_certificates": {
            "source": "assignment",
            "required": false,
            "locked": false
          },
          "minimum_minutes_required": {
            "source": "content_library",
            "required": false,
            "locked": false
          }
        }
      },
      "published_at": "2026-03-12T09:00:00Z",
      "scheduled_publish_at": null,
      "archived_at": null,
      "created_at": "2026-03-12T09:00:00Z",
      "updated_at": "2026-03-12T09:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "total_count": 1
  }
}

Create an assignment

POST https://tayl.pro/api/v1/assignments · createAssignment · Scope assignments:write

Creates and publishes an assignment in one call, then creates a task in the background for every person targeted, including each member of a targeted group. The content must be published, visible to the organisation and in its library. Targets mix people and groups, by UUID or external_id. Training rules come from the content library, though an assignment may set its own due date; validity, recertification, certificates and minimum time can't be changed here. Publishing fails with 422 if another published assignment already covers the same content and people.

Body (application/json): AssignmentCreateInput.

Responses

Example request

{
  "assignable_type": "course",
  "assignable_id": "019cf5b0-7c00-7000-8000-000000000005",
  "external_id": "asg-food-safety-london-2026",
  "targets": [
    {
      "group_external_id": "loc-london"
    }
  ],
  "due_in_days": 14
}

Get an assignment

GET https://tayl.pro/api/v1/assignments/{id} · getAssignment · Scope assignments:read

Returns one non-draft assignment, with the people and groups it's for and the settings learners get.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-00000000000b",
  "external_id": "asg-food-safety-london-2026",
  "state": "published",
  "assignable_type": "course",
  "assignable_id": "019cf5b0-7c00-7000-8000-000000000005",
  "assignable_version_id": "019cf5b0-7c00-7000-8000-000000000006",
  "title": "Food safety essentials",
  "targets": [
    {
      "type": "group",
      "id": "019cf5b0-7c00-7000-8000-000000000003",
      "external_id": "loc-london"
    }
  ],
  "due_in_days": 14,
  "due_on": null,
  "issues_certificates": true,
  "requires_recompletion": true,
  "require_sequential_progress": false,
  "include_future_members": true,
  "send_notification": true,
  "title_override": null,
  "effective_settings": {
    "due_in_days": 14,
    "valid_for_months": 12,
    "available_to_recertify_within_days": 30,
    "issues_certificates": true,
    "minimum_minutes_required": 10,
    "sources": {
      "due_in_days": {
        "source": "assignment",
        "required": false,
        "locked": false
      },
      "valid_for_months": {
        "source": "content_library",
        "required": false,
        "locked": false
      },
      "available_to_recertify_within_days": {
        "source": "content_library",
        "required": false,
        "locked": false
      },
      "issues_certificates": {
        "source": "assignment",
        "required": false,
        "locked": false
      },
      "minimum_minutes_required": {
        "source": "content_library",
        "required": false,
        "locked": false
      }
    }
  },
  "published_at": "2026-03-12T09:00:00Z",
  "scheduled_publish_at": null,
  "archived_at": null,
  "created_at": "2026-03-12T09:00:00Z",
  "updated_at": "2026-03-12T09:00:00Z"
}

Update an assignment

PATCH https://tayl.pro/api/v1/assignments/{id} · updateAssignment · Scope assignments:write

Updates the assignment's own settings and, optionally, who it's for. Fields you leave out keep their values, and null returns a setting to the one it inherits. Validity, recertification, certificates and minimum time are set in the content library and can't be changed here. Setting one of due_in_days and due_on clears the other. A targets array replaces the people and groups: added ones get tasks in the background, and tasks kept only by removed ones are cancelled. Replacing them fails with 422, changing nothing, when another published assignment already covers the same content and one of the new targets. Archived assignments can't change, and frozen ones can't change their targets (422).

Parameters

Body (application/json): AssignmentUpdateInput.

Responses

Example request

{
  "due_in_days": 21,
  "send_notification": false
}

Archive an assignment

DELETE https://tayl.pro/api/v1/assignments/{id} · archiveAssignment · Scope assignments:write

Archives the assignment and removes it from learners' tasks, cancelling any task only this assignment kept. Archiving an archived assignment changes nothing.

Parameters

Responses

Get an assignment by external ID

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

Returns the non-draft assignment with this external_id.

Parameters

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-00000000000b",
  "external_id": "asg-food-safety-london-2026",
  "state": "published",
  "assignable_type": "course",
  "assignable_id": "019cf5b0-7c00-7000-8000-000000000005",
  "assignable_version_id": "019cf5b0-7c00-7000-8000-000000000006",
  "title": "Food safety essentials",
  "targets": [
    {
      "type": "group",
      "id": "019cf5b0-7c00-7000-8000-000000000003",
      "external_id": "loc-london"
    }
  ],
  "due_in_days": 14,
  "due_on": null,
  "issues_certificates": true,
  "requires_recompletion": true,
  "require_sequential_progress": false,
  "include_future_members": true,
  "send_notification": true,
  "title_override": null,
  "effective_settings": {
    "due_in_days": 14,
    "valid_for_months": 12,
    "available_to_recertify_within_days": 30,
    "issues_certificates": true,
    "minimum_minutes_required": 10,
    "sources": {
      "due_in_days": {
        "source": "assignment",
        "required": false,
        "locked": false
      },
      "valid_for_months": {
        "source": "content_library",
        "required": false,
        "locked": false
      },
      "available_to_recertify_within_days": {
        "source": "content_library",
        "required": false,
        "locked": false
      },
      "issues_certificates": {
        "source": "assignment",
        "required": false,
        "locked": false
      },
      "minimum_minutes_required": {
        "source": "content_library",
        "required": false,
        "locked": false
      }
    }
  },
  "published_at": "2026-03-12T09:00:00Z",
  "scheduled_publish_at": null,
  "archived_at": null,
  "created_at": "2026-03-12T09:00:00Z",
  "updated_at": "2026-03-12T09:00:00Z"
}

Update an assignment by external ID

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

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

Parameters

Body (application/json): AssignmentUpdateInput.

Responses

Example request

{
  "due_in_days": 21,
  "send_notification": false
}

Archive an assignment by external ID

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

Archives the externally identified assignment and cancels tasks sustained only by that assignment.

Parameters

Responses

Users

Repeated from People and groups, which has the rest of these operations.

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
  }
}

Groups

Repeated from People and groups, which has the rest of these operations.

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
  }
}

Schemas

CourseList

One page of courses.

Course

A published course the organisation can see, or one of its own drafts or archived courses. Pass a published course's id as assignable_id (with assignable_type: course) when creating an assignment; learners get the current published version.

Meta

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

PathwayList

One page of published pathways in the organisation library.

Pathway

A published learning pathway in the organisation's library. Pass id as assignable_id (with assignable_type: pathway) when creating an assignment.

SignableDocumentList

One page of published signable documents in the organisation library.

SignableDocument

A published document requiring signatures, in the organisation's library. Pass id as assignable_id (with assignable_type: signable_document) when creating an assignment.

AssignmentList

One page of non-draft assignments.

Assignment

Content assigned to people and groups. The assignment's own settings are top-level fields; the settings learners get, wherever they come from, are under effective_settings.

AssignmentTarget

A person or group the assignment is for.

AssignmentSettingSource

Ownership and write-protection metadata for one effective training setting. Unknown fields are refused.

AssignmentCreateInput

Published content, the people and groups to assign it to, and optional assignment settings. Validity, recertification, certificates and minimum time are set in the content library; sending them returns 422.

AssignmentTargetInput

Exactly one identifying key per entry. Unresolvable entries fail the whole request with a 422 pointing at the offending index. Send exactly one of user_id, user_external_id, group_id, group_external_id. Unknown fields are refused.

AssignmentUpdateInput

Fields you leave out keep their values, and null returns a setting to the one it inherits. Validity, recertification, certificates and minimum time are set in the content library; sending them returns 422. Setting one of due_in_days and due_on clears the other. A targets array replaces the people and groups: added ones get tasks, and tasks kept only by removed ones are cancelled.

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.

NullableExternalId

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

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.