Skip to content

List actions

GET/v1/actionsKey scope read

Lists the project's enabled actions in their display order: the built-in allow, reject, block_author, suspend_author and enable_author, and the actions defined in the dashboard. The list is not paginated.

Needs a key with the read scope. Authentication

curl https://api.useinfrared.com/v1/actions \
  -H "Authorization: Bearer $INFRARED_KEY"
200 OKResponse
{
  "object": "list",
  "data": [
    {
      "object": "action",
      "id": "act_1kNXP63UqwLlleKsc2xfgr",
      "project_id": "prj_0TBAgHGtdMketrbltGFHuk",
      "key": "allow",
      "name": "Allow",
      "description": null,
      "target": "content",
      "queue_behavior": "resolve",
      "visible_in_dashboard": true,
      "accepts_value": false,
      "value_schema": null,
      "built_in": true,
      "enabled": true,
      "position": 0,
      "created_at": "2026-10-08T08:44:18.573Z",
      "updated_at": "2026-10-08T08:44:18.573Z"
    },
    {
      "object": "action",
      "id": "act_2u0zVThFPIzc4BbYyDPBTz",
      "project_id": "prj_0TBAgHGtdMketrbltGFHuk",
      "key": "reject",
      "name": "Reject",
      "description": null,
      "target": "content",
      "queue_behavior": "resolve",
      "visible_in_dashboard": true,
      "accepts_value": false,
      "value_schema": null,
      "built_in": true,
      "enabled": true,
      "position": 1,
      "created_at": "2026-10-08T08:44:18.844Z",
      "updated_at": "2026-10-08T08:44:18.844Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Returns

A list object that holds every enabled action. has_more is always false.

Every endpoint can also answer the errors any request can meet: a missing key, a rate limit, a malformed body. Errors

Something missing or unclear on this page? Write to support@useinfrared.com.