Skip to content
DocsAccount

API reference

Account

Who the credential belongs to and what it may do. Endpoints, parameters, examples and errors.

View as Markdown

Who the credential belongs to and what it may do. Start with get_me: it returns the person, the credential’s scopes, its project restriction and expiry, and the limits that apply. resolve_reference turns a Taskloader URL or a ref such as northwind/website-launch/TL-12 into ids.

More in Authentication.

Get the current user

#

Returns the person and the credential behind this request, with its scopes.

HTTP
GET /api/v1/me
  • Scopes: none (any valid credential)
  • Who: Any signed-in person
  • Project-limited credentials: allowed; results include only the credential’s projects
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket
  • MCP tool: list_projects

Returns who you are (name and email), the credential this request carries (its type, scopes, project limit and expiry), what this server offers (features) and the main limits. It needs no scope, so it is the quickest way to check that a key or token works and which scopes the person granted. It never lists other credentials: API keys and connected apps are managed in the app.

Response

#

200 with a Me object.

FieldTypeDescription
object"me"
userobject
credentialobjectThe credential this request carries.
featuresobjectWhat this Taskloader server offers.
limitsobjectThe main limits, as /docs/api/limits states them.

Errors

#

Only the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/me \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "me",
  "user": {
    "id": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Ana Lima",
    "email": "[email protected]",
    "emailVerified": true
  },
  "credential": {
    "type": "api_key",
    "id": "key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "name": "CI deploy notes",
    "app": null,
    "scopes": [
      "projects:read",
      "tasks:read",
      "tasks:write"
    ],
    "projectIds": null,
    "expiresAt": "2027-02-16T10:00:00.000Z"
  },
  "features": {
    "files": true,
    "assistant": true
  },
  "limits": {
    "requestsPerMinute": 1500,
    "readsPerMinute": 600,
    "writesPerMinute": 120,
    "searchesPerMinute": 120,
    "mcpRequestsPerMinute": 1200,
    "uploadPartsPerHour": 300,
    "assistantQuestionsPerHour": 30,
    "organizationsPerDay": 10,
    "projectsPerDay": 50,
    "invitationsPerDay": 100,
    "pageSizeMax": 100
  }
}

Resolve a reference

#

Turns a Taskloader URL, an org/project ref, a task ref or an id into ids.

HTTP
GET /api/v1/resolve
  • Scopes: projects:read
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket

Accepts what people paste: a Taskloader URL (including links made before a rename, and old /?project=…&task=… links), a project ref (northwind/website-launch), a task ref (northwind/website-launch/TL-12), a project or task id, or a project’s exact name. Returns the organization, the project and, for a task, its id, key, ref and URL. Only projects you are in, and their tasks, resolve (as with get_project); anything else is 404 not_found, exactly like a wrong id. A bare key such as TL-12 is unique only inside a project: send the full ref. An organization’s slug alone is not a project: the error lists its projects. Names that match several projects get validation_failed listing them under matches.

Parameters

#
NameInTypeRequiredDescription
refquerystringYesA Taskloader URL, "org/project", "org/project/TL-12", a prj_ or task_ id, or a project’s exact name, for example northwind/website-launch/TL-12. Up to 2,048 characters.

Response

#

200 with a Reference object.

FieldTypeDescription
object"reference"
type"project" or "task"What the reference names.
organizationobject
projectobject
taskobject or nullThe task, when the reference names one; read it with get_task.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
403insufficient_scopeThe credential lacks the required access
404not_foundNot found

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl 'https://taskloader.com/api/v1/resolve?ref=https%3A%2F%2Ftaskloader.com%2Fnorthwind%2Fwebsite-launch%2FTL-012' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "reference",
  "type": "task",
  "organization": {
    "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "name": "Northwind",
    "slug": "northwind"
  },
  "project": {
    "id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "name": "Website launch",
    "slug": "website-launch",
    "ref": "northwind/website-launch",
    "url": "https://taskloader.com/northwind/website-launch"
  },
  "task": {
    "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "number": 12,
    "key": "TL-012",
    "ref": "northwind/website-launch/TL-012",
    "url": "https://taskloader.com/northwind/website-launch/TL-012"
  }
}