Get a Task by identity
const url = 'https://example.com/api/v1/notes/tasks/by-id?task_id=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/notes/tasks/by-id?task_id=example' \ --header 'Authorization: Bearer <token>'Requires a signed-in User with the data scope. It accepts a stable Task ID or a retained alias. It returns 400 for an invalid ID or 404 when the Task is missing or not available to the User. Route: /api/v1/notes/tasks/by-id. Inputs: task_id. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Stable Task identity, legacy Task path, or Reminders UID carried by a /t/<task-id> link.
Responses
Section titled “Responses”object
RFC 3339 creation instant, including the User’s offset (#655).
Local clock paired with due, when this Task has a timed due date.
Outgoing links for the derived ## Links view.
Strong revision returned by Task writes for guarded Undo.
Local clock paired with scheduled, when this Task has a timed date.
Local clock paired with start, when this Task has a timed date.
File Tasks use calternal-id; inline tasks keep their block identity.
Examplegenerated
{ "attached_day": "example", "created": "example", "created_at": "example", "due": "example", "due_time": "example", "kind": "example", "links": [ "example" ], "priority": "example", "recurrence": "example", "revision": "example", "scheduled": "example", "scheduled_time": "example", "source": "example", "start": "example", "start_time": "example", "status": "example", "tags": [ "example" ], "task_id": "example", "title": "example"}No Task has this ID