Start here
Check what an API key can do before calling anything else.
Part of Tayl's API docs: requests go to
https://tayl.prowithAuthorization: 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:
- Whose key it is:
organisationnames the organisation whose data the key reaches.kindisorganisationfor a key that acts for the organisation, orpersonalfor one that acts asperson, including an AI assistant's. - What it can do:
scopes. A personal key also never reaches more than its person can see and change in Tayl: a manager's reaches the people and groups they manage. - Whether anything's wrong:
restrictionsays why the organisation's account needs attention: its plan does, or Tayl has put it on hold. Until it's resolved in Tayl, every other request returns402.features.course_buildersays whether course authoring writes are available, andfeatures.reportingwhether the Reports summaries are. - Which sections it can use: each entry in
sectionscounts the operations the key can call, out of the section's total, lists themissing_scopesthe key could hold and anything else in the way inblocked_by, and links its docs.
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
200(ApiKey): The key and what it can do.- Errors:
400,401,429.
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.
id(uuid, required): Stable UUID for this resource.name(string, required): Human-readable name shown in Tayl.kind(one of"organisation","personal", required):organisationfor a key that acts for its organisation, as an integration does.personalfor a key that acts as its person and can never do more than they can in Tayl, including keys an AI assistant holds after someone connects it.person(object or null, required): Who a personal key acts as; null for an organisation key.person.user_id(uuid or null, required): The person's user ID in this organisation, asGET /api/v1/users/{id}reads it; null for a group admin or Tayl staff member without a membership here.person.name(string, required): The person's name.organisation(object, required): The organisation whose data this key can reach.organisation.id(uuid, required): The organisation's Tayl UUID.organisation.name(string, required): The organisation's name.scopes(array of string, required): The scopes this key can use: its grants, with*expanded and limited to what keys of its organisation can hold and, for a personal key, to what its person's role allows.granted_scopes(array of string, required): The scopes granted to the key when it was created or last changed.*grants every scope keys of its organisation can hold, and for a personal key everything its person can do, including scopes added later.rate_limit_rps(integer, required): Requests per second this key may make.expires_at(date-time or null, required): When the key expires; null for a key without scheduled expiry.created_at(date-time, required): When the record was created, as an ISO 8601 UTC timestamp.restriction(one of"on_hold","unpaid","over_free_limit",null, required): Why the organisation's account needs attention:on_holdwhile Tayl has put it on hold,unpaid, orover_free_limitafter a paid plan ended. Until it's resolved in Tayl, every other request with its keys returns402 organisation_restricted. Null when nothing needs attention.features(object, required): Features of the organisation that some operations need.features.course_builder(boolean, required): Whether Course Builder is available. Every course authoring write needs it.features.reporting(boolean, required): Whether Advanced reporting is available. The Reports summaries need it.sections(array of ApiKeySection, required): Each section of the docs, with how much of it this key can use.
ApiKeySection
How much of one section of the docs a key can use.
key(string, required): The section's key, as in its docs URL.title(string, required): The section's title.operations(object, required): How many of the section's operations the key can call now, out of all of them.operations.callable(integer, required): Operations the key can call now.operations.total(integer, required): All the section's operations.missing_scopes(array of string, required): Scopes the section uses that the key lacks and could hold: an organisation admin can add them to an organisation key, and a person can include those their role allows in a new personal key.blocked_by(array of (one of"personal_keys_disabled","organisation_restricted","organisation_unavailable","course_builder_unavailable","reporting_unavailable","scope_not_grantable","role"), required): What stops some of the section's operations, besides missing scopes: the organisation has turned off personal keys, its account needs attention, a personal key's person can't use it in Tayl for now, Course Builder or Advanced reporting isn't available, an operation needs a scope keys of this organisation can never hold, or a personal key's person has no role that allows it.docs(object, required): Where the section's docs are.docs.markdown(uri, required): The section as markdown, for agents.