Skip to main content
GET
/
enforcement
/
jobs
/
{jobID}
SDK (@phosra/sdk)
import { PhosraClient } from "@phosra/sdk";

const phosra = new PhosraClient({
  baseUrl: "https://phosra-api-sandbox-production.up.railway.app/api/v1",
  accessToken: process.env.PHOSRA_API_KEY,
});

const result = await phosra.enforcement.getJob("9b2f4a1e-5c3d-4e2a-8f1b-2c963f66afa6");
console.log(result);
{
  "id": "d4a2a7a9-375e-4c92-950d-214f2ab17262",
  "child_id": "ca02f5d1-fee8-4201-b5ca-fdc8be506e1e",
  "policy_id": "7b3e9c04-2d1a-4f68-9e5b-8c07a1f34d29",
  "trigger_type": "manual",
  "status": "completed",
  "started_at": "2026-07-06T04:27:57.030252Z",
  "completed_at": "2026-07-06T04:27:57.041987Z",
  "created_at": "2026-07-06T04:27:57.030255Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

jobID
string<uuid>
required

Response

Job status

id
string<uuid>

Unique identifier for this resource.

child_id
string<uuid>

Identifier of the child this resource belongs to.

policy_id
string<uuid>

Identifier of the policy this resource belongs to.

trigger_type
enum<string>

What initiated the job (e.g. manual, scheduled, policy_change).

Available options:
manual,
auto,
webhook
status
enum<string>

Current lifecycle state of the resource.

Available options:
pending,
running,
completed,
failed,
partial
started_at
string<date-time> | null

RFC 3339 timestamp of when the job started running.

completed_at
string<date-time> | null

RFC 3339 timestamp of when the job finished.

created_at
string<date-time>

RFC 3339 timestamp of when the resource was created.