On this page
- Signing in with the API key
- Managing API access
- What the API can do
- API, trigger or AI assistant?
- The calls in version 1
- What version 1 gained
- Members and roles
- Creating a case
- The idempotency key
- Which permissions the API account needs
- Working on tasks
- Saving a value
- Completing a task
- Fetching ready tasks
- The last writer wins
- Paging and reconciling
- Limits
- Examples for every call
- GET /api/v1/cases
- POST /api/v1/cases
- GET /api/v1/cases/{id}
- GET /api/v1/tasks
- GET /api/v1/tasks/{id}
- PUT /api/v1/tasks/{id}/values/{field_id}
- POST /api/v1/tasks/{id}/complete
- GET /api/v1/templates
- GET /api/v1/members
- GET /api/v1/roles
- Error messages
- Bad request (400)
- Sign-in and permissions (401, 403, 404)
- Writing commands (409 to 423)
- Too many calls (429)
- Server-side errors (500 to 504)
Signing in with the API key
- 1A person with organization administration creates an API access in the organization. Bricksta shows the key once while doing so; copy it straight to where the other system needs it.
- 2The other system sends the key in the header of every call:
Authorization: Bearer <key>. - 3Never send the key in the address (query string). It would end up in logs.
- 4If a key is lost or no longer needed, the API access is revoked. The key stops working immediately.
Every call is listed in the API access's run log: time, path, status and duration. Field contents are never in it.
Managing API access
API access lives under Organization › Interfaces › API access. It is for people who administer the organization; nobody else sees the section.
| Step | How it works |
|---|---|
| Create API access | Enter a name you will recognize the access by, and choose at least one permission profile: it defines what the access may create and change. Through roles it also sees cases with still unassigned tasks of those roles, even from private templates. Optionally add a default responsible person. Profiles with administrative rights and base profiles cannot be chosen. The dialog sums up beforehand what the access may do and how many templates it will see. |
| Check the profile | Below each profile you see what it allows through the API, for example “Cases: create, priority · Tasks: edit”; “sees absences” means the profile carries the permission “Manage personnel data” and therefore opens absence cases for reading. |
| Taking part | Write permissions only apply in cases the access takes part in (owner, case role, assigned task or an open approval addressed to it or its roles), unless the profile carries the badge “in all cases”. Create, owner and priority also apply when creating without taking part, if the profile carries them. Without another owner, the access becomes the owner itself when creating and so takes part. |
| Save the key | Bricksta shows the key exactly once. Copy it, and only then close with Saved, close. Afterwards only its beginning is shown. |
| Revoke | Ends an access immediately. This cannot be undone; create a new one if needed. |
| Run log | Shows the calls of the last 30 days, optionally only the successful or only the failed ones. |
An organization has at most 10 API accesses at a time. Once that number is reached, revoke one you no longer need first. An access in the state Pending was not fully created, for example because the connection dropped: revoke it and create it again.
If the person who created an API access leaves the organization, the access keeps running. When removing them, Bricksta says how many accesses they created. An API access takes no seat.
What the API can do
An external system uses its API key to read your company's cases, tasks with all their fields (with field IDs and option IDs) and templates. It also creates cases from a template, fills in fields of open tasks and completes tasks. The key acts as its own API account, a system account. It sees exactly what that account may see: the templates visible to it, plus cases with still unassigned tasks of its roles (see “Create API access”); the visibility of individual fields applies here too.
Bricksta rejects an API account that has administration rights (manage organization, members, templates or mailboxes, invite members). Give the API account only the rights the other system needs.
API, trigger or AI assistant?
| Route | Used for | Who acts |
|---|---|---|
| Trigger | Another system starts something in Bricksta from the outside, for example to start a case. | The trigger, no person |
| AI assistant (MCP) | Claude or ChatGPT work with Bricksta in a chat. More under Using Bricksta in Claude and ChatGPT. | A person, with their rights |
| API | A system reads data from Bricksta, creates cases or completes tasks, machine to machine. | The API account, with a key |
If Bricksta should report on its own when something happens, use the return channel: outbound webhooks.
The calls in version 1
| Call | Returns |
|---|---|
GET /api/v1/cases | One page of cases. Filters: updated_since, template, status, field with value, limit (1 to 100) and cursor. |
POST /api/v1/cases | Creates a case from a template and starts it. Needs the Idempotency-Key header. |
GET /api/v1/cases/{id} | One case with all its tasks. |
GET /api/v1/tasks | Fetches open and in-progress tasks the API account may work on and locks them for processing (see “Fetching ready tasks”). |
GET /api/v1/tasks/{id} | One task with all fields, empty ones too, each with its IDs. |
PUT /api/v1/tasks/{id}/values/{field_id} | Saves a value in a field of an open task. Needs the Idempotency-Key header. |
POST /api/v1/tasks/{id}/complete | Completes an open task or submits it for approval. Needs the Idempotency-Key header. |
GET /api/v1/templates | Your company's templates that the API account may see, with create_fields (fields when creating) and workflows (workflows to choose from). creatable_via_api says whether the API can create cases from it, otherwise reason gives the cause. |
GET /api/v1/members | A page of your company's active members with id (membership ID) and name. Filters: email (exactly one address), limit (1 to 100) and cursor (see “Members and roles”). |
GET /api/v1/roles | Your company's active roles, each with name, description and member_ids: the membership IDs of its holders. |
GET /api/v1/openapi.json | The description of the API as OpenAPI 3.1. No sign-in needed. |
What version 1 gained
Version 1 only grows by additions: existing fields, codes and calls are kept. If a value changes, the list says so. Another system should therefore skip unknown fields in a response.
- 2026-11-23:
GET /api/v1/membersandGET /api/v1/roles. New errormember_inactivewhenowner_idnames a deactivated member. - 2026-11-23: templates with a workflow choice can be created:
creatable_via_apiis nowtruethere,reasonstays empty.GET /api/v1/templateslistsworkflows,POST /api/v1/casestakesworkflow_id. - 2026-11-23: if
workflow_idis missing,workflow_choice_requiredlists the workflows to choose from. New errorworkflow_not_selectable. - 2026-11-23:
POST /api/v1/caseswith another responsible person also works when the API account is not involved in the new case. Before, it returned 403forbidden. - 2026-11-23: a task's
nameis the step name in the template version, no longer empty. - 2026-11-23: examples for every call, here and in the OpenAPI file.
- 2026-11-21:
GET /api/v1/tasksfetches ready tasks with a lock (lock_token,run_no). New errorstask_lockedandrun_mismatch, plus thetask_readywebhook. - 2026-11-20: a task that should send an Outlook message can only be completed after sending. Before that, the API returns 422
unprocessable. - 2026-11-20: version 1 is released: read cases, tasks and templates, create a case, save a value, complete a task.
Members and roles
With GET /api/v1/members another system finds a person's ID, for owner_id when creating, say. Email addresses are never in the response; name is the display name from the profile, otherwise null.
Every API account sees members and roles without a permission of its own, like every member in Bricksta. The dialog for creating an access says so too.
Creating a case
With POST /api/v1/cases the other system creates a case from a published template. Bricksta starts it right away: the first tasks go to their assignees, and notifications and outbound webhooks run as for a case a person creates. The response is 201 with the new case and a Location header.
| Field in the body | Meaning |
|---|---|
template_id | Required. The template's ID, from GET /api/v1/templates. An unknown or invisible template returns 404. |
title | Optional. Title of the case; without one, Bricksta uses the template's title pattern. |
priority | Optional. low, normal, high or urgent. |
due_at | Optional. Due date, a date or timestamp in ISO 8601. |
owner_id | Optional. The membership ID of an active member who becomes responsible. If omitted, the default owner of the API access applies; if none is set, the API account. Unknown or deactivated: 422. GET /api/v1/members lists the IDs. |
fields | Optional. Start values for the fields in the template's create_fields: each entry has the field id and exactly one value (text, number, boolean, date or option_id). At most 200 entries. |
workflow_id | Only for templates with a workflow choice, and required there. The id of an entry in the template's workflows. |
Bricksta rejects unknown properties in the request body and entries with no value or more than one with 400 instead of silently skipping them.
A field that is not in create_fields (such as one of a later step), or an option the field does not have, returns 422 unprocessable. The body may be at most 12,000 bytes, otherwise 413. The case history names the API account as the author, marked “(system, via API)”.
The idempotency key
Every creating call carries the Idempotency-Key header with its own value per case, such as the order number from the ERP: 8 to 128 characters of letters, digits and . _ : -. If the other system sends the same call with the same key again, for example after a network error, Bricksta creates no second case and returns the case already created, in its current state, also with 201. A key is valid for 24 hours.
Responses such as 401, 403 or 423 to a repeat say nothing about the first attempt: if the access was revoked or the organization became read-only in the meantime, the case may already exist. When in doubt, reconcile via GET /api/v1/cases.
| Response | What the other system does |
|---|---|
400 idempotency_key_required | Without a valid key, Bricksta creates nothing. Set the key and send again. |
409 idempotency_in_progress | The first call is still running. Wait the seconds in Retry-After, then send the same call again. |
422 idempotency_key_reused | The same key already created a case with a different body. A new case needs a new key. An attempt that ended in an error does not use up the key: correct it and send again with the same key. |
504 outcome_unknown | Send the same call with the same key again. That returns the result without creating twice. |
Which permissions the API account needs
Through its permission profiles, the API account needs the permissions to create cases and to choose the workflow. For start values in fields it needs the permission to edit tasks, and for fields with a field role, that role. For a priority that differs from the template's default, it needs the permission to set the priority.
If someone other than the API account becomes responsible, through owner_id or the access's default owner, it needs the permission to set the owner. If a permission is missing, Bricksta answers 403 forbidden. A template the API account may not see is answered like an unknown one, with 404.
Working on tasks
The other system fills in the fields of an open task and completes it, with the same rules as the task in Bricksta. GET /api/v1/tasks/{id} returns the field IDs under fields. The history names the API account as the author, marked “(system, via API)”, also for a saved value.
Saving a value
PUT /api/v1/tasks/{id}/values/{field_id} saves exactly one value. The body carries it in the form that fits the field: text, number, boolean, date or option_id; null clears the field. The response is the field as GET /api/v1/tasks/{id} shows it. If the value does not fit the field, Bricksta answers 422 invalid_value and names the field_id. A field that does not belong to the task returns 404.
Completing a task
POST /api/v1/tasks/{id}/complete needs no body (empty or {}). Bricksta checks in this order: is the task blocked (409 task_blocked)? May the API account work on it (403 not_assigned)? Is it already waiting for an approval? Are all required fields filled (422 required_fields_missing, with names and IDs of the missing fields in fields)?
The fetch lock and the run come before all of these checks: a task another instance has locked answers 409 task_locked even when it is blocked (409 task_locked and 409 run_mismatch, see “Fetching ready tasks”).
| Response | Meaning |
|---|---|
200 completed | The task is done, with completed_by and completed_at. If it was already done, the same response comes with the first completion. So a retry after a timeout is safe. |
200 approval_pending | The task needs an approval and has been submitted; approver names the approver or the role. While the approval is pending, a second call does not submit again. The API cannot approve; that happens in Bricksta. |
409 task_not_open | The task was skipped, cancelled or is not open yet; task_status names its state. |
It needs the permission to complete tasks and must be responsible: the API account does not complete a task of a person or of a role it does not hold. Tasks of other companies and tasks the account may not see are answered with 404, just like an unknown ID.
Fetching ready tasks
When several instances of a system work through the same tasks, each fetches its work with GET /api/v1/tasks. The response contains only open or in-progress tasks the API account may work on and locks every task it returns: each carries lock_token, lock_expires_at and run_no. While the lock is valid, no further call returns that task again, not even one from another instance. lock_duration sets the duration in seconds (10 to 3600, default 300); limit and cursor page as for cases.
It returns tasks that are open or in progress (also when a person has started them, or after a rejected approval), not blocked and not waiting for an approval.
A page can be shorter than limit when the list ends or another instance fetches a task at the same moment. Keep paging until next_cursor is empty. A lock is not extended: if the time is not enough, fetch the task again after it expires. The lock applies only to the API: people in Bricksta can still edit and complete the task.
When writing, send lock_token and run_no in the body of PUT /api/v1/tasks/{id}/values/{field_id} and POST /api/v1/tasks/{id}/complete.
| Situation | Response |
|---|---|
| Token of your own valid lock | Bricksta saves or completes as usual. |
| Locked task, token missing or belonging to another lock | 409 task_locked. When saving, approval and responsibility come first: a task in approval answers 409 task_in_approval. |
| The task has been reopened by a back-jump | 409 run_mismatch with the current run_no. Fetch the task again. |
| The lock has expired and nobody has fetched the task again | Bricksta still accepts the token. |
| The system does not fetch and sends no token | As before: a task without a valid lock can be worked on without a token. |
So that the system does not have to keep asking, an outbound webhook on the event “Task ready” reports every task as soon as it becomes open. It does not replace a regular reconciliation with GET /api/v1/tasks: only the transition is reported.
The last writer wins
Outside a fetch lock, Bricksta does not lock a field while someone else is working on it, and the fetch lock itself only holds off other API instances, not people in Bricksta. If a person in Bricksta and the other system save into the same field one after the other, the later value wins. Saving the same value a second time leaves the value as it is.
Bricksta does not remember the Idempotency-Key when saving: a retry after a timeout writes the value again and overwrites a change someone made in the meantime. Every change is an entry in the history.
A saved value takes effect at once, as in Bricksta: conditions and phases that depend on it are re-evaluated, and outbound webhooks report the change. Completing a task opens the next tasks, notifies their assignees and also fires webhooks.
Paging and reconciling
On GET /api/v1/cases, pass the next_cursor from the response as cursor in the next call. When next_cursor is empty (null), you are at the end. A case may be delivered at least once while paging, so possibly twice. Reconcile by id.
Changes from the last 30 seconds only appear on the next call. For a running sync, remember the largest updated_at of your last response and pass it as updated_since to ask only for what is new. Do not use the time of your call: changes from the 30 seconds before it were not in the response and would be missed. updated_at also changes when a task or a field value of the case changes.
Limits
| Limit | Value |
|---|---|
| Reading calls | 120 per minute and key |
| Writing calls | 30 per minute and key |
| Simultaneous calls | at most 4 per key, 8 per company |
Examples for every call
Each example shows the call with curl and a shortened response. Put the key into the environment variable BRICKSTA_API_KEY first, so it does not appear in the command. The same examples are in the OpenAPI file.
The IDs are sample values. GET /api/v1/templates returns template IDs, and GET /api/v1/tasks returns lock_token and run_no.
GET /api/v1/cases
curl "https://bricksta.com/api/v1/cases?updated_since=2026-11-20T00:00:00Z&status=active&limit=2" \
-H "Authorization: Bearer $BRICKSTA_API_KEY"{
"data": [
{
"id": "7e3a9c51-4b2d-4e86-9f17-a0c5d8b2e6f4",
"number": 1042,
"title": "Order 4711",
"status": "active",
"template_id": "3f6c2a9e-0b1d-4c7e-9a52-6d8e1f4b2c70",
"due_date": "2026-11-30",
"created_at": "2026-11-21T08:14:03.512904+00:00",
"updated_at": "2026-11-22T15:40:11.078331+00:00"
},
{
"id": "2a8d5f3c-9e1b-4c67-a4d0-6b9f2e7c1a85",
"number": 1043,
"title": "Order 4712",
"status": "active",
"template_id": "3f6c2a9e-0b1d-4c7e-9a52-6d8e1f4b2c70",
"due_date": null,
"created_at": "2026-11-22T09:02:47.330115+00:00",
"updated_at": "2026-11-22T16:05:52.901467+00:00"
}
],
"next_cursor": "djF8MjAyNi0xMS0yMlQxNjowNTo1Mi45MDE0NjdafDJhOGQ1ZjNjLTllMWItNGM2Ny1hNGQwLTZiOWYyZTdjMWE4NQ"
}POST /api/v1/cases
curl -X POST "https://bricksta.com/api/v1/cases" \
-H "Authorization: Bearer $BRICKSTA_API_KEY" \
-H "Idempotency-Key: erp-order-4711" \
-H "Content-Type: application/json" \
-d '{
"template_id": "3f6c2a9e-0b1d-4c7e-9a52-6d8e1f4b2c70",
"title": "Order 4711",
"workflow_id": "8a1e5d20-7c43-4f9b-b6e2-0d5a9c3f1e84",
"owner_id": "6a4d9f2b-8c1e-4b73-a5d0-3e7f1c9b8a26",
"fields": [
{
"id": "5d9e2c71-a8b4-4f36-9e01-7b3c6a2d8f15",
"text": "4711"
}
]
}'{
"id": "7e3a9c51-4b2d-4e86-9f17-a0c5d8b2e6f4",
"number": 1042,
"title": "Order 4711",
"status": "active",
"template_id": "3f6c2a9e-0b1d-4c7e-9a52-6d8e1f4b2c70",
"due_date": null,
"owner_id": "6a4d9f2b-8c1e-4b73-a5d0-3e7f1c9b8a26",
"created_at": "2026-11-21T08:14:03.512904+00:00"
}GET /api/v1/cases/{id}
In version 1 the case header uses German names (nummer, titel, frist …), the tasks list uses English ones. This stays, because version 1 does not change existing names.
curl "https://bricksta.com/api/v1/cases/7e3a9c51-4b2d-4e86-9f17-a0c5d8b2e6f4" \
-H "Authorization: Bearer $BRICKSTA_API_KEY"{
"id": "7e3a9c51-4b2d-4e86-9f17-a0c5d8b2e6f4",
"nummer": 1042,
"titel": "Order 4711",
"status": "active",
"prioritaet": "normal",
"vorlage": "Purchase order",
"verantwortlich": "Anna Berger",
"frist": "2026-11-30",
"fortschritt": {
"erledigt": 1,
"gesamt": 4
},
"felder": [
{
"id": "5d9e2c71-a8b4-4f36-9e01-7b3c6a2d8f15",
"label": "Order number",
"typ": "text",
"wert": "4711"
}
],
"tasks": [
{
"id": "b9f2a6d4-3c8e-4170-9d5b-e1a4c7f8b032",
"name": "Record order",
"status": "completed",
"assignment": "role",
"due_date": null,
"due_at": null,
"completed_at": "2026-11-21T08:14:05.187220+00:00"
},
{
"id": "4c1e8b73-d6a9-4f25-b3e8-0a7d2c9f5b16",
"name": "Check invoice",
"status": "open",
"assignment": "role",
"due_date": "2026-11-27",
"due_at": null,
"completed_at": null
}
]
}GET /api/v1/tasks
curl "https://bricksta.com/api/v1/tasks?limit=50&lock_duration=600" \
-H "Authorization: Bearer $BRICKSTA_API_KEY"{
"data": [
{
"id": "4c1e8b73-d6a9-4f25-b3e8-0a7d2c9f5b16",
"case_id": "7e3a9c51-4b2d-4e86-9f17-a0c5d8b2e6f4",
"name": "Check invoice",
"status": "open",
"run_no": 1,
"due_date": "2026-11-27",
"due_at": null,
"lock_token": "0f5b2e8d-7a3c-4d91-b6f4-2c8e9a1d7b53",
"lock_expires_at": "2026-11-23T10:10:00.214733+00:00"
}
],
"next_cursor": null
}GET /api/v1/tasks/{id}
curl "https://bricksta.com/api/v1/tasks/4c1e8b73-d6a9-4f25-b3e8-0a7d2c9f5b16" \
-H "Authorization: Bearer $BRICKSTA_API_KEY"{
"id": "4c1e8b73-d6a9-4f25-b3e8-0a7d2c9f5b16",
"case_id": "7e3a9c51-4b2d-4e86-9f17-a0c5d8b2e6f4",
"name": "Check invoice",
"status": "open",
"due_date": "2026-11-27",
"due_at": null,
"completed_at": null,
"fields": [
{
"id": "e4a8c3f6-1d27-4b95-8c60-2f9b5e7a1d43",
"label": "Invoice amount",
"type": "number",
"scope": "task",
"required": true,
"options": [],
"filled": false,
"value": null
},
{
"id": "9b2f6d14-c5a3-4e87-b0d9-3a6e1c8f2b56",
"label": "Decision",
"type": "select",
"scope": "task",
"required": true,
"options": [
{
"id": "1c7a4e92-6b3d-4f50-a8e5-d2b9f0c6e371",
"label": "Approved"
},
{
"id": "f6d3b8a1-2e9c-4a74-b5f0-8c1e7d4a9b62",
"label": "Rejected"
}
],
"filled": false,
"value": null
}
]
}PUT /api/v1/tasks/{id}/values/{field_id}
curl -X PUT "https://bricksta.com/api/v1/tasks/4c1e8b73-d6a9-4f25-b3e8-0a7d2c9f5b16/values/e4a8c3f6-1d27-4b95-8c60-2f9b5e7a1d43" \
-H "Authorization: Bearer $BRICKSTA_API_KEY" \
-H "Idempotency-Key: erp-invoice-4711-amount" \
-H "Content-Type: application/json" \
-d '{
"number": 1250.5,
"lock_token": "0f5b2e8d-7a3c-4d91-b6f4-2c8e9a1d7b53",
"run_no": 1
}'{
"id": "e4a8c3f6-1d27-4b95-8c60-2f9b5e7a1d43",
"label": "Invoice amount",
"type": "number",
"scope": "task",
"required": true,
"options": [],
"filled": true,
"value": 1250.5
}POST /api/v1/tasks/{id}/complete
For the API account, completed_by shows the name of the API access. If the task needs an approval, status is approval_pending and approver names the approvers.
curl -X POST "https://bricksta.com/api/v1/tasks/4c1e8b73-d6a9-4f25-b3e8-0a7d2c9f5b16/complete" \
-H "Authorization: Bearer $BRICKSTA_API_KEY" \
-H "Idempotency-Key: erp-invoice-4711-done" \
-H "Content-Type: application/json" \
-d '{
"lock_token": "0f5b2e8d-7a3c-4d91-b6f4-2c8e9a1d7b53",
"run_no": 1
}'{
"id": "4c1e8b73-d6a9-4f25-b3e8-0a7d2c9f5b16",
"case_id": "7e3a9c51-4b2d-4e86-9f17-a0c5d8b2e6f4",
"status": "completed",
"completed_at": "2026-11-23T10:04:31.662085+00:00",
"completed_by": {
"id": "a7e2c9f4-5b1d-4e38-9c6a-f8d0b3e5a142",
"name": "ERP integration"
},
"approver": null
}GET /api/v1/templates
curl "https://bricksta.com/api/v1/templates" \
-H "Authorization: Bearer $BRICKSTA_API_KEY"{
"data": [
{
"id": "3f6c2a9e-0b1d-4c7e-9a52-6d8e1f4b2c70",
"name": "Purchase order",
"description": null,
"create_fields": [
{
"id": "5d9e2c71-a8b4-4f36-9e01-7b3c6a2d8f15",
"label": "Order number",
"type": "text",
"required": true,
"options": []
}
],
"workflows": [
{
"id": "8a1e5d20-7c43-4f9b-b6e2-0d5a9c3f1e84",
"name": "Standard"
},
{
"id": "c2b7f915-3e6a-4d08-a1c4-9f2e6b8d0a37",
"name": "Rush order"
}
],
"creatable_via_api": true,
"reason": null
}
]
}GET /api/v1/members
curl "https://bricksta.com/api/v1/members?email=anna.berger@example.com" \
-H "Authorization: Bearer $BRICKSTA_API_KEY"{
"data": [
{
"id": "6a4d9f2b-8c1e-4b73-a5d0-3e7f1c9b8a26",
"name": "Anna Berger"
}
],
"next_cursor": null
}GET /api/v1/roles
curl "https://bricksta.com/api/v1/roles" \
-H "Authorization: Bearer $BRICKSTA_API_KEY"{
"data": [
{
"id": "5e9b1d7c-2a6f-4c84-b3e0-9d4a8f1c6b27",
"name": "Purchasing",
"description": null,
"member_ids": [
"6a4d9f2b-8c1e-4b73-a5d0-3e7f1c9b8a26",
"d1c8a5e3-4f9b-4a62-8e7d-b0c3f6a2e195"
]
}
]
}Error messages
On an error, Bricksta answers with application/problem+json (RFC 9457) and a code. Base the handling in the other system on the code. The codes are listed below by status.
An example: a template has several workflows, and the call names no workflow_id. Extra fields such as workflows help to fix the error without asking.
{
"type": "https://bricksta.com/en/docs/api#workflow_choice_required",
"title": "This template needs a workflow choice: send workflow_id (see workflows).",
"status": 422,
"code": "workflow_choice_required",
"workflows": [
{
"id": "8a1e5d20-7c43-4f9b-b6e2-0d5a9c3f1e84",
"name": "Standard"
},
{
"id": "c2b7f915-3e6a-4d08-a1c4-9f2e6b8d0a37",
"name": "Rush order"
}
]
}Bad request (400)
| Code | Meaning |
|---|---|
invalid_parameter | A parameter has an invalid value. |
unknown_parameter | The request contains a parameter that does not exist. |
invalid_limit | limit is not between 1 and 100. |
invalid_cursor | The cursor is invalid or expired. Start the list again from the beginning. |
invalid_body | The body is not a JSON object. |
idempotency_key_required | The Idempotency-Key header is missing or has an invalid format (8 to 128 characters of letters, digits and . _ : -). |
unknown_command | This command does not exist. |
For writing calls, Bricksta checks the key first: if it is wrong, the answer is 401, even when the Idempotency-Key is also missing or the body is wrong.
Sign-in and permissions (401, 403, 404)
| Code | Status | Meaning |
|---|---|---|
invalid_api_key | 401 | The key is missing, unknown or revoked. Bricksta answers the same way in all three cases. |
account_has_admin_rights | 403 | The API account has administration rights and is rejected. |
forbidden | 403 | The API account may not see or do this. |
not_assigned | 403 | The task belongs to a person or to a role the API account does not hold. |
not_found | 404 | The object does not exist. This also applies to objects of another company. |
Writing commands (409 to 423)
| Code | Status | Meaning |
|---|---|---|
conflict | 409 | The state has changed in the meantime. |
payload_too_large | 413 | The data sent is too large. |
unprocessable | 422 | The data is readable but does not fit the template's rules. |
idempotency_in_progress | 409 | A call with the same idempotency key is still running. With Retry-After. |
idempotency_key_reused | 422 | The idempotency key was already used with a different body. |
workflow_choice_required | 422 | workflow_id is missing. workflows lists the choices. |
workflow_not_selectable | 422 | This workflow_id cannot be chosen here. |
member_inactive | 422 | owner_id belongs to a deactivated member. |
template_not_published | 422 | The template has no published version yet. |
task_blocked | 409 | The task is blocked. Remove the block in Bricksta first. |
task_locked | 409 | Another instance has locked the task, or lock_token does not match. |
run_mismatch | 409 | After a back-jump the task is in a new run; run_no names it. Fetch the task again. |
task_not_open | 409 | The task is not open (skipped, cancelled or not its turn yet); task_status names its state. |
case_not_active | 409 | The case or its phase is not active. |
task_in_approval | 409 | The task is waiting for an approval; its fields are locked until then. |
required_fields_missing | 422 | Required fields are missing; fields names each field's id, label and reason (required, or confirm: must be confirmed with yes). |
invalid_value | 422 | The value does not fit the field; field_id names it. |
completion_rejected | 422 | The task cannot be completed this way, for example because there is no approver; reason names why. |
read_only | 423 | The company is currently read-only. |
Too many calls (429)
| Code | Meaning |
|---|---|
rate_limited | The per-minute limit is reached. Wait for the time in Retry-After. |
too_many_concurrent_requests | Too many calls are running at once. Wait briefly and try again. |
Server-side errors (500 to 504)
| Code | Status | Meaning |
|---|---|---|
internal_error | 500 | Something went wrong at Bricksta. Try again later. |
timeout | 503 | The answer took too long. With Retry-After. |
temporarily_unavailable | 503 | Bricksta is briefly unavailable. With Retry-After. Repeat a creating call with the same idempotency key. |
not_written | 503 | A writing command was not carried out. With Retry-After. |
outcome_unknown | 504 | It is unclear whether a writing command was carried out. No Retry-After: repeat the same call with the same idempotency key to get the result. |