Auditmark

List my corrective actions

GET
/corrective-actions/mine

The inspector's corrective actions.

  • scope=assignee (default): only actions assigned to the caller (legacy behaviour).
  • scope=inspections: EVERY action on an inspection the caller participates in, including those routed to other people — so the field app can show routed actions (view-only) with an assigned-to-me / routed / all filter. Scoping is via the participants join; RLS already lets an internal caller read their org's actions, so no policy change is involved.

This is a WORK QUEUE, so draft actions are excluded under both scopes: a draft is an inspector's in-progress capture that nobody is meant to act on until the inspection completes and the promotion trigger activates it. Inspection-scoped readers (GET /inspections/{id}/corrective-actions, the report payload) still show drafts.

The assignee is resolved through the shared ca_assignee_display() lateral (member or external).

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Query Parameters

scope?Scope

Response Body

application/json

application/json

curl -X GET "https://api.auditmark.io/v1/corrective-actions/mine"
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "priority": "string",    "status": "string",    "due_date": "string",    "resolution_notes": "string",    "finding_id": "feebf65a-2eaa-4fae-aab2-772450efdffe",    "created_by_user_id": "209f54c4-4c33-43bc-9c6a-ef4c65ad7473",    "finding_title": "string",    "inspection_id": "c9b5b83c-f311-4a73-99d1-5e571dd2460c",    "assignee_user_id": "e942d24d-8cee-4fa2-bf68-164509e32e2f",    "assignee_kind": "string",    "assignee_name": "string",    "label_id": "03e7493c-608b-4c34-83b8-041808788ef3",    "label_name": "string"  }]
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}