# Projects

Projects: list, read, create and change them; archive, trash, restore and delete; features and categories.

## List projects

`GET /orgs/{org}/projects`

Scope: `projects:read`

The projects the token's person can open (a project they hold no role in doesn't appear, D1), active by default. Filter by state, kind, category, lead and text; sort by name, key or created.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Query parameters

- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]
- `count` (string): true adds total, the number of items in the whole list. [one of: true, false]
- `state` (string): active (default) or archived. The trash is GET /project-trash. [one of: active, archived]
- `kind` (string) [one of: team, organisation]
- `category` (string): A category's id, or none for projects without one. [at most 40 characters]
- `lead` (string): The lead's id or email. [1 to 320 characters]
- `q` (string): Text in the name or key. [at most 200 characters]
- `sort` (string): name (default), key or created; several comma-separated, - for descending. [at most 100 characters]
- `fields` (string): Only these fields, comma-separated: id, key, name, kind, state, family, lead, category, can_administer. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/projects" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
      "key": "WEB",
      "name": "Website",
      "kind": "organisation",
      "state": "active",
      "family": "software",
      "lead": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah",
        "former": false
      },
      "category": {
        "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
        "name": "Customer work"
      },
      "can_administer": true
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Create a project

`POST /orgs/{org}/projects`

Scope: `projects:write`

Creates a project from a template, as the app's wizard does: the person needs Create Team projects or Create Organisation projects; the creator becomes its admin. Keys and names are unique (409 conflict when taken). A category is an organisation admin's to give.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Headers

- `Idempotency-Key` (string): A unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422. [1 to 200 characters]

### Body

- `name` (string, required) [at most 200 characters]
- `key` (string, required): 2 to 10 letters and digits, starting with a letter. [at most 20 characters]
- `kind` (string, required): team: a Team project with its own roles; organisation: an Organisation project on the organisation's schemes. [one of: team, organisation]
- `template` (string): The template's id (scrum, kanban, …); required unless custom_template is given. [one of: scrum, kanban, bug_tracking, blank, project_management, task_tracking, business, campaign, content, hiring, purchasing, contract_review, office_moves, event_planning, gtm_launch, email_campaigns, social_calendar, brand_assets, facilities, asset_tracking, process_control, vendor_management, onboarding, offboarding, performance_reviews, training, budget_planning, expenses, month_end, legal_requests, policy_reviews, document_approval]
- `custom_template` (string (uuid)): A saved project template's id.
- `share_settings_with` (string): Organisation projects: share this Organisation project's settings. [1 to 60 characters]
- `category` (string (uuid) or null)
- `task_types` (array of object) [at most 20 items]
  - `name` (string, required) [at most 60 characters]
  - `icon` (string, required) [one of: epic, story, task, bug, subtask]
  - `level` (one of 3 shapes, required): 1: above tasks (Epic), 0: a task, -1: a subtask.
- `statuses` (array of object) [at most 30 items]
  - `name` (string, required) [at most 60 characters]
  - `category` (string, required) [one of: todo, in_progress, done]
- `views` (array of string) [at most 15 items]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/projects" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "key": "string",
  "kind": "team",
  "template": "scrum",
  "custom_template": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "share_settings_with": "string",
  "category": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "task_types": [
    {
      "name": "string",
      "icon": "epic",
      "level": -1
    }
  ],
  "statuses": [
    {
      "name": "string",
      "category": "todo"
    }
  ],
  "views": [
    "summary"
  ]
}'
```

### Answer: 201

```json
{
  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "key": "WEB",
  "name": "Website",
  "kind": "organisation",
  "state": "active",
  "family": "software",
  "lead": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah",
    "former": false
  },
  "category": {
    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
    "name": "Customer work"
  },
  "can_administer": true,
  "description": "The public website.",
  "url": "https://example.com",
  "icon": "rocket",
  "template": "scrum",
  "default_assignee": "unassigned",
  "features": {
    "sprints": true,
    "estimation": "story_points",
    "standups": false,
    "views": [
      {
        "kind": "board",
        "name": "Board",
        "is_default": true
      },
      {
        "kind": "backlog",
        "name": "Backlog",
        "is_default": false
      }
    ]
  },
  "docs_space": null,
  "my_roles": [
    "Administrator"
  ],
  "my_permissions": [
    "administer_project",
    "browse_project",
    "create_tasks"
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "archived_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state. limit_reached: A limit was reached (of the plan, or of how many of something one person may have).
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 422 `idempotency_key_reused`: idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Get a project

`GET /orgs/{org}/projects/{project}`

Scope: `projects:read`

One project by key, old key (after a key change) or id: its details, features, views, and the token's person's roles and permissions there. A project the person can't open answers 404, as one that doesn't exist.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB), an old key, or its id. [1 to 60 characters]

### Query parameters

- `fields` (string): Only these fields, comma-separated: id, key, name, kind, state, family, lead, category, can_administer, description, url, icon, template, default_assignee, features, docs_space, my_roles, my_permissions, created_at, archived_at. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/projects/{project}" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "key": "WEB",
  "name": "Website",
  "kind": "organisation",
  "state": "active",
  "family": "software",
  "lead": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah",
    "former": false
  },
  "category": {
    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
    "name": "Customer work"
  },
  "can_administer": true,
  "description": "The public website.",
  "url": "https://example.com",
  "icon": "rocket",
  "template": "scrum",
  "default_assignee": "unassigned",
  "features": {
    "sprints": true,
    "estimation": "story_points",
    "standups": false,
    "views": [
      {
        "kind": "board",
        "name": "Board",
        "is_default": true
      },
      {
        "kind": "backlog",
        "name": "Backlog",
        "is_default": false
      }
    ]
  },
  "docs_space": null,
  "my_roles": [
    "Administrator"
  ],
  "my_permissions": [
    "administer_project",
    "browse_project",
    "create_tasks"
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "archived_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Update a project

`PATCH /orgs/{org}/projects/{project}`

Scope: `projects:write`

Changes a project's details, as its Details settings do: name, key (the old key keeps working), category, lead, default assignee, description, address and icon. The project's admins only (others get 404, as the settings are hidden from them); an Organisation project's key and category are the organisation admins'.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB), an old key, or its id. [1 to 60 characters]

### Body

- `name` (string) [at most 80 characters]
- `key` (string) [at most 20 characters]
- `category` (string (uuid) or null)
- `lead` (string or null): The lead's id or email; null for none.
- `default_assignee` (string) [one of: lead, unassigned]
- `description` (string) [at most 5000 characters]
- `url` (string or null)
- `icon` (string) [one of: rocket, spark, leaf, bolt, flag, compass, cube, heart, star, globe]

### Request

```sh
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/projects/{project}" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "key": "string",
  "category": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
  "lead": "string",
  "default_assignee": "lead",
  "description": "string",
  "url": "string",
  "icon": "rocket"
}'
```

### Answer: 200

```json
{
  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "key": "WEB",
  "name": "Website",
  "kind": "organisation",
  "state": "active",
  "family": "software",
  "lead": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah",
    "former": false
  },
  "category": {
    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
    "name": "Customer work"
  },
  "can_administer": true,
  "description": "The public website.",
  "url": "https://example.com",
  "icon": "rocket",
  "template": "scrum",
  "default_assignee": "unassigned",
  "features": {
    "sprints": true,
    "estimation": "story_points",
    "standups": false,
    "views": [
      {
        "kind": "board",
        "name": "Board",
        "is_default": true
      },
      {
        "kind": "backlog",
        "name": "Backlog",
        "is_default": false
      }
    ]
  },
  "docs_space": null,
  "my_roles": [
    "Administrator"
  ],
  "my_permissions": [
    "administer_project",
    "browse_project",
    "create_tasks"
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "archived_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Delete a project for good

`DELETE /orgs/{org}/projects/{project}`

Scope: `projects:write`

Deletes a project in the trash, with its tasks, for good (organisation owners and admins). A project that isn't in the trash answers 409: move it to the trash first.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB), an old key, or its id. [1 to 60 characters]

### Request

```sh
curl -X DELETE "https://projqo.example/api/v1/orgs/{org}/projects/{project}" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 204

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Switch a project's features

`PATCH /orgs/{org}/projects/{project}/features`

Scope: `projects:write`

Switches sprints, estimation and standups on or off, as the project's Features settings do (a Team project's admins; an Organisation project has only standups here, its board decides the rest). Sprints need the Backlog view. The project's views are read in features.views.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB), an old key, or its id. [1 to 60 characters]

### Body

- `sprints` (boolean)
- `estimation` (string) [one of: off, story_points, time]
- `standups` (boolean)

### Request

```sh
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/projects/{project}/features" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "sprints": true,
  "estimation": "off",
  "standups": true
}'
```

### Answer: 200

```json
{
  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "key": "WEB",
  "name": "Website",
  "kind": "organisation",
  "state": "active",
  "family": "software",
  "lead": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah",
    "former": false
  },
  "category": {
    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
    "name": "Customer work"
  },
  "can_administer": true,
  "description": "The public website.",
  "url": "https://example.com",
  "icon": "rocket",
  "template": "scrum",
  "default_assignee": "unassigned",
  "features": {
    "sprints": true,
    "estimation": "story_points",
    "standups": false,
    "views": [
      {
        "kind": "board",
        "name": "Board",
        "is_default": true
      },
      {
        "kind": "backlog",
        "name": "Backlog",
        "is_default": false
      }
    ]
  },
  "docs_space": null,
  "my_roles": [
    "Administrator"
  ],
  "my_permissions": [
    "administer_project",
    "browse_project",
    "create_tasks"
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "archived_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Archive a project

`POST /orgs/{org}/projects/{project}/archive`

Scope: `projects:write`

Archives an active project (organisation owners and admins): it stays readable and its tasks can't be changed until it is restored.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB), an old key, or its id. [1 to 60 characters]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/projects/{project}/archive" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "key": "WEB",
  "name": "Website",
  "kind": "organisation",
  "state": "archived",
  "family": "software",
  "lead": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah",
    "former": false
  },
  "category": {
    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
    "name": "Customer work"
  },
  "can_administer": true,
  "description": "The public website.",
  "url": "https://example.com",
  "icon": "rocket",
  "template": "scrum",
  "default_assignee": "unassigned",
  "features": {
    "sprints": true,
    "estimation": "story_points",
    "standups": false,
    "views": [
      {
        "kind": "board",
        "name": "Board",
        "is_default": true
      },
      {
        "kind": "backlog",
        "name": "Backlog",
        "is_default": false
      }
    ]
  },
  "docs_space": null,
  "my_roles": [
    "Administrator"
  ],
  "my_permissions": [
    "administer_project",
    "browse_project",
    "create_tasks"
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "archived_at": "2026-12-02T10:00:00.000Z"
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Move a project to the trash

`POST /orgs/{org}/projects/{project}/trash`

Scope: `projects:write`

Moves a project to the trash (organisation owners and admins; a Team project's admins too). It and its tasks are hidden from everyone; organisation admins restore it within the trash's days, then it is deleted.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB), an old key, or its id. [1 to 60 characters]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/projects/{project}/trash" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 204

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Restore a project

`POST /orgs/{org}/projects/{project}/restore`

Scope: `projects:write`

Brings a project back from the archive or the trash (organisation owners and admins). A trashed project is named by its id or key (the trash lists them).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `project` (string, required): The project's key (WEB), an old key, or its id. [1 to 60 characters]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/projects/{project}/restore" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "key": "WEB",
  "name": "Website",
  "kind": "organisation",
  "state": "active",
  "family": "software",
  "lead": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah",
    "former": false
  },
  "category": {
    "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
    "name": "Customer work"
  },
  "can_administer": true,
  "description": "The public website.",
  "url": "https://example.com",
  "icon": "rocket",
  "template": "scrum",
  "default_assignee": "unassigned",
  "features": {
    "sprints": true,
    "estimation": "story_points",
    "standups": false,
    "views": [
      {
        "kind": "board",
        "name": "Board",
        "is_default": true
      },
      {
        "kind": "backlog",
        "name": "Backlog",
        "is_default": false
      }
    ]
  },
  "docs_space": null,
  "my_roles": [
    "Administrator"
  ],
  "my_permissions": [
    "administer_project",
    "browse_project",
    "create_tasks"
  ],
  "created_at": "2026-11-17T09:30:00.000Z",
  "archived_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## List the projects in the trash

`GET /orgs/{org}/project-trash`

Scope: `projects:read`

The organisation's trashed projects, newest first, with when each is deleted for good (organisation owners and admins; anyone else gets 404, as the trash page is hidden from them).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Query parameters

- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]
- `count` (string): true adds total, the number of items in the whole list. [one of: true, false]
- `kind` (string): team: a Team project with its own roles; organisation: an Organisation project on the organisation's schemes. [one of: team, organisation]

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/project-trash" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
      "key": "BIN",
      "name": "Retired intranet",
      "kind": "team",
      "trashed_at": "2026-11-22T10:00:00.000Z",
      "trashed_by": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah"
      },
      "deleted_at": "2027-01-21T10:00:00.000Z"
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## List project categories

`GET /orgs/{org}/project-categories`

Scope: `projects:read`

The organisation's project categories, by name. Owners and admins also get each one's description and how many projects have it.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/project-categories" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
      "name": "Customer work",
      "description": "Projects for clients.",
      "projects": 3
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Create a project category

`POST /orgs/{org}/project-categories`

Scope: `projects:write`

Adds a project category (organisation owners and admins; anyone else gets 404, as the categories page is hidden from them).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Headers

- `Idempotency-Key` (string): A unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422. [1 to 200 characters]

### Body

- `name` (string, required) [at most 60 characters]
- `description` (string) [at most 500 characters]

### Request

```sh
curl -X POST "https://projqo.example/api/v1/orgs/{org}/project-categories" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": "string"
}'
```

### Answer: 201

```json
{
  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
  "name": "Customer work",
  "description": "Projects for clients.",
  "projects": 3
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 422 `idempotency_key_reused`: idempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Get a project category

`GET /orgs/{org}/project-categories/{category}`

Scope: `projects:read`

One project category.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `category` (string (uuid), required)

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/project-categories/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
  "name": "Customer work",
  "description": "Projects for clients.",
  "projects": 3
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Update a project category

`PATCH /orgs/{org}/project-categories/{category}`

Scope: `projects:write`

Renames a project category or changes its description (organisation owners and admins).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `category` (string (uuid), required)

### Body

- `name` (string) [at most 60 characters]
- `description` (string) [at most 500 characters]

### Request

```sh
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/project-categories/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": "string"
}'
```

### Answer: 200

```json
{
  "id": "6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9d",
  "name": "Customer work",
  "description": "Projects for clients.",
  "projects": 3
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 409 `conflict`: conflict: The thing changed since it was read, or the change clashes with its state.
- 413 `too_large`: too_large: The body or a file is larger than allowed.
- 415 `unsupported_media_type`: unsupported_media_type: The body isn't JSON.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Delete a project category

`DELETE /orgs/{org}/project-categories/{category}`

Scope: `projects:write`

Deletes a project category (organisation owners and admins); its projects keep going without one.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `category` (string (uuid), required)

### Request

```sh
curl -X DELETE "https://projqo.example/api/v1/orgs/{org}/project-categories/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 204

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).
