Skip to content

List workflow pins ​

GET/api/v2/workspaces/{slug}/work-item-types/{type_id}/governance/pins/

Return the pins on one work item type as a paginated list. Each pin fixes the workflow a project uses for the type, so the projects listed here can't change their own pick. See Pins.

Under required mode, the list is empty because mandating a workflow deletes every pin for the type.

Path parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

type_id:requiredstring (uuid)

The work item type whose pins you want. It can be any type in the workspace.

Ordering ​

order_by:optionalstring

Field to sort by. Prefix with - for descending. Defaults to -created_at, newest pin first.

  • created_at, -created_at
  • id, -id

Pagination ​

per_page:optionalinteger

Page size. Defaults to 50, maximum 200.

offset:optionalinteger

Number of rows to skip from the start of the result set. Use the next value from the response instead of computing offsets yourself.

paginate:optionalstring

Set to cursor to switch to the keyset envelope, which skips the COUNT query and returns next_cursor and has_more instead of next and total_count. Leave it out to get the default offset envelope.

count:optionalboolean

Defaults to true. Set to false to skip the COUNT(*) behind total_count. The field is then omitted from the response.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return on each row. Fields you don't request are left out of the response instead of coming back as null, so a missing key means you didn't ask for it and null means the value is null. id is always included, whether or not you name it.

Pass all to get every requestable field. An unknown field name returns 400 with the list of valid names and the closest match, so a typo is caught instead of being silently ignored.

Requestable here: created_at, id, project_id, updated_at, work_item_type_id, workflow_id.

See Sparse fields.

Scopes ​

workspaces.workflows:read

Errors ​

StatusCodeCause
401unauthorizedMissing or invalid credentials.
402payment_requiredThe Workspace governance feature isn't on your plan, or is turned off.
403forbiddenYour role or token scope can't view workspace workflows.
404not_foundNo such work item type in this workspace.
406not_acceptableThe Accept header asks for a representation the API can't produce.
429rate_limitedThrottled. Honor the Retry-After header before retrying.

Readable in any workspace

The pin reads don't check whether the workspace has governance turned on. In an ungoverned workspace, they return whatever pins exist, which is normally none.

List workflow pins
bash
curl -X GET \
  "https://api.plane.so/api/v2/workspaces/my-team/work-item-types/d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240/governance/pins/?per_page=50" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response200
json
{
  "data": [
    {
      "id": "0b6d3f92-7e15-4a48-9c27-5f8e1a4d6b30",
      "project_id": "4af68566-94a4-4eb3-94aa-50dc9427067b",
      "workflow_id": "a1f4c7e2-3b98-4d61-8e25-6c0b9d7f3a14",
      "work_item_type_id": "d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240",
      "created_at": "2026-01-14T09:22:41.478363Z",
      "updated_at": "2026-01-14T09:22:41.478363Z"
    },
    {
      "id": "6f2a8c41-9d37-4b05-a1e8-3c7b2d9f5e16",
      "project_id": "7c19e5b3-2d84-4f6a-b0e7-93a1c5d8f246",
      "workflow_id": "a1f4c7e2-3b98-4d61-8e25-6c0b9d7f3a14",
      "work_item_type_id": "d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240",
      "created_at": "2026-01-14T09:22:41.478363Z",
      "updated_at": "2026-01-14T09:22:41.478363Z"
    }
  ],
  "next": null,
  "previous": null,
  "total_count": 2,
  "pagination": {
    "style": "offset"
  }
}
Response200
json
{
  "data": [
    {
      "id": "0b6d3f92-7e15-4a48-9c27-5f8e1a4d6b30",
      "project_id": "4af68566-94a4-4eb3-94aa-50dc9427067b",
      "workflow_id": "a1f4c7e2-3b98-4d61-8e25-6c0b9d7f3a14",
      "work_item_type_id": "d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240",
      "created_at": "2026-01-14T09:22:41.478363Z",
      "updated_at": "2026-01-14T09:22:41.478363Z"
    }
  ],
  "next_cursor": "b3A9MTcx",
  "has_more": true,
  "pagination": {
    "style": "cursor"
  }
}