Tayl Tayl Public API

Course authoring

Build, change and publish the organisation's own courses, for example from a presentation, whole or a chapter or page at a time.

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

Each course is a JSON document. Tayl's courses, and courses shared through an organisation group, can't be read or changed this way, except by Tayl staff (see Tayl's own courses). The course, chapter, page and outline documents are described under Schemas below. Their blocks and questions are described in Course document format: read it too before writing a course's content.

Before you start

Making a good course

Build what a skilled instructional designer would make in Tayl's course builder, not the source material pasted onto pages. People take these courses at work, often on a phone. The person's instructions and brief come first; these are the defaults.

Plan around the learner

Make the learning path clear

Choose purposeful blocks

Make images and design work together

Write plainly

Review before you hand it over

Building a course

  1. Upload each image with POST /api/v1/media and keep the id it returns. Send the file as multipart form data or, if you can only send JSON, the image's public url for Tayl to download; through Tayl's MCP server, use tayl_upload_image. Images must be JPEG, PNG, GIF, WebP or AVIF, up to 10 MB and 50 megapixels, so convert others first, such as EMF, WMF, SVG or TIFF images from a presentation. Uploading the same file again returns the image already in the library.
  2. Create the course with POST /api/v1/courses, putting those IDs in image fields such as image or hero_image. The course starts as a draft only people in the course builder can see. Keep its id; GET /api/v1/courses?status=draft finds it again.
  3. Read the draft with GET /api/v1/courses/{id}/draft, change it, and save it with PUT (the whole document) or PATCH (a JSON Patch, sent as application/json-patch+json). Send the etag from your last read or write as If-Match: each write returns the new one.
  4. If the person asked you to publish, publish with POST /api/v1/courses/{id}/draft/publish once publishable is true. On a first publish you can send training_rules for the content library, such as {"training_rules":{"due_in_days":14}}; otherwise the course's recommended rules apply.

To change a published course, first start its draft with POST /api/v1/courses/{id}/draft, as opening the course builder does. Until then, reading or saving the draft returns 404 no_draft. Learners keep the published version until the draft is published.

Working a part at a time

A big course can be built and changed a chapter or page at a time:

One etag covers the whole course, so each part's write changes it for every part. A 412 version_changed means the course changed after your last read, perhaps in the course builder: read it again and reapply your changes.

Saving

Tayl's own courses

A Tayl staff member's own key or AI assistant works on Tayl's own courses, which every organisation uses, as its organisation's courses:

Limits and timing

Each document you send, whether a course, chapter or page, can hold up to 100,000 values, 15,000 records and 10 MB of text, or returns 422 document_too_large; build a bigger course a chapter or page at a time. Values are every object, list, field name and field value. Records are what a save writes: one for each object and each text in a list, plus each block's content, a knowledge check's quiz, the blank cells and gaps it fills in, and two for each file. A page saves in well under a second and most chapters and courses in a few seconds, but a document near the limits can take about a minute. Allow at least 90 seconds before treating a save as timed out. A save that times out may still have been saved, so read the draft before trying again, or for a new course, look for it with GET /api/v1/courses?status=draft.

Not available yet

Operations

Course authoring

Read a course your organisation authored as one document, save it as a draft, upload images for it and publish it.

Create a course

POST https://tayl.pro/api/v1/courses · createCourse · Scope content:write · Needs Course Builder

Creates a course in your organisation from a course document. It starts as a draft only people in the course builder see; course.editor_url opens it there for review, and GET /api/v1/courses?status=draft lists it until it's published. Read publishable and publish_error to see whether it's ready to publish. A document over the limits in the course authoring guide returns 422 document_too_large: start a bigger course with its first chapters and add the rest with POST /api/v1/courses/{id}/draft/chapters.

Body (application/json): CourseDocument.

Responses

Example request

{
  "title": "Allergen awareness",
  "description": "What every server needs to know",
  "hero_image": null,
  "duration_min_minutes": null,
  "duration_max_minutes": 20,
  "appearance": {
    "display_theme": "adapt",
    "theme_color": "#3f5da5",
    "theme_color_dark": null,
    "theme_secondary_color": null,
    "theme_secondary_color_dark": null,
    "heading_font": null,
    "body_font": null
  },
  "chapters": [
    {
      "title": "The 14 allergens",
      "header": false,
      "pages": [
        {
          "title": "Why it matters",
          "blocks": [
            {
              "type": "text",
              "html": "<p>One wrong ingredient can put a guest in hospital. Every dish lists its allergens, so you can answer their questions with confidence.</p>",
              "wrapper": {
                "background_color": "#eef2fb",
                "background_color_dark": "#1c2a4f"
              }
            },
            {
              "type": "highlight",
              "html": "<p>Never guess an ingredient. If you're not sure, ask the kitchen.</p>",
              "style": "warning"
            },
            {
              "type": "flashcard_container",
              "cards": [
                {
                  "front_html": "<p>Celery</p>",
                  "back_html": "<p>Includes celeriac and celery salt.</p>",
                  "appearance": {
                    "front_bg_color": "#3f5da5",
                    "front_text_color": "#ffffff"
                  }
                },
                {
                  "front_html": "<p>Mustard</p>",
                  "back_html": "<p>Includes liquid mustard, mustard powder and seeds.</p>",
                  "appearance": {
                    "front_bg_color": "#3f5da5",
                    "front_text_color": "#ffffff"
                  }
                }
              ]
            },
            {
              "type": "knowledge_check",
              "question": {
                "kind": "single_choice",
                "text": "A guest is allergic to celery. Which of these could contain it?",
                "correct_message": "Right: celery salt is made from celery seeds.",
                "incorrect_message": "Not quite: celery salt is made from celery seeds, so it contains celery.",
                "answers": [
                  {
                    "text": "Celery salt",
                    "correct": true
                  },
                  {
                    "text": "Black pepper",
                    "correct": false
                  },
                  {
                    "text": "Sea salt",
                    "correct": false
                  }
                ]
              }
            }
          ]
        }
      ],
      "quiz": null,
      "signing": null,
      "scorm": null
    }
  ]
}

Delete a course

DELETE https://tayl.pro/api/v1/courses/{id} · deleteCourse · Scope content:write · Needs Course Builder

Deletes a course your organisation created that has never been published. A published course can't be deleted; archive it instead. Send the etag you last read as If-Match so a course someone has changed since isn't deleted.

Parameters

Responses

Get a course's published content

GET https://tayl.pro/api/v1/courses/{id}/content · getCourseContent · Scope content:read · Personal keys: people who author courses only

Returns the published version of a course your organisation authored as one document, with the files it names. Courses from Tayl or shared by your organisation group aren't available. A course that has never been published has only a draft; read it with GET /api/v1/courses/{id}/draft. To change a published course, start its draft with POST /api/v1/courses/{id}/draft and work on that.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "published",
    "published_at": "2026-10-01T09:00:00Z",
    "current_version_id": "019cf5b0-7c00-7000-8000-000000000006",
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": false,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "publishable": false,
  "publish_error": "There's no draft to publish.",
  "review": [
    {
      "pointer": "/hero_image",
      "code": "no_hero_image",
      "message": "Give the course a hero_image, which learners see on their task and at the top of the course."
    },
    {
      "pointer": "/chapters/0/pages/0",
      "code": "nothing_to_see_or_do",
      "message": "This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."
    },
    {
      "pointer": "/chapters/0",
      "code": "no_practice",
      "message": "Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."
    }
  ],
  "media": {},
  "content": {
    "title": "Allergen awareness",
    "description": "What every server needs to know",
    "hero_image": null,
    "duration_min_minutes": null,
    "duration_max_minutes": 20,
    "appearance": {
      "display_theme": "adapt",
      "theme_color": "#3f5da5",
      "theme_color_dark": null,
      "theme_secondary_color": null,
      "theme_secondary_color_dark": null,
      "heading_font": null,
      "body_font": null
    },
    "chapters": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000014",
        "title": "The 14 allergens",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000025",
            "title": "Why it matters",
            "blocks": [
              {
                "id": "019cf5b0-7c00-7000-8000-000000000125",
                "type": "text",
                "html": "<p>Every dish must list its allergens.</p>"
              }
            ]
          }
        ],
        "quiz": null,
        "signing": null,
        "scorm": null
      }
    ]
  }
}

Get a course's published outline

GET https://tayl.pro/api/v1/courses/{id}/content/outline · getCourseContentOutline · Scope content:read · Personal keys: people who author courses only

Returns the chapters and pages of a course's published version by ID and title, without their content, so you can find your way around a large course before reading parts of it. A course that has never been published returns 404.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "published",
    "published_at": "2026-10-01T09:00:00Z",
    "current_version_id": "019cf5b0-7c00-7000-8000-000000000006",
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": false,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "content": {
    "chapters": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000301",
        "title": "The 14 allergens",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000401",
            "title": "Why it matters"
          },
          {
            "id": "019cf5b0-7c00-7000-8000-000000000402",
            "title": "Questions guests ask"
          }
        ]
      },
      {
        "id": "019cf5b0-7c00-7000-8000-000000000302",
        "title": "Serving guests safely",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000403",
            "title": "Taking an order"
          }
        ]
      },
      {
        "id": "019cf5b0-7c00-7000-8000-000000000303",
        "title": "Old notes",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000404",
            "title": "Draft notes"
          }
        ]
      }
    ]
  }
}

Get a chapter of a course's published content

GET https://tayl.pro/api/v1/courses/{id}/content/chapters/{chapter_id} · getCourseContentChapter · Scope content:read · Personal keys: people who author courses only

Returns one chapter of a course's published version as a document: its title, quiz, signing and SCORM package, and its pages with their blocks, with the files it names. Find chapter IDs in the published outline.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "published",
    "published_at": "2026-10-01T09:00:00Z",
    "current_version_id": "019cf5b0-7c00-7000-8000-000000000006",
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": false,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "review": [
    {
      "pointer": "/pages/0",
      "code": "nothing_to_see_or_do",
      "message": "This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."
    },
    {
      "pointer": "",
      "code": "no_practice",
      "message": "Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."
    }
  ],
  "media": {},
  "content": {
    "id": "019cf5b0-7c00-7000-8000-000000000011",
    "title": "The 14 allergens",
    "header": false,
    "pages": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000021",
        "title": "Why it matters",
        "blocks": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000121",
            "type": "text",
            "html": "<p>Every dish must list its allergens.</p>"
          }
        ]
      }
    ],
    "quiz": null,
    "signing": null,
    "scorm": null
  }
}

Get a page of a course's published content

GET https://tayl.pro/api/v1/courses/{id}/content/pages/{page_id} · getCourseContentPage · Scope content:read · Personal keys: people who author courses only

Returns one page of a course's published version as a document, its title and blocks, with the files it names. Find page IDs in the published outline.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "published",
    "published_at": "2026-10-01T09:00:00Z",
    "current_version_id": "019cf5b0-7c00-7000-8000-000000000006",
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": false,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "review": [
    {
      "pointer": "",
      "code": "nothing_to_see_or_do",
      "message": "This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."
    }
  ],
  "media": {},
  "content": {
    "id": "019cf5b0-7c00-7000-8000-000000000022",
    "title": "Why it matters",
    "blocks": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000122",
        "type": "text",
        "html": "<p>Every dish must list its allergens.</p>"
      }
    ]
  }
}

Get a course's draft

GET https://tayl.pro/api/v1/courses/{id}/draft · getCourseDraft · Scope content:read · Personal keys: people who author courses only

Returns the draft of a course your organisation authored as one document, with the files it names, whether it can be published and the etag to send when saving it. A published course has no draft until one is started, with POST here or by editing the course in the course builder; until then this returns 404 no_draft.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "draft",
    "published_at": null,
    "current_version_id": null,
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": true,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "publishable": true,
  "publish_error": null,
  "review": [
    {
      "pointer": "/hero_image",
      "code": "no_hero_image",
      "message": "Give the course a hero_image, which learners see on their task and at the top of the course."
    },
    {
      "pointer": "/chapters/0/pages/0",
      "code": "nothing_to_see_or_do",
      "message": "This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."
    },
    {
      "pointer": "/chapters/0",
      "code": "no_practice",
      "message": "Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."
    }
  ],
  "media": {},
  "content": {
    "title": "Allergen awareness",
    "description": "What every server needs to know",
    "hero_image": null,
    "duration_min_minutes": null,
    "duration_max_minutes": 20,
    "appearance": {
      "display_theme": "adapt",
      "theme_color": "#3f5da5",
      "theme_color_dark": null,
      "theme_secondary_color": null,
      "theme_secondary_color_dark": null,
      "heading_font": null,
      "body_font": null
    },
    "chapters": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000015",
        "title": "The 14 allergens",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000026",
            "title": "Why it matters",
            "blocks": [
              {
                "id": "019cf5b0-7c00-7000-8000-000000000126",
                "type": "text",
                "html": "<p>Every dish must list its allergens.</p>"
              }
            ]
          }
        ],
        "quiz": null,
        "signing": null,
        "scorm": null
      }
    ]
  }
}

Start a course's draft

POST https://tayl.pro/api/v1/courses/{id}/draft · startCourseDraft · Scope content:write · Needs Course Builder

Starts the draft that changes to a published course go to, as opening the course in the course builder does, and returns it. The draft starts as a copy of the published content; learners keep the published version until the draft is published. If the course already has a draft, this returns it with 200, and a course that has never been published is a draft already. Archived courses return 422 course_archived.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "draft",
    "published_at": null,
    "current_version_id": null,
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": true,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "publishable": true,
  "publish_error": null,
  "review": [
    {
      "pointer": "/hero_image",
      "code": "no_hero_image",
      "message": "Give the course a hero_image, which learners see on their task and at the top of the course."
    },
    {
      "pointer": "/chapters/0/pages/0",
      "code": "nothing_to_see_or_do",
      "message": "This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."
    },
    {
      "pointer": "/chapters/0",
      "code": "no_practice",
      "message": "Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."
    }
  ],
  "media": {},
  "content": {
    "title": "Allergen awareness",
    "description": "What every server needs to know",
    "hero_image": null,
    "duration_min_minutes": null,
    "duration_max_minutes": 20,
    "appearance": {
      "display_theme": "adapt",
      "theme_color": "#3f5da5",
      "theme_color_dark": null,
      "theme_secondary_color": null,
      "theme_secondary_color_dark": null,
      "heading_font": null,
      "body_font": null
    },
    "chapters": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000016",
        "title": "The 14 allergens",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000027",
            "title": "Why it matters",
            "blocks": [
              {
                "id": "019cf5b0-7c00-7000-8000-000000000127",
                "type": "text",
                "html": "<p>Every dish must list its allergens.</p>"
              }
            ]
          }
        ],
        "quiz": null,
        "signing": null,
        "scorm": null
      }
    ]
  }
}

Replace a course's draft

PUT https://tayl.pro/api/v1/courses/{id}/draft · replaceCourseDraft · Scope content:write · Needs Course Builder

Saves a course document as the course's draft and returns it. Send the etag from your last read as If-Match; if the course changed since, you get 412 and nothing is saved.

Chapters, pages and blocks you send with their id keep it, and a block's content or a chapter's quiz, signing or SCORM package you leave as they are aren't rewritten; a block moves to another page by appearing there. Those without an id are new; chapters, pages and blocks you leave out are removed, and fields you leave out inside them take the builder's defaults. Top-level fields you leave out keep their current values. title, description, hero_image and appearance.display_theme belong to the course, so they change for learners straight away; everything else waits until the draft is published. Saving a document identical to the current content changes nothing. Archived courses can't be saved, and saving needs Course Builder. A document over the size limits returns 422 document_too_large. Change a bigger course a chapter or page at a time.

Parameters

Body (application/json): CourseDocument.

Responses

Example request

{
  "title": "Allergen awareness",
  "description": "What every server needs to know",
  "hero_image": null,
  "duration_min_minutes": null,
  "duration_max_minutes": 20,
  "appearance": {
    "display_theme": "adapt",
    "theme_color": "#3f5da5",
    "theme_color_dark": null,
    "theme_secondary_color": null,
    "theme_secondary_color_dark": null,
    "heading_font": null,
    "body_font": null
  },
  "chapters": [
    {
      "id": "019cf5b0-7c00-7000-8000-00000000001a",
      "title": "The 14 allergens",
      "header": false,
      "pages": [
        {
          "id": "019cf5b0-7c00-7000-8000-00000000002b",
          "title": "Why it matters",
          "blocks": [
            {
              "id": "019cf5b0-7c00-7000-8000-00000000012b",
              "type": "text",
              "html": "<p>Every dish must list its allergens.</p>"
            }
          ]
        }
      ],
      "quiz": null,
      "signing": null,
      "scorm": null
    }
  ]
}

Edit a course's draft with JSON Patch

PATCH https://tayl.pro/api/v1/courses/{id}/draft · updateCourseDraft · Scope content:write · Needs Course Builder

Applies RFC 6902 JSON Patch operations to the course's draft and saves the result like PUT. Paths are JSON Pointers into the document you read, so a typo fix is one replace. Send the etag from that read as If-Match. A malformed operation, or one that can't apply, returns 422 invalid_patch and nothing is saved.

Chapters, pages and blocks you send with their id keep it, and a block's content or a chapter's quiz, signing or SCORM package you leave as they are aren't rewritten; a block moves to another page by appearing there. Those without an id are new; chapters, pages and blocks you leave out are removed, and fields you leave out inside them take the builder's defaults. Top-level fields you leave out keep their current values. title, description, hero_image and appearance.display_theme belong to the course, so they change for learners straight away; everything else waits until the draft is published. Saving a document identical to the current content changes nothing. Archived courses can't be saved, and saving needs Course Builder. A document over the size limits returns 422 document_too_large. Change a bigger course a chapter or page at a time.

Parameters

Body (application/json-patch+json): CourseDocumentPatch.

Responses

Example request

[
  {
    "op": "test",
    "path": "/chapters/0/title",
    "value": "The 14 allergens"
  },
  {
    "op": "replace",
    "path": "/chapters/0/pages/0/blocks/0/html",
    "value": "<p>Every dish must list all 14 allergens.</p>"
  },
  {
    "op": "add",
    "path": "/chapters/0/pages/-",
    "value": {
      "title": "Questions guests ask",
      "blocks": []
    }
  }
]

Discard a course's draft

DELETE https://tayl.pro/api/v1/courses/{id}/draft · discardCourseDraft · Scope content:write · Needs Course Builder

Discards the draft of a published course, leaving the published version as it is. A course that has never been published is only a draft, so this returns 422 not_discardable; delete the course instead. Send the etag you last read as If-Match so a draft someone has changed since isn't discarded.

Parameters

Responses

Get a course's draft outline

GET https://tayl.pro/api/v1/courses/{id}/draft/outline · getCourseDraftOutline · Scope content:read · Personal keys: people who author courses only

Returns the chapters and pages of a course's draft by ID and title, without their content, with the etag to send when changing the draft. A large course reads quickly this way.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "draft",
    "published_at": null,
    "current_version_id": null,
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": true,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "content": {
    "chapters": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000301",
        "title": "The 14 allergens",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000401",
            "title": "Why it matters"
          },
          {
            "id": "019cf5b0-7c00-7000-8000-000000000402",
            "title": "Questions guests ask"
          }
        ]
      },
      {
        "id": "019cf5b0-7c00-7000-8000-000000000302",
        "title": "Serving guests safely",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000403",
            "title": "Taking an order"
          }
        ]
      },
      {
        "id": "019cf5b0-7c00-7000-8000-000000000303",
        "title": "Old notes",
        "header": false,
        "pages": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000404",
            "title": "Draft notes"
          }
        ]
      }
    ]
  }
}

Reorganise a course's draft

PUT https://tayl.pro/api/v1/courses/{id}/draft/outline · replaceCourseDraftOutline · Scope content:write · Needs Course Builder

Reorders the draft's chapters, moves pages between chapters, renames them, and adds or removes them, leaving the content of every page, quiz and signing as it is. List every chapter and page once, by id: leaving one out returns 422, and setting "delete": true on one removes it, a chapter with the pages listed under it. Chapters and pages without an id are new and empty. Titles and headers you leave out stay as they are. Archived courses can't change.

Parameters

Body (application/json): CourseOutline.

Responses

Example request

{
  "chapters": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000302",
      "pages": [
        {
          "id": "019cf5b0-7c00-7000-8000-000000000403"
        },
        {
          "id": "019cf5b0-7c00-7000-8000-000000000402"
        }
      ]
    },
    {
      "id": "019cf5b0-7c00-7000-8000-000000000301",
      "title": "The 14 allergens in food",
      "pages": [
        {
          "id": "019cf5b0-7c00-7000-8000-000000000401"
        },
        {
          "title": "Allergens in drinks"
        }
      ]
    },
    {
      "id": "019cf5b0-7c00-7000-8000-000000000303",
      "delete": true,
      "pages": [
        {
          "id": "019cf5b0-7c00-7000-8000-000000000404"
        }
      ]
    },
    {
      "title": "Check your knowledge",
      "pages": []
    }
  ]
}

Reorganise a course's draft with JSON Patch

PATCH https://tayl.pro/api/v1/courses/{id}/draft/outline · updateCourseDraftOutline · Scope content:write · Needs Course Builder

Applies RFC 6902 JSON Patch operations to the draft's outline and saves the result like PUT, so a move reorders a chapter or moves a page. A malformed operation, or one that can't apply, returns 422 invalid_patch and nothing is saved. Archived courses can't change.

Parameters

Body (application/json-patch+json): CourseDocumentPatch.

Responses

Example request

[
  {
    "op": "move",
    "from": "/chapters/0/pages/1",
    "path": "/chapters/1/pages/-"
  }
]

Add a chapter to a course's draft

POST https://tayl.pro/api/v1/courses/{id}/draft/chapters · createCourseDraftChapter · Scope content:write · Needs Course Builder

Adds a chapter after the draft's last one, with the pages, quiz, signing and SCORM package its document holds, and returns it with the IDs its chapter, pages and blocks now have. A new chapter, its pages and their blocks have no id until then, so send them without one. Move it with the outline. A chapter over the size limits returns 422 document_too_large. Archived courses can't change.

Parameters

Body (application/json): CourseChapter.

Responses

Example request

{
  "title": "The 14 allergens",
  "header": false,
  "pages": [
    {
      "title": "Why it matters",
      "blocks": [
        {
          "type": "text",
          "html": "<p>Every dish must list its allergens.</p>"
        }
      ]
    }
  ],
  "quiz": null,
  "signing": null,
  "scorm": null
}

Get a chapter of a course's draft

GET https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id} · getCourseDraftChapter · Scope content:read · Personal keys: people who author courses only

Returns one chapter of the draft as a document, with the files it names and the etag to send when changing it: its title, quiz, signing and SCORM package, and its pages with their blocks. Find chapter IDs in the draft's outline.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "draft",
    "published_at": null,
    "current_version_id": null,
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": true,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "review": [
    {
      "pointer": "/pages/0",
      "code": "nothing_to_see_or_do",
      "message": "This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."
    },
    {
      "pointer": "",
      "code": "no_practice",
      "message": "Add a knowledge_check after a key idea, or a quiz, so learners recall what this chapter teaches."
    }
  ],
  "media": {},
  "content": {
    "id": "019cf5b0-7c00-7000-8000-000000000011",
    "title": "The 14 allergens",
    "header": false,
    "pages": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000021",
        "title": "Why it matters",
        "blocks": [
          {
            "id": "019cf5b0-7c00-7000-8000-000000000121",
            "type": "text",
            "html": "<p>Every dish must list its allergens.</p>"
          }
        ]
      }
    ],
    "quiz": null,
    "signing": null,
    "scorm": null
  }
}

Replace a chapter of a course's draft

PUT https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id} · replaceCourseDraftChapter · Scope content:write · Needs Course Builder

Replaces one chapter of the draft with the document you send and returns it. Pages and blocks you send with their id keep it, and a block's content or the chapter's quiz, signing or SCORM package you leave as they are aren't rewritten. Those without an id are new; the chapter's pages and blocks you leave out are removed, and fields you leave out take the builder's defaults. A block can move between the chapter's pages by appearing there. Pages move between chapters through the outline, and blocks with a whole-course save. A document identical to the chapter changes nothing. A chapter over the size limits returns 422 document_too_large. Archived courses can't change.

Parameters

Body (application/json): CourseChapter.

Responses

Example request

{
  "id": "019cf5b0-7c00-7000-8000-000000000011",
  "title": "The 14 allergens in food",
  "header": false,
  "pages": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000021",
      "title": "Why it matters",
      "blocks": [
        {
          "id": "019cf5b0-7c00-7000-8000-000000000121",
          "type": "text",
          "html": "<p>Every dish must list its allergens.</p>"
        }
      ]
    }
  ],
  "quiz": null,
  "signing": null,
  "scorm": null
}

Edit a chapter of a course's draft with JSON Patch

PATCH https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id} · updateCourseDraftChapter · Scope content:write · Needs Course Builder

Applies RFC 6902 JSON Patch operations to one chapter of the draft and saves the result like PUT. Paths are JSON Pointers into the chapter you read. A malformed operation, or one that can't apply, returns 422 invalid_patch and nothing is saved. Archived courses can't change.

Parameters

Body (application/json-patch+json): CourseDocumentPatch.

Responses

Example request

[
  {
    "op": "replace",
    "path": "/title",
    "value": "The 14 allergens in food"
  }
]

Remove a chapter from a course's draft

DELETE https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id} · deleteCourseDraftChapter · Scope content:write · Needs Course Builder

Removes one chapter of the draft with its pages, quiz, signing and SCORM package. Move a page you want to keep to another chapter first, with the outline. The response's ETag header has the draft's new etag. Archived courses can't change.

Parameters

Responses

Add a page to a chapter of a course's draft

POST https://tayl.pro/api/v1/courses/{id}/draft/chapters/{chapter_id}/pages · createCourseDraftPage · Scope content:write · Needs Course Builder

Adds a page after the chapter's last page, before its quiz, and returns it with its new id and its blocks' IDs. A new page and its blocks have no id until then, so send them without one. Move it with the outline. A page over the size limits returns 422 document_too_large. Archived courses can't change.

Parameters

Body (application/json): CoursePage.

Responses

Example request

{
  "title": "Questions guests ask",
  "blocks": [
    {
      "type": "text",
      "html": "<p>Ask about allergies before taking an order.</p>"
    }
  ]
}

Get a page of a course's draft

GET https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id} · getCourseDraftPage · Scope content:read · Personal keys: people who author courses only

Returns one page of the draft as a document, its title and blocks, with the files it names and the etag to send when changing it. Find page IDs in the draft's outline.

Parameters

Responses

Example response (200)

{
  "course": {
    "id": "019cf5b0-7c00-7000-8000-000000000005",
    "status": "draft",
    "published_at": null,
    "current_version_id": null,
    "editor_url": "https://tayl.pro/create/courses/019cf5b0-7c00-7000-8000-000000000005/edit"
  },
  "version": {
    "id": "019cf5b0-7c00-7000-8000-000000000006",
    "number": 1,
    "draft": true,
    "updated_at": "2026-10-21T09:00:00Z"
  },
  "etag": "\"5d41402abc4b2a76b9719d911017c592\"",
  "review": [
    {
      "pointer": "",
      "code": "nothing_to_see_or_do",
      "message": "This page is only text. Add a picture or diagram that shows its point, or something to do, such as a knowledge_check, flashcard_container or tab_list."
    }
  ],
  "media": {},
  "content": {
    "id": "019cf5b0-7c00-7000-8000-000000000022",
    "title": "Why it matters",
    "blocks": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000122",
        "type": "text",
        "html": "<p>Every dish must list its allergens.</p>"
      }
    ]
  }
}

Replace a page of a course's draft

PUT https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id} · replaceCourseDraftPage · Scope content:write · Needs Course Builder

Replaces one page of the draft with the document you send and returns it. Blocks you send with their id keep it, and their content if you leave that as it is; blocks without an id are new, blocks you leave out are removed, and fields you leave out take the builder's defaults. The page's document can name only its own blocks. A document identical to the page changes nothing. A page over the size limits returns 422 document_too_large. Archived courses can't change.

Parameters

Body (application/json): CoursePage.

Responses

Example request

{
  "id": "019cf5b0-7c00-7000-8000-000000000022",
  "title": "Why allergens matter",
  "blocks": [
    {
      "id": "019cf5b0-7c00-7000-8000-000000000122",
      "type": "text",
      "html": "<p>Every dish must list its allergens.</p>"
    }
  ]
}

Edit a page of a course's draft with JSON Patch

PATCH https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id} · updateCourseDraftPage · Scope content:write · Needs Course Builder

Applies RFC 6902 JSON Patch operations to one page of the draft and saves the result like PUT. Paths are JSON Pointers into the page you read, so a typo fix is one replace. A malformed operation, or one that can't apply, returns 422 invalid_patch and nothing is saved. Archived courses can't change.

Parameters

Body (application/json-patch+json): CourseDocumentPatch.

Responses

Example request

[
  {
    "op": "replace",
    "path": "/title",
    "value": "Why allergens matter"
  }
]

Remove a page from a course's draft

DELETE https://tayl.pro/api/v1/courses/{id}/draft/pages/{page_id} · deleteCourseDraftPage · Scope content:write · Needs Course Builder

Removes one page of the draft with its blocks. The response's ETag header has the draft's new etag. Archived courses can't change.

Parameters

Responses

Publish a course's draft

POST https://tayl.pro/api/v1/courses/{id}/draft/publish · publishCourseDraft · Scope content:publish · Needs Course Builder

Publishes the course's draft as its new version, which learners get when they start the course from now on; anyone part-way through keeps the version they started. The first publish also adds the course to your organisation's content library, ready to assign, with training_rules or the rules the course recommends. Check publishable and publish_error on the draft first: a draft without content, unchanged since the last publish, or of an archived course returns 422 not_publishable. Send the etag you reviewed as If-Match to publish only that content.

Keys without this scope can still prepare drafts for a person to review and publish in Tayl.

Parameters

Body (application/json, optional): CoursePublish.

Responses

Example request

{
  "training_rules": {
    "due_in_days": 14,
    "compliance_training": true
  }
}

Archive a course

POST https://tayl.pro/api/v1/courses/{id}/archive · archiveCourse · Scope content:publish · Needs Course Builder

Archives a published course. It can't be assigned or recertified any more, but its published assignments keep running until you archive them in Tayl's content library.

Parameters

Responses

Example response (200)

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

Unarchive a course

POST https://tayl.pro/api/v1/courses/{id}/unarchive · unarchiveCourse · Scope content:publish · Needs Course Builder

Restores an archived course to published, so it can be assigned and edited again.

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": false,
  "syncs_from_v2": false,
  "in_library": true,
  "compliance_training": true,
  "current_version_id": "019cf5b0-7c00-7000-8000-000000000006",
  "current_version_number": 1,
  "published_at": "2026-10-21T10:00:00Z",
  "created_at": "2025-11-01T09:00:00Z",
  "updated_at": "2026-10-21T10:00:00Z"
}

Get a Tayl course's settings

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

For Tayl staff. Returns a Tayl course's recommendations, requirements, certification and availability, the categories, industries, regions and accreditors it lists, and the choices each list can take. A course has settings once a person has published it in Tayl; until then this returns 404.

Parameters

Responses

Example response (200)

{
  "course_id": "019cf5b0-7c00-7000-8000-000000000005",
  "syncs_from_v2": false,
  "recommendations": {
    "due_in_days": 14,
    "valid_for_months": 12,
    "available_to_recertify_within_days": 30,
    "issues_certificates": true,
    "minimum_minutes_required": 20,
    "compliance_training": true
  },
  "requirements": {
    "valid_for_months": null,
    "minimum_minutes": null
  },
  "certification": {
    "certified": true,
    "licensing_scotland": false
  },
  "availability": {
    "on_request": false
  },
  "category_ids": [
    "019cf5b0-7c00-7000-8000-000000000501"
  ],
  "industry_ids": [
    "019cf5b0-7c00-7000-8000-000000000511"
  ],
  "region_ids": [
    "019cf5b0-7c00-7000-8000-000000000521"
  ],
  "accreditor_ids": [
    "019cf5b0-7c00-7000-8000-000000000531"
  ],
  "choices": {
    "categories": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000501",
        "name": "Food safety"
      },
      {
        "id": "019cf5b0-7c00-7000-8000-000000000502",
        "name": "Health and safety"
      }
    ],
    "industries": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000511",
        "name": "Hospitality"
      }
    ],
    "regions": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000521",
        "name": "England"
      },
      {
        "id": "019cf5b0-7c00-7000-8000-000000000522",
        "name": "Scotland"
      }
    ],
    "accreditors": [
      {
        "id": "019cf5b0-7c00-7000-8000-000000000531",
        "name": "CPD"
      }
    ]
  }
}

Change a Tayl course's settings

PATCH https://tayl.pro/api/v1/courses/{id}/settings · updateCourseSettings · Scope content:settings

For Tayl staff. A change reaches every organisation straight away, so make only the changes the person asks for. Fields you leave out keep their values, and each list you send replaces the course's, with ids from choices. While the course syncs from Taylv2 (syncs_from_v2), changing a setting V2 sets returns 422 course_synced_from_v2.

Parameters

Body (application/json): CourseSettingsInput.

Responses

Example request

{
  "recommendations": {
    "due_in_days": 14
  },
  "region_ids": [
    "019cf5b0-7c00-7000-8000-000000000521",
    "019cf5b0-7c00-7000-8000-000000000522"
  ]
}

Upload an image

POST https://tayl.pro/api/v1/media · uploadCourseImage · Scope content:write · Needs Course Builder

Adds an image to your organisation's media library for course documents and returns its id, which you put in a document's image field, such as image, hero_image or a card's front_image. Send the file as multipart form data or, if you can't send files, send JSON with a public url that returns the image and Tayl downloads it, following up to 3 redirects for up to 10 seconds. An organisation downloads 2 images at a time; more at once return 429 rate_limited. If the library already holds the same file, you get that image with 200 instead of a copy. Retrying the same file after a transient upload failure is safe: any missing stored file is uploaded again before success is returned. Images must be JPEG, PNG, GIF, WebP or AVIF, up to 10 MB and 50 megapixels; anything wider or taller than 2400 pixels is scaled down. Videos can't be uploaded through the API.

Body (multipart/form-data): The image as a multipart form field. Unknown fields are refused.

Body (application/json): The image's URL, for Tayl to download. Unknown fields are refused.

Responses

Example request

{
  "url": "https://cdn.example.com/allergen-chart.png"
}

Content library

Repeated from Assigning training, which has the rest of these operations.

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

Schemas

CourseDocument

A course's content as one document. Read it, change it and send it back whole. Chapters, pages and blocks you send with their id keep their IDs and anything you leave as it is; those without one are new, and those you leave out are removed. Top-level fields you leave out keep their current values, and fields you leave out inside chapters take the builder's defaults. title, description, hero_image and appearance.display_theme belong to the course and change straight away; everything else is versioned. Unknown fields are refused.

CourseContent

A course's content with what you need to save it back or publish it. Unknown fields are refused.

CourseChapter

One chapter. Most chapters hold pages; give a quiz or a signing its own chapter. Learners see a chapter's pages, then its quiz, signing or SCORM package. Unknown fields are refused.

CourseReviewSuggestion

One way to make a course, chapter or page easier to learn from. Unknown fields are refused.

CourseMediaFile

A file named in the document. Unknown fields are refused.

CoursePage

One page of a chapter. Unknown fields are refused.

CourseQuiz

A scored quiz. Unknown fields are refused.

CourseSigning

A document learners read and sign. Unknown fields are refused.

CourseBlock

One block on a page. type decides which fields apply. Course document format describes it in full.

CourseQuestion

A quiz or knowledge check question. kind decides which fields apply. Course document format describes it in full.

CourseOutlineContent

A course's outline with what you need to reorganise it. Unknown fields are refused.

CourseOutline

A course's chapters and pages by ID and title, without their content. Send it back to reorder chapters, move pages between chapters, rename them, or add empty ones; content stays as it is. List every chapter and page once: leaving one out returns 422, and one marked "delete": true is removed, a chapter with the pages listed under it. Chapters and pages without an id are new and empty. Unknown fields are refused.

CourseOutlineChapter

One chapter of an outline. Unknown fields are refused.

CourseOutlinePage

One page of an outline. A page moves to another chapter by being listed under it. Unknown fields are refused.

CourseChapterContent

One chapter of a course's content with what you need to save it back. Unknown fields are refused.

CoursePageContent

One page of a course's content with what you need to save it back. Unknown fields are refused.

CourseDocumentPatch

RFC 6902 JSON Patch operations, applied in order to the document you last read. The result is saved like a full replacement. Array of CourseDocumentPatchOperation, 1–1000 items.

CourseDocumentPatchOperation

One RFC 6902 JSON Patch operation on the course document. op decides which fields apply. One of these, chosen by op: add: CourseDocumentPatchValueOperation, replace: CourseDocumentPatchValueOperation, test: CourseDocumentPatchValueOperation, remove: CourseDocumentPatchRemoveOperation, move: CourseDocumentPatchMoveOperation, copy: CourseDocumentPatchMoveOperation.

CourseDocumentPatchValueOperation

Adds, replaces or tests a value. A failed test stops the whole patch. Unknown fields are refused.

CourseDocumentPatchRemoveOperation

Removes a value. Unknown fields are refused.

CourseDocumentPatchMoveOperation

Moves or copies a value from from to path. Unknown fields are refused.

CoursePublish

Options for publishing a course's draft. Unknown fields are refused.

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.

CourseTrainingRules

Training rules for the course in your organisation's content library. Fields you leave out take the rules the course recommends. Unknown fields are refused.

CourseSettings

A Tayl course's settings, which reach every organisation, and the choices its lists can take. Unknown fields are refused.

CourseRecommendations

What a Tayl course recommends, which each organisation's content library starts with when it adds the course and can change there. The names are the training rules a first publish takes. Unknown fields are refused.

CourseRequirements

Rules a Tayl course fixes for every organisation, which no organisation or group can change. A change applies to every organisation straight away, including to learners part-way through. Unknown fields are refused.

CourseCertification

How a Tayl course is certified. Unknown fields are refused.

CourseAvailability

How organisations get a Tayl course. Unknown fields are refused.

CourseSettingsChoice

A category, industry, region or accreditor a Tayl course's settings can list. Tayl staff add them in Tayl. Unknown fields are refused.

CourseSettingsInput

Changes to a Tayl course's settings. Fields you leave out keep their values; each list you send replaces the course's. Unknown fields are refused.

CourseImage

An image in the organisation's media library, ready to use in course documents. Unknown fields are refused.

CourseList

One page of courses.

Meta

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