Hanzo
OpenapiO11y

Creates a Sentry project under the caller's org and returns it, DSN included.

Creates a Sentry project under the caller's org and returns it, DSN included.

POST /v1/o11y/sentinel/projects

Addresshttps://api.hanzo.ai/v1/o11y/sentinel/projects
MethodPOST
Operationpost_o11y_sentinel_projects
AuthAuthorization: Bearer $HANZO_API_KEY

Creates a Sentry project under the caller's org and returns it, DSN included. Only the name, and optionally a slug and platform, are the caller's to set; the org, id and key are server-assigned.

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

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
namebodystringyesName is the project's display name.
platformbodystringPlatform is the reporting runtime, e.g.
slugbodystringSlug is the project's short name.

Response

StatusBodyMeaning
200o11y.O11ySentryProjectOutok

200 body — 10 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11ySentryProject
data.createdAtbodystring (date-time)CreatedAt is when the project was created.
data.dsnbodystringDSN is the project's freshly-derived ingest DSN.
data.idbodystringID is the project id.
data.namebodystringName is the project's display name.
data.platformbodystringPlatform is the reporting runtime, e.g.
data.slugbodystringSlug is the project's short name.
data.statusbodystringStatus is the project's lifecycle state: active or disabled.
data.updatedAtbodystring (date-time)UpdatedAt is when the project last changed.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page