---
title: "Account"
summary: "Who the credential belongs to and what it may do. Endpoints, parameters, examples and errors."
url: "https://taskloader.com/docs/api/reference/account"
---

> Documentation index: https://taskloader.com/llms.txt

# Account

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

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](https://taskloader.com/docs/authentication.md).

## Get the current user {#get_me}

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](https://taskloader.com/docs/authentication.md#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.

| Field        | Type   | Description                                       |
| ------------ | ------ | ------------------------------------------------- |
| `object`     | `"me"` |                                                   |
| `user`       | object |                                                   |
| `credential` | object | The credential this request carries.              |
| `features`   | object | What this Taskloader server offers.               |
| `limits`     | object | The main limits, as /docs/api/limits states them. |

#### Errors

Only the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl https://taskloader.com/api/v1/me \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
```

```js
const response = await fetch('https://taskloader.com/api/v1/me', {
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const me = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://taskloader.com/api/v1/me",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
me = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "me",
  "user": {
    "id": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Ana Lima",
    "email": "ana@example.com",
    "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 {#resolve_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](https://taskloader.com/docs/authentication.md#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

| Name  | In    | Type   | Required | Description                                                                                                                                                              |
| ----- | ----- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ref` | query | string | Yes      | A 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.

| Field          | Type                    | Description                                                    |
| -------------- | ----------------------- | -------------------------------------------------------------- |
| `object`       | `"reference"`           |                                                                |
| `type`         | `"project"` or `"task"` | What the reference names.                                      |
| `organization` | object                  |                                                                |
| `project`      | object                  |                                                                |
| `task`         | object or null          | The task, when the reference names one; read it with get_task. |

#### Errors

| Status | Code                                                        | Meaning                                    |
| ------ | ----------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                 | The id is for a different kind of resource |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope) | The credential lacks the required access   |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                   | Not found                                  |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl 'https://taskloader.com/api/v1/resolve?ref=https%3A%2F%2Ftaskloader.com%2Fnorthwind%2Fwebsite-launch%2FTL-012' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
```

```js
const response = await fetch('https://taskloader.com/api/v1/resolve?ref=https%3A%2F%2Ftaskloader.com%2Fnorthwind%2Fwebsite-launch%2FTL-012', {
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const reference = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://taskloader.com/api/v1/resolve",
    params={"ref": "https://taskloader.com/northwind/website-launch/TL-012"},
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
reference = response.json()
```

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