Undo a revocation

Sponsor token required. Reinstates a previously revoked principal within the sponsor’s tenant — the principal can check again and the tenant’s policy applies normally. Reinstating a principal that was never revoked is harmless (it simply ensures the principal is not revoked).

Authentication

AuthorizationBearer
Your Writ API key (writ_...) as an Authorization Bearer header. The sponsor token (writ_sp_...) is a separate credential used only for grants, revokes, and reinstate — it goes in the same Authorization header on those endpoints. In the Fern docs playground, paste the key here; it is stored in this browser only.

Headers

AuthorizationstringRequired

Bearer <sponsor token>.

Request

This endpoint expects an object.
sponsorIdstringRequired
agentIdstringRequired

Response

Principal reinstated.

Errors

400
Bad Request Error
401
Unauthorized Error