API reference
Bookmarks
Tasks that bookmark a web page, and the previews Taskloader makes of linked pages: title, summary, picture and icon. Endpoints, parameters, examples and errors.
On this page
Tasks that bookmark a web page, and the previews Taskloader makes of linked pages: title, summary, picture and icon. Previews are made in the background; a new bookmark is renamed once its page has been read, which raises the task’s version.
Bookmark a link
#Creates a task that bookmarks a web page; Taskloader reads the page and names it.
POST /api/v1/projects/{projectId}/bookmarks- Scopes:
tasks:write - Who: Editor or above in the project
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: send
Idempotency-Keyto make retries safe - Rate limit: the
writebucket - MCP tool:
add_bookmark
Creates a task whose title is the link, with the other fields of create_task if you want them. Taskloader then reads the page in the background: the task is renamed after the page’s title (which raises version, with a task.updated event from the system), and an empty description gets the page’s summary and the link. When the page cannot be read, or answers with a bot check, the task is renamed after the words of its link instead, if it has any (reddit.com/r/x/comments/1y9o6m9/how_we_ship/ is "How we ship"), and renamed once more after the page’s title if a later read succeeds. The answer has bookmark.preview.status: "queued" until then. Only public http or https links without credentials, up to 2,048 characters once encoded (each character outside ASCII counts as its percent escapes: ж is %D0%B6), can be bookmarked. Send an Idempotency-Key so a retry never creates two.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | path | id (prj_…) | Yes | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
Idempotency-Key | header | string | No | Makes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them. |
Request body
#A JSON object. Fields not listed are refused.
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The page, for example https://example.com/design-guide (http or https), up to 2,048 characters once encoded (each character outside ASCII counts as its percent escapes: ж is %D0%B6). |
description | string | No | A description; left out, the page’s summary and the link once it is read. Up to 20,000 characters. |
status | "backlog" or "progress" or "review" or "done" | No | backlog (Backlog), progress (In progress), review (In review) or done (Done). |
priority | "low" or "normal" or "high" or "urgent" | No | low, normal, high or urgent. |
assigneeMemberId | id (mem_…) or "me" or null | No | A member of the task’s project (mem_…), or me for yourself; null for nobody. The project overview lists the members and their ids (get_project_overview over MCP). |
dueDate | date (YYYY-MM-DD) or null | No | YYYY-MM-DD, for example 2026-11-27; null for no date. |
Response
#201 with the new Task object. Location is its address.
| Field | Type | Description |
|---|---|---|
object | "task" | |
id | id (task_…) | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
projectId | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
number | integer | The task’s number in its project. |
key | string | The task’s key, for example TL-012. Unique only within its project. |
ref | string | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for. |
url | string | Where the task opens in Taskloader. |
title | string | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded. |
description | string | Plain text with line breaks, up to 20,000 characters. |
status | "backlog" or "progress" or "review" or "done" | backlog (Backlog), progress (In progress), review (In review) or done (Done). |
priority | "low" or "normal" or "high" or "urgent" | low, normal, high or urgent. |
assignee | object or null | Who it is assigned to, or null. |
dueDate | string or null | YYYY-MM-DD, or null. |
checklist | array of ChecklistItem | In order; at most 100 items. |
checklistProgress | object | How many checklist items are done, of how many. |
bookmark | object or null | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
position | number | Board order: lower comes first within a status column (and a person’s row). |
version | integer | Raised by every change. Send it back (If-Match or version) to update, move or delete the task. |
attachmentCount | integer, at least 0 | How many files are attached. |
createdBy | object | |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
updatedAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
completedAt | string (date-time) or null | When it last entered Done; null while it is not done. |
Headers it sends: ETag, Location, Idempotent-Replayed.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 400 | invalid_idempotency_key | The Idempotency-Key header is not valid |
| 403 | insufficient_scope | The credential lacks the required access |
| 403 | forbidden_role | Your role does not allow this |
| 404 | not_found | Not found |
| 409 | idempotency_key_in_progress | The original request is still running |
| 413 | payload_too_large | The request body is too large |
| 415 | unsupported_media_type | Unsupported media type |
| 422 | invalid_bookmark_url | This link cannot be bookmarked |
| 422 | assignee_not_member | The assignee is not a member |
| 422 | idempotency_key_reused | The Idempotency-Key was used for another request |
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/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/bookmarks \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"url":"https://example.com/design-guide"}'const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/bookmarks', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({ url: 'https://example.com/design-guide' }),
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const bookmark = await response.json();import os
import uuid
import requests
response = requests.post(
"https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/bookmarks",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
"Content-Type": "application/json",
"Idempotency-Key": str(uuid.uuid4()),
},
json={"url": "https://example.com/design-guide"},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
bookmark = response.json()HTTP/1.1 201 Created
Content-Type: application/json
ETag: "1"
Location: /api/v1/tasks/task_2b6f1d2a8c9e4f00a1b2c3d4e5f60718
{
"object": "task",
"id": "task_2b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"number": 14,
"key": "TL-014",
"ref": "northwind/website-launch/TL-014",
"url": "https://taskloader.com/northwind/website-launch/TL-014",
"title": "example.com/design-guide",
"description": "https://example.com/design-guide",
"status": "backlog",
"priority": "normal",
"assignee": null,
"dueDate": null,
"checklist": [],
"checklistProgress": {
"done": 0,
"total": 0
},
"bookmark": {
"url": "https://example.com/design-guide",
"previewId": "lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"preview": {
"status": "queued",
"title": null
}
},
"position": 4096,
"version": 1,
"attachmentCount": 0,
"createdBy": {
"userId": "usr_kq3Xb1W9pZ0aLm7c",
"name": "Maya Chen"
},
"createdAt": "2026-11-18T10:00:00.123Z",
"updatedAt": "2026-11-18T10:00:00.123Z",
"completedAt": null
}Remove a task’s bookmark
#Stops a task bookmarking its page, keeping its title, at the version you read.
DELETE /api/v1/tasks/{taskId}/bookmark- Scopes:
tasks:write - Who: Editor or above in the project
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: versioned: a retry with the same version gets
version_conflict, never a second change - Version: required: send
If-Match: "<version>"or?version=<version> - Rate limit: the
writebucket
Stops a task bookmarking its page: the task keeps its title and description, and bookmark becomes null. Needs the version you read (If-Match or version). A task that bookmarks nothing answers 422 not_a_bookmark.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
taskId | path | id (task_…) | Yes | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
version | query | integer | No | The version you read, for example 4 (from get_task or search_tasks); the change needs it. Over HTTP you may send If-Match: "4" instead. A task that changed since is not changed, and the error gives its current version. |
If-Match | header | string | No | The version you last read: the ETag you got with it, as it came (W/"8-3f2a9c1d0b7e" from a read, "8" from a change), or "<version>". Only the version is compared: the change is refused with 412 version_conflict if the resource changed since. Instead of this header you can send ?version=<version> (this endpoint takes no body); when both are sent they must agree. * is not accepted. |
Response
#200 with a Task object.
| Field | Type | Description |
|---|---|---|
object | "task" | |
id | id (task_…) | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
projectId | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
number | integer | The task’s number in its project. |
key | string | The task’s key, for example TL-012. Unique only within its project. |
ref | string | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for. |
url | string | Where the task opens in Taskloader. |
title | string | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded. |
description | string | Plain text with line breaks, up to 20,000 characters. |
status | "backlog" or "progress" or "review" or "done" | backlog (Backlog), progress (In progress), review (In review) or done (Done). |
priority | "low" or "normal" or "high" or "urgent" | low, normal, high or urgent. |
assignee | object or null | Who it is assigned to, or null. |
dueDate | string or null | YYYY-MM-DD, or null. |
checklist | array of ChecklistItem | In order; at most 100 items. |
checklistProgress | object | How many checklist items are done, of how many. |
bookmark | object or null | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
position | number | Board order: lower comes first within a status column (and a person’s row). |
version | integer | Raised by every change. Send it back (If-Match or version) to update, move or delete the task. |
attachmentCount | integer, at least 0 | How many files are attached. |
createdBy | object | |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
updatedAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
completedAt | string (date-time) or null | When it last entered Done; null while it is not done. |
Headers it sends: ETag.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 400 | invalid_idempotency_key | The Idempotency-Key header is not valid |
| 403 | insufficient_scope | The credential lacks the required access |
| 403 | forbidden_role | Your role does not allow this |
| 404 | not_found | Not found |
| 412 | version_conflict | The resource changed since you read it |
| 413 | payload_too_large | The request body is too large |
| 415 | unsupported_media_type | Unsupported media type |
| 422 | not_a_bookmark | The task bookmarks no page |
| 428 | precondition_required | A version is required |
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 -X DELETE https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/bookmark \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H 'If-Match: "4"'const response = await fetch('https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/bookmark', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
'If-Match': '"4"',
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const bookmark = await response.json();import os
import requests
response = requests.delete(
"https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/bookmark",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
"If-Match": '"4"',
},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
bookmark = response.json()HTTP/1.1 200 OK
Content-Type: application/json
ETag: "5"
{
"object": "task",
"id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"number": 12,
"key": "TL-012",
"ref": "northwind/website-launch/TL-012",
"url": "https://taskloader.com/northwind/website-launch/TL-012",
"title": "Write the launch announcement",
"description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
"status": "progress",
"priority": "high",
"assignee": {
"memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"userId": "usr_kq3Xb1W9pZ0aLm7c",
"name": "Maya Chen"
},
"dueDate": "2026-11-27",
"checklist": [
{
"id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"text": "Outline",
"done": true
},
{
"id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"text": "First draft",
"done": false
}
],
"checklistProgress": {
"done": 1,
"total": 2
},
"bookmark": null,
"position": 3072,
"version": 5,
"attachmentCount": 1,
"createdBy": {
"userId": "usr_kq3Xb1W9pZ0aLm7c",
"name": "Maya Chen"
},
"createdAt": "2026-11-16T09:30:00.000Z",
"updatedAt": "2026-11-18T10:00:00.123Z",
"completedAt": null
}When the version is stale:
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
ETag: "6"
{
"type": "https://taskloader.com/docs/api/errors#version_conflict",
"title": "The resource changed since you read it",
"status": 412,
"code": "version_conflict",
"detail": "TL-012 is at version 6. You sent version 4. Nothing was changed. Read the task, check the change still makes sense, and retry with version 6 (over HTTP, If-Match: \"6\" works too).",
"instance": "/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/bookmark",
"requestId": "req_0K7ZQ4M9TN2V6B8C1D3E5F7G9H",
"currentVersion": 6,
"current": {
"object": "task",
"id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"number": 12,
"key": "TL-012",
"ref": "northwind/website-launch/TL-012",
"url": "https://taskloader.com/northwind/website-launch/TL-012",
"title": "Write the launch announcement",
"description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
"status": "progress",
"priority": "high",
"assignee": {
"memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"userId": "usr_kq3Xb1W9pZ0aLm7c",
"name": "Maya Chen"
},
"dueDate": "2026-11-27",
"checklist": [
{
"id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"text": "Outline",
"done": true
},
{
"id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"text": "First draft",
"done": false
}
],
"checklistProgress": {
"done": 1,
"total": 2
},
"bookmark": null,
"position": 3072,
"version": 6,
"attachmentCount": 1,
"createdBy": {
"userId": "usr_kq3Xb1W9pZ0aLm7c",
"name": "Maya Chen"
},
"createdAt": "2026-11-16T09:30:00.000Z",
"updatedAt": "2026-11-18T10:00:00.123Z",
"completedAt": null
}
}List a task’s links
#Lists a task’s bookmark and the first ten links in its description, with previews.
GET /api/v1/tasks/{taskId}/links- Scopes:
tasks: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
readbucket
Lists the page a task bookmarks (role bookmark) and the first ten links in its description (role description), each with what Taskloader read from the page: title, summary, site, picture and icon (signed links, valid 10 minutes). A link not read yet has a queued preview; one whose page could not be read has a failed preview, titled with the words of its link, with its site’s icon when the site gave it. The list is whole: hasMore is false and nextCursor null. Only the first ten description links get previews: when the description holds more, moreLinksInDescription is true and the others are only in its text.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
taskId | path | id (task_…) | Yes | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
Response
#200 with a list of TaskLink objects.
| Field | Type | Description |
|---|---|---|
object | "list" | |
hasMore | boolean | True when there is a next page. |
nextCursor | string or null | Pass it as cursor to read the next page; null on the last page. |
data | array of TaskLink | |
moreLinksInDescription | boolean | True when the description holds more than the ten links listed; the others have no preview and are only in its text. |
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 403 | insufficient_scope | The credential lacks the required access |
| 404 | not_found | Not 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/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/links \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/links', {
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const taskLinks = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/links",
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']}")
task_links = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "list",
"data": [
{
"object": "task_link",
"url": "https://example.com/design-guide",
"role": "description",
"preview": {
"object": "link_preview",
"id": "lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"url": "https://example.com/design-guide",
"status": "ready",
"title": "The design guide",
"description": "Colours, type and voice for everything we publish.",
"siteName": "Example",
"accent": "#3b6e8f",
"details": {
"kind": "article",
"author": null,
"publishedAt": "2026-10-02",
"price": null,
"durationSeconds": null
},
"cover": {
"url": "https://taskloader.com/api/v1/link-previews/lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/cover?exp=1795600200&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
"width": 1200,
"height": 630
},
"icon": null,
"urlsExpireAt": "2026-11-18T10:10:00.000Z"
}
}
],
"hasMore": false,
"nextCursor": null,
"moreLinksInDescription": false
}List a project’s link previews
#Lists the previews of every page a project’s tasks link to, a page at a time.
GET /api/v1/projects/{projectId}/link-previews- Scopes:
tasks: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
readbucket
Lists the preview of every page the project’s tasks bookmark or link to in their descriptions, in pages of up to 100, with no cap: status, title, summary, site, accent colour, details, and signed links (10 minutes) to the picture and icon. A page that could not be read is failed, titled with the words of its link, with its site’s icon when the site gave it. The order is stable while you page, but means nothing: previews are shared with every project that links the same page, so when one was made is not shown.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | path | id (prj_…) | Yes | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
limit | query | integer, 1–100 | No | How many to return, 1–100, for example 50. Defaults to 50 (25 over MCP). |
cursor | query | string | No | The nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters. |
Response
#200 with a list of LinkPreview objects; while hasMore is true, pass nextCursor back as cursor (with the same filters) for the next page.
| Field | Type | Description |
|---|---|---|
object | "list" | |
hasMore | boolean | True when there is a next page. |
nextCursor | string or null | Pass it as cursor to read the next page; null on the last page. |
data | array of LinkPreview |
Headers it sends: Link.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 400 | invalid_cursor | The cursor is not valid |
| 403 | insufficient_scope | The credential lacks the required access |
| 404 | not_found | Not 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/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/link-previews \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/link-previews', {
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const linkPreviews = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/link-previews",
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']}")
link_previews = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "list",
"data": [
{
"object": "link_preview",
"id": "lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"url": "https://example.com/design-guide",
"status": "ready",
"title": "The design guide",
"description": "Colours, type and voice for everything we publish.",
"siteName": "Example",
"accent": "#3b6e8f",
"details": {
"kind": "article",
"author": null,
"publishedAt": "2026-10-02",
"price": null,
"durationSeconds": null
},
"cover": {
"url": "https://taskloader.com/api/v1/link-previews/lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/cover?exp=1795600200&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…",
"width": 1200,
"height": 630
},
"icon": null,
"urlsExpireAt": "2026-11-18T10:10:00.000Z"
}
],
"hasMore": false,
"nextCursor": null
}Get a link preview’s picture
#Returns a link preview’s picture (WebP) or icon (PNG) as bytes.
GET /api/v1/link-previews/{previewId}/{kind}- Scopes:
tasks:read, or a signed link from Taskloader (no Authorization header) - 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
readbucket; through a signed link, thelinkbucket instead (600 a minute, bursts of up to 200, per credential and address)
Returns the picture (cover, WebP) or the site icon (icon, PNG) Taskloader made for a link preview, for anyone in a project with a task that links to the page. Send your Authorization header, or use the signed link from the preview (cover.url, icon.url), which works without one for 10 minutes. Bytes, never JSON; cached privately for a day (signed links are not cached).
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
previewId | path | id (lnk_…) | Yes | Link preview id: lnk_ followed by 32 lowercase hex digits, for example lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
kind | path | "cover" or "icon" | Yes | cover (the page’s picture) or icon (the site’s icon). |
exp | query | string | No | Part of a signed link (cover.url, icon.url): when it expires. Never build it yourself. Up to 20 characters. |
cred | query | string | No | Part of a signed link: the credential it was issued to. Up to 200 characters. |
sig | query | string | No | Part of a signed link: its signature. Up to 100 characters. |
Response
#200: The picture (cover, WebP) or the site’s icon (icon, PNG). Cached privately for a day (not when read through a signed link).
Media types: image/webp, image/png.
Headers it sends: Content-Length, Cache-Control.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 403 | insufficient_scope | The credential lacks the required access |
| 404 | not_found | Not 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/link-previews/lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/cover \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-o download.binimport { writeFile } from 'node:fs/promises';
const response = await fetch('https://taskloader.com/api/v1/link-previews/lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/cover', {
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
await writeFile('download.bin', Buffer.from(await response.arrayBuffer()));import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/link-previews/lnk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/cover",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
},
timeout=120,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
with open("download.bin", "wb") as file:
file.write(response.content)HTTP/1.1 200 OK
Content-Type: application/octet-stream