Skip to content

List workspace workflow hooks ​

GET/api/v2/workspaces/{slug}/workflows/{workflow_id}/state-transitions/{transition_id}/hooks/

Return the hooks on one transition of a catalog workflow as a paginated list, enabled and disabled alike. Deleted hooks aren't listed.

Rows sort by execution_order by default. Each phase numbers its hooks from 1, so filter by phase to read one phase in run order.

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.

workflow_id:requiredstring (uuid)

The catalog workflow the transition belongs to.

transition_id:requiredstring (uuid)

The transition the hooks run on. It must belong to the workflow in the path, or the request returns 404.

Query parameters ​

Filters combine with AND.

phase:optionalstring

Return only pre or only post hooks. Any other value returns 400 invalid_request.

handler_name:optionalstring

Return only hooks with this handler, run_script or send_webhook. Plane doesn't validate the value, so an unknown value returns an empty list.

is_enabled:optionalboolean

Return only enabled (true) or only disabled (false) hooks.

Ordering ​

order_by:optionalstring

Field to sort by. Prefix with - for descending.

  • execution_order, -execution_order: run order within each phase. execution_order is the default.
  • created_at, -created_at
  • id, -id

Only created_at and id are cursor-eligible. The cursor path rejects the default execution_order ordering with 400 ordering_not_cursor_eligible, so pair paginate=cursor with order_by=created_at.

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. Maximum 10000. 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: config, created_at, execution_order, handler_name, id, is_enabled, phase, project_id, updated_at, workflow_transition_id.

See Sparse fields.

Scopes ​

workspaces.workflows:read

Errors ​

StatusCodeCause
400invalid_requestAn unknown name in fields, or a phase other than pre or post.
400ordering_not_cursor_eligiblepaginate=cursor with an order_by that isn't cursor-eligible, including the default.
401unauthorizedMissing or invalid credentials.
402payment_requiredThe Workflows feature isn't on your plan, or is turned off.
403forbiddenYour role or token scope can't view workspace workflows.
404not_foundNo such workflow in this workspace's catalog, or no such transition in it.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409states_managed_at_projectThe workspace doesn't have governance turned on. Use the project's workflows instead.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
List workspace workflow hooks
bash
curl -X GET \
  "https://api.plane.so/api/v2/workspaces/my-team/workflows/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/state-transitions/d7a3f5c9-0b2e-4d81-b6f4-9e1c3a5d7b20/hooks/?phase=post" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response200
json
{
  "data": [
    {
      "id": "e4b7c9a2-3d1f-4e68-8a52-9f0c6b3d7e15",
      "workflow_transition_id": "d7a3f5c9-0b2e-4d81-b6f4-9e1c3a5d7b20",
      "project_id": null,
      "phase": "post",
      "handler_name": "send_webhook",
      "is_enabled": true,
      "execution_order": 1,
      "config": {
        "url": "https://hooks.example.com/plane",
        "headers": [
          {
            "key": "X-Team",
            "value": "platform",
            "is_secret": false
          }
        ]
      },
      "created_at": "2026-01-15T11:04:52.660219Z",
      "updated_at": "2026-01-15T11:04:52.660219Z"
    }
  ],
  "next": null,
  "previous": null,
  "total_count": 1,
  "pagination": {
    "style": "offset"
  }
}