Hanzo AI
OpenapiO11y

Rotate keys

Rotates a project's DSN key — bumping its rotation watermark so keys below it stop verifying — and returns the project with its new DSN.

POST /v1/o11y/sentinel/projects/{id}/keys/rotate

Addresshttps://api.hanzo.ai/v1/o11y/sentinel/projects/{id}/keys/rotate
MethodPOST
Operationpost_o11y_sentinel_projects_by_id_keys_rotate
AuthAuthorization: Bearer $HANZO_API_KEY

Rotates a project's DSN key — bumping its rotation watermark so keys below it stop verifying — and returns the project with its new DSN.

Callers need the editor role; the runtime's own gate enforces it.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the project id.

Response

StatusBodyMeaning
200o11y.O11ySentryProjectOutok

200 body — 10 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11ySentryProject—
data.createdAtbodystring (date-time)—CreatedAt is when the project was created.
data.dsnbodystring—DSN is the project's freshly-derived ingest DSN.
data.idbodystring—ID is the project id.
data.namebodystring—Name is the project's display name.
data.platformbodystring—Platform is the reporting runtime, e.g.
data.slugbodystring—Slug is the project's short name.
data.statusbodystring—Status is the project's lifecycle state: active or disabled.
data.updatedAtbodystring (date-time)—UpdatedAt is when the project last changed.
statusbodystring—Status is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y sentinel projects keys rotate <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page