PgBeam Docs
Platform

Revoke a self-host enrollment

DELETE
/v1/organizations/{org_id}/self-host-enrollments/{enrollment_id}

Revokes an enrollment so its token can no longer authenticate a proxy. Connected proxies keep their last-known config until they reconnect.

Authorization

AuthorizationBearer <token>

JWT issued by Better Auth. Verified via JWKS.

In: header

Path Parameters

org_id*string

Unique organization identifier.

Match^[a-zA-Z0-9_.-]+$
enrollment_id*string

Unique enrollment identifier.

Match^[a-zA-Z0-9_.-]+$

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/organizations/org_abc123/self-host-enrollments/she_01h455vb4pex5vsknk084sn02q"
Empty
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}