DOCS

API Reference

Self-hosted application programming interface (API) routes and their authentication models.

All SURADAR API surfaces are self-hosted. Glyphzero does not run a hosted API. The base URL is wherever the customer runs the service.

suradar-pdp

MethodPathPurposeAuth
POST/v1/authorizeTool authorization decisionMonitor bearer token configured in the service, plus a verified delegation chain
GET/healthzLivenessNone
GET/readyzReadinessNone
GET/metricsMetricsNone
POST/v1/fga/checkRelationship check, only when the fga config section is enabledMonitor bearer token

Management API

These routes are available only when management is enabled in config. Each bearer credential is bound to one organization, with role-based grants.

MethodPathPurposeAuth
POST/api/v1/zones/{zone}/{kind}Create an objectOrganization-bound bearer credential with role-based grants
GET/api/v1/zones/{zone}/{kind}List objectsOrganization-bound bearer credential with role-based grants
GET/api/v1/objects/{id}Read an objectOrganization-bound bearer credential with role-based grants
PATCH/api/v1/objects/{id}Update an objectOrganization-bound bearer credential with role-based grants
DELETE/api/v1/objects/{id}Delete an objectOrganization-bound bearer credential with role-based grants

Optional server section

The optional server section serves audit and approval routes under /api/v1/ over the decisions the binary recorded.

Go library server routes

An integrator mounts these routes by embedding suradar/server.

Admin API

MethodPathPurposeAuth
GET/api/v1/admin/agentsList agentsAdmin API key, bearer
POST/api/v1/admin/agentsCreate an agentAdmin API key, bearer
GET/api/v1/admin/agents/{id}Read an agentAdmin API key, bearer
PATCH/api/v1/admin/agents/{id}Update an agentAdmin API key, bearer
DELETE/api/v1/admin/agents/{id}Delete an agentAdmin API key, bearer
POST/api/v1/admin/agents/{id}/suspendSuspend an agentAdmin API key, bearer
POST/api/v1/admin/agents/{id}/reactivateReactivate an agentAdmin API key, bearer
GET/api/v1/admin/policiesList policiesAdmin API key, bearer
GET/api/v1/admin/policies/{id}/versionsList policy versionsAdmin API key, bearer
POST/api/v1/admin/policies/{id}/versionsCreate a policy versionAdmin API key, bearer
POST/api/v1/admin/policies/{id}/versions/{vid}/activateActivate a policy versionAdmin API key, bearer
POST/api/v1/admin/policies/{id}/versions/{vid}/archiveArchive a policy versionAdmin API key, bearer
GET/api/v1/admin/auditQuery audit recordsAdmin API key, bearer
GET/api/v1/admin/audit/statsAudit statisticsAdmin API key, bearer
GET/api/v1/admin/usageUsageAdmin API key, bearer
GET/api/v1/admin/usage/historyUsage historyAdmin API key, bearer
GET/api/v1/admin/healthHealthAdmin API key, bearer

Approvals

MethodPathPurposeAuth
GET/api/v1/approvals/pendingList pending approvalsAdmin key or tenant key
POST/api/v1/approvals/{id}/decideDecide an approvalAdmin key or tenant key

Tenant routes

Evidence routes need the transparency layer enabled.

MethodPathPurposeAuth
GET/api/v1/audit/eventsTenant audit eventsTenant key
GET/api/v1/evidence/checkpointEvidence checkpointTenant key, or admin key when tenant auth is not configured
GET/api/v1/evidence/bundleExport a verifiable evidence bundleTenant key, or admin key when tenant auth is not configured
POST/api/v1/evidence/bundleExport a verifiable evidence bundleTenant key, or admin key when tenant auth is not configured
GET/api/v1/rights/explanations/{logID}/{index}Read an explanationTenant key
POST/api/v1/rights/contestsSubmit a contestTenant key
GET/api/v1/rights/subjects/{subject}/exportExport subject dataTenant key

Agent routes

MethodPathPurposeAuth
GET/api/v1/usageUsageSigned agent requests through the L1 to L5 stack

Unauthenticated routes

MethodPathPurposeAuth
GET/healthzHealthNone
POST/registerDynamic client registration, when configuredNone
GET/register/{id}Read dynamic client registration, when configuredNone

Errors

Admin API errors return a JavaScript Object Notation (JSON) object containing an error object with code and message fields.

Request signing and attestation formats are not published here.