Skip to content

Get statuses ​

Statuses are freely configurable per company. Returns the company's configured statuses.

Note: The name of a status is freely chosen and differs from company to company. For a stable mapping (e.g. in a third-party application), use the type field (open, in_progress, or done) instead of the name.

Request ​

GET /api/oauth/v2/resource/todos/statuses

HeaderValue
AuthorizationBearer {access_token}

Query parameters ​

ParameterTypeRequiredDescription
statusstringNoFilters by status, combinable as a comma-separated list. Allowed values: active (not deleted), deleted. Default: all (all values). See Conventions.
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)

Note: Without a status filter, this endpoint sorts by internal ID ascending, see Conventions.

Response ​

Success (200 OK) ​

json
{
  "data": [
    {
      "id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
      "name": "Open",
      "type": "open",
      "color": "#00adba",
      "deleted": false
    },
    {
      "id": "d4e5f6a7-b8c9-0123-def0-456789012345",
      "name": "In progress",
      "type": "in_progress",
      "color": "#f59e0b",
      "deleted": false
    },
    {
      "id": "e5f6a7b8-c9d0-1234-ef01-567890123456",
      "name": "Done",
      "type": "done",
      "color": "#10b981",
      "deleted": false
    }
  ],
  "meta": {
    "total": 3,
    "offset": 0,
    "limit": 50
  }
}

Response fields ​

FieldTypeDescription
data[].idstring (UUID)Unique status ID
data[].namestringName of the status (freely configurable per company)
data[].typestringStable status category: open, in_progress, or done
data[].colorstringColor of the status (hex)
data[].deletedbooleantrue if the status has been deleted
meta.totalintegerTotal number of statuses (considering the status filter)
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/todos/statuses?status=all&offset=0&limit=50" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
400validation_errorstatus contains an invalid value
401invalid_clientInvalid or missing access token
403insufficient_scopeScope todos not present

Offisy GmbH