Tayl Tayl Public API

Start here

Check what an API key can do before calling anything else.

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

Call GET https://tayl.pro/api/v1/api-keys/current before anything else. Its answer tells you:

blocked_by Meaning
organisation_restricted The organisation's account needs attention; see restriction.
course_builder_unavailable The plan doesn't include Course Builder.
reporting_unavailable The plan doesn't include Advanced reporting.
scope_not_grantable An operation needs a scope keys of this organisation can never hold.
role The person's role doesn't allow an operation, or a scope it needs.
personal_keys_disabled An admin has turned personal keys off.
organisation_unavailable The key's person can't use the organisation in Tayl for now.

Fetch the section your task needs. If the key lacks a scope it needs, don't work around it: ask an organisation admin to add it in Tayl under Settings > Public API, or the key's person to create a personal key that includes it.

Operations

API keys

Inspect the API key used for the current request.

Check what this key can do

GET https://tayl.pro/api/v1/api-keys/current · getCurrentApiKey · Any active key

Returns the key making the request, its organisation and the scopes it can use, and for each section of the docs how many operations it can call, the scopes it could hold, and anything else blocking it. Any active key can call it, without a scope and even while its organisation is restricted, and it never changes anything.

Responses

Example response (200)

{
  "id": "019cf5b0-7c00-7000-8000-00000000000f",
  "name": "Course drafting agent",
  "kind": "organisation",
  "person": null,
  "organisation": {
    "id": "019cf5b0-7c00-7000-8000-00000000000e",
    "name": "The Anchor Pub Co"
  },
  "scopes": [
    "content:read",
    "content:write"
  ],
  "granted_scopes": [
    "content:read",
    "content:write"
  ],
  "rate_limit_rps": 10,
  "expires_at": null,
  "created_at": "2026-03-01T09:00:00Z",
  "restriction": null,
  "features": {
    "course_builder": true,
    "reporting": true
  },
  "sections": [
    {
      "key": "course-authoring",
      "title": "Course authoring",
      "operations": {
        "callable": 27,
        "total": 30
      },
      "missing_scopes": [
        "content:publish"
      ],
      "blocked_by": [],
      "docs": {
        "markdown": "https://tayl.pro/api/v1/docs/course-authoring.md"
      }
    }
  ]
}

Schemas

ApiKey

The API key making the request and what it can do. The raw token is never returned.

ApiKeySection

How much of one section of the docs a key can use.