ai-assisted-todolistopenapi.yamlopenapi.jsonHomeDocsAll versionsGitHub (opens in a new tab)Imprint (opens in a new tab)Privacy policyDatenschutz

TaskFest API (1.8.1)

License: Apache-2.0

The task board's REST surface. Every response schema here is published as JSON Schema and checked at runtime by the frontend.

Account

The signed-in user's own account.

Delete my account

Deletes every task and every file of the caller, and the account itself. It cannot be undone. An account signed in with Apple is deleted only with Apple's confirmation, and its authorization at Apple is revoked once the deletion counts as done; a revocation that fails does not stop the deletion. The app confirms with Apple's sheet and sends the code it issues; the website is sent to Apple's sign-in, and its callback deletes the account.

Authorizations:
sessionCookieappSessionidToken
Request Body schema: application/json
optional

Only for an account signed in with Apple: Apple's confirmation, so that TaskFest's authorization is revoked at Apple before the account is deleted (#635). Any other sends no body.

appleAuthorizationCode
string <= 4096 characters

The authorization code Apple's sign-in sheet issued to the app when the person signed in with Apple once more, to confirm. The backend exchanges it for Apple's tokens and revokes them at once; it keeps nothing.

Responses

Request samples

Content type
application/json
{
  • "appleAuthorizationCode": "string"
}

Response samples

Content type
application/json
{
  • "appleSignInUrl": "string"
}

Attachments

Files on a task, transferred directly between the browser and storage.

Announce an upload

Checks the type and the limits, and answers with a link that accepts exactly this file: PUT it there with the given headers, then confirm.

Authorizations:
sessionCookieappSessionidToken
path Parameters
taskId
required
integer <int64>
Request Body schema: application/json
required
fileName
required
string <= 1024 characters \S
contentType
required
string <= 255 characters
sizeBytes
required
integer <int64> >= 1
thumbnailSizeBytes
integer or null <int64>

Responses

Request samples

Content type
application/json
{
  • "fileName": "Rechnung.pdf",
  • "contentType": "application/pdf",
  • "sizeBytes": 48213,
  • "thumbnailSizeBytes": 6120
}

Response samples

Content type
application/json
{
  • "attachment": {},
  • "url": "string",
  • "headers": {
    },
  • "expiresAt": "2022-03-10T16:15:50Z",
  • "thumbnailUpload": {
    }
}

Add a link

A web address, with the page's title where the sharing app gave one (#414). Counted against the same limits as files; available at once, with nothing to upload.

Authorizations:
sessionCookieappSessionidToken
path Parameters
taskId
required
integer <int64>
Request Body schema: application/json
required
url
required
string <= 2048 characters ^[Hh][Tt][Tt][Pp][Ss]?://[^\s/?#:]+(:[0-9]{1,...
title
string or null <= 1024 characters

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{}

Remove an attachment

Deletes the file and its record.

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Confirm an upload

Checks the file arrived as announced and makes the attachment available.

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Response samples

Content type
application/json
{}

A link to open the file

For the owner's browser to fetch the file straight from storage. The same link is handed out again while it is fresh, and the answer may be kept for as long as that, so the browser's cache keeps the file.

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "url": "string",
  • "expiresAt": "2022-03-10T16:15:50Z"
}

A link to the preview thumbnail

Like the file's link, for the small preview an image's row shows (#236).

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>
taskId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "url": "string",
  • "expiresAt": "2022-03-10T16:15:50Z"
}

Authentication

The browser side of sign-in, sign-out, and the current session.

Start an app session

Trades the ID token the app signed in with, sent as Authorization: Bearer, once for a TaskFest app session token, which the app sends instead from then on. The ID token is checked exactly as on any bearer request. The session ends 30 days after it starts however much it is used, when the app ends it, or with the account. An app session token or a session cookie cannot start another.

Authorizations:
idToken

Responses

Response samples

Content type
application/json
{
  • "token": "taskfest_app_q8Jx2mJ0bZ8tQ1n4Yc7d5v3s6K9wF2hL0aR1uE4oP7i",
  • "expiresAt": "2026-12-16T09:30:00Z"
}

End the app session

Signs the app out: ends the app session whose token is sent as Authorization: Bearer. Ending one that has ended already succeeds too. The identity provider's own session is untouched.

Authorizations:
appSession

Responses

Start sign-in

Starts sign-in with the deployment's main provider; the provider's callback completes it. Needs no authentication.

Responses

Start sign-in with one provider

For every provider but the deployment's main one, which uses /api/auth/login. The provider list names each provider's path.

path Parameters
provider
required
string <= 64 characters

Responses

End the local session

Expires every session cookie the browser sent; the identity provider's own session is untouched.

Responses

The signed-in identity

The only identity the frontend is allowed to know about.

Authorizations:
sessionCookieappSessionidToken

Responses

Response samples

Content type
application/json
{}

List the configured sign-in providers

Every provider this deployment declares, usable or not, needing no authentication to ask.

Responses

Response samples

Content type
application/json
{
  • "enabled": true,
  • "providers": []
}

Deployment

What a deployment runs, for the tooling that deploys it.

Report the running release

The version this backend was built as, and the oldest mobile app release it still serves, needing no authentication to ask.

Responses

Response samples

Content type
application/json
{
  • "version": "1.3.0",
  • "minimumAppVersion": "1.0.0"
}

Tasks

Everything a signed-in user can do to their own tasks.

List the caller's tasks

Ordered by due date, then by importance, high first, then id.

Authorizations:
sessionCookieappSessionidToken

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a task

The caller becomes the owner; the id cannot be set.

Authorizations:
sessionCookieappSessionidToken
Request Body schema: application/json
required
description
required
string <= 255 characters \S
dueDate
required
string <date> (LocalDate)
dueTime
string or null^([01][0-9]|2[0-3]):[0-5][0-9]$

The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone.

timeZone
string or null <= 64 characters

The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock.

importance
required
string (TaskImportance)
Enum: "LOW" "MEDIUM" "HIGH"
state
required
string (TaskState)
Enum: "TODO" "WORKING" "DONE"
attachmentIds
Array of integers or null <int64> <= 10 items [ items <int64 > ]

Attachments of a task deleted moments ago, for an undo to bring back (#204); only the caller's, only within the undo window.

Responses

Request samples

Content type
application/json
{
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "importance": "LOW",
  • "state": "TODO",
  • "attachmentIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 42,
  • "description": "Renew the passport",
  • "dueDate": "2026-11-30",
  • "importance": "HIGH",
  • "state": "TODO"
}

Start a draft task

A task to attach files to before it is added; on no list until then (#381).

Authorizations:
sessionCookieappSessionidToken

Responses

Response samples

Content type
application/json
{
  • "id": 42
}

Discard a draft task

Its files go with it, at once.

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>

Responses

Add a draft task

Makes the draft a task, with its files, validated as a create is. Adding it again, as a retry whose answer was lost does, applies the values to the task (#427).

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>
Request Body schema: application/json
required
description
required
string <= 255 characters \S
dueDate
required
string <date> (LocalDate)
dueTime
string or null^([01][0-9]|2[0-3]):[0-5][0-9]$

The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone.

timeZone
string or null <= 64 characters

The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock.

importance
required
string (TaskImportance)
Enum: "LOW" "MEDIUM" "HIGH"
state
required
string (TaskState)
Enum: "TODO" "WORKING" "DONE"
attachmentIds
Array of integers or null <int64> <= 10 items [ items <int64 > ]

Attachments of a task deleted moments ago, for an undo to bring back (#204); only the caller's, only within the undo window.

Responses

Request samples

Content type
application/json
{
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "importance": "LOW",
  • "state": "TODO",
  • "attachmentIds": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 42,
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "dueAt": "2026-11-30T09:00:00Z",
  • "importance": "LOW",
  • "state": "TODO",
  • "attachments": []
}

Replace a task

Replaces every field of a task owned by the caller, except a due time and zone the request leaves out both of (#497).

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>
Request Body schema: application/json
required
description
required
string <= 255 characters \S
dueDate
required
string <date> (LocalDate)
dueTime
string or null^([01][0-9]|2[0-3]):[0-5][0-9]$

The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone. Left out together with the other of dueTime and timeZone, the task keeps both (#497), for apps that know neither. Left out alone, it counts as null, so a timeZone sent without a dueTime is refused.

timeZone
string or null <= 64 characters

The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock. Left out together with the other of dueTime and timeZone, the task keeps both (#497), for apps that know neither. Left out alone, it counts as null, so a timeZone sent without a dueTime is refused.

importance
required
string (TaskImportance)
Enum: "LOW" "MEDIUM" "HIGH"
state
required
string (TaskState)
Enum: "TODO" "WORKING" "DONE"

Responses

Request samples

Content type
application/json
{
  • "description": "Renew the passport",
  • "dueDate": "2019-08-24",
  • "dueTime": "10:00",
  • "timeZone": "Europe/Berlin",
  • "importance": "LOW",
  • "state": "TODO"
}

Response samples

Content type
application/json
{
  • "id": 42,
  • "description": "Renew the passport",
  • "dueDate": "2026-11-30",
  • "importance": "HIGH",
  • "state": "TODO"
}

Delete a task

Authorizations:
sessionCookieappSessionidToken
path Parameters
id
required
integer <int64>

Responses