Skip to main content
GET
/
enforcement
/
jobs
/
{jobID}
/
results
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.getResults("9b2f4a1e-5c3d-4e2a-8f1b-2c963f66afa6");
console.log(result);
[
  {
    "id": "5c1e9a37-6b48-42df-90a1-3e8f7c04b2d6",
    "enforcement_job_id": "b8f04d2e-1c93-4a56-8e7f-05a91d6c3b28",
    "compliance_link_id": "e1a7c3f9-45b2-4d68-9c01-72f6b8d34a05",
    "platform_id": "nextdns",
    "status": "pending",
    "rules_applied": 0,
    "rules_skipped": 0,
    "rules_failed": 0,
    "error_message": null,
    "details": {},
    "started_at": "2026-06-30T09:15:44Z",
    "completed_at": "2026-06-30T09:15:52Z"
  }
]

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

Per-platform enforcement results

id
string<uuid>

Unique identifier for this resource.

enforcement_job_id
string<uuid>

Unique identifier (UUID) for the related resource.

Unique identifier (UUID) for the related resource.

platform_id
string

Identifier of the associated platform.

status
enum<string>

Current lifecycle state of the resource.

Available options:
pending,
running,
completed,
failed,
partial
rules_applied
integer

Number of rules successfully applied to the target during this run.

rules_skipped
integer

Number of rules skipped because the target does not support that category.

rules_failed
integer

Number of rules that returned an error while being applied.

error_message
string | null

Human-readable error detail when the operation failed; null on success.

details
object

Free-form provider response payload captured for debugging.

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.