List the organization's work items
const url = 'https://api.modeldesk.io/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/work-items?tab=all&due=overdue&sort=updated&dir=asc&layout=list&perState=50&offset=0&limit=200';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://api.modeldesk.io/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/work-items?tab=all&due=overdue&sort=updated&dir=asc&layout=list&perState=50&offset=0&limit=200' \ --header 'Authorization: Bearer <token>'The organization’s items the caller may see, across every model and the organization itself, filtered, ordered and paged as a list, or cut per state as a board, with the workflow they are drawn in. An item on a model the caller cannot read is a locked row carrying its number, state and category only; it counts in every total, and only the state, category, model and tab (all or triage) keys keep it, any other filter drops it. An item raised on another member’s live draft is not listed at all. Repeating a key means any of its values. Keys the read does not know are ignored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”all; mine, assigned to the caller; ready, carrying the ready mark; triage, in a triage state.
Only items in these states.
Only items in a state of these categories.
A person’s id, me for the caller, or none for items assigned to nobody.
Items carrying any of these labels.
A model’s id, or organization for items anchored to the organization. A model’s id keeps that model’s locked rows.
Only items anchored to this element, at element or property grain. Named only beside exactly one model id; drops locked rows.
A person’s id, or me for the caller.
overdue, due before today and still open; week, due today or within the seven days after; none, without a due date.
Only items an open item blocks.
An item number, bare, with its # or with the organization’s current or an earlier prefix (GEO-231); otherwise text the title holds, in any case.
The list order. Locked rows, which carry none of these fields, come after the readable ones by number, except in the order by number.
The direction of sort; items without a due date come last either way.
list, one page in sort order; board, the first perState cards of every state in workflow order, by priority then most recently updated, locked cards last. A board’s next cards of one state are the same query with state and offset.
A board’s cards per state.
A list page’s rows.
Responses
Section titled “Responses”OK
One page of the organization’s items, or the first cards of every state for a board, with what a list or board needs to show them.
object
A work item as a row of a list.
object
Per organization, never reused.
Absent for an item about the organization.
What kind of work an item is. FINDING is raised from a validation result and is not created by hand.
The check that reported the finding a FINDING item tracks; absent on every other type.
The place in the model an item is about, or the organization as a whole. Finer fields are absent, never null.
object
The model, or the organization for an item about the organization.
Absent on an item about the model as a whole, and on an organization item.
The element’s property by name; absent unless the item is about one property.
Present only while the anchor’s target is not in the model at the item’s checked ref.
object
Present when someone decided to keep the item where it is.
When the commit that removed the target was made; absent when the target was found missing on read.
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
The target’s name when it was last seen.
The element that owned the target when it was last seen.
The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.
object
The ids of the workflow’s labels the item carries.
An open item blocks this one.
Unstarted, unassigned and not blocked: anyone may claim it.
The items that block this one, open and closed, locked where the reader may not read them.
Another item as a line in a relation, a parent, a blocker or a picker.
object
The reader may not open the item: it is on a model they cannot read, or on another user’s draft. A locked link carries its number only.
The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.
An item on a model the reader cannot read: it counts and keeps its place in its state’s column, and says nothing more about itself.
object
The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.
How many match, across every page, locked items included.
The number of items per state id, filters applied: every state of the workflow, 0 included.
object
On the Ready tab only: the open, readable items in an unstarted state that are claimed or blocked.
The readable models the returned items sit on.
object
An organization’s work item workflow: its states, its labels and the prefix item numbers are shown with.
object
object
The fixed category of a workflow state. Open means anything but COMPLETED and CANCELED.
Present on the duplicate state, which a close enters only with the original named. Kept beside its role for readers that predate the role.
The meaning a workflow state has beyond its category; absent on an ordinary state. Such a state can be renamed and reordered within its category, never deleted. DUPLICATE is the canceled state a close enters only with the original named; NOT_A_PROBLEM is the canceled state recording that the team accepts a finding, which only a finding item enters, by a close. It leaves the model’s validity unchanged.
A label of the organization’s workflow. Its name is unique in the organization, ignoring case.
object
The colour a label is drawn in.
How many items carry the label; present where the workflow is read for its settings only.
Written before every item number, as in GEO-231; derived from the organization’s name until an admin sets one.
The prefixes the organization used before, so an address written with one still finds its item.
The number the next item takes.
Raised by every change to the settings; a settings write names the version it was read at, and one naming an older version is refused with workflow-stale.
Example
{ "items": [ { "type": "TASK", "anchor": { "resourceKind": "model" }, "anchorStatus": { "gone": true, "by": { "type": "USER" } }, "category": "TRIAGE", "priority": "NONE", "blockedBy": [ { "category": "TRIAGE" } ] } ], "workflow": { "states": [ { "category": "TRIAGE", "role": "DUPLICATE" } ], "labels": [ { "colour": "slate" } ] }}A value a key does not take, named by the problem’s property.
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}The caller is a member of the organization without a seat (on the model’s metamodel, for a model’s routes), or is a service account, which no work item route admits.
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}The caller is not a member of the organization, or it does not have work items.
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}