Connect Sentry, or change the connection
Checks the address, the organization and the auth token with Sentry before keeping anything and keeps the token in the secret store; the token is write-only and is never returned. `baseUrl` is https://sentry.io or a self-hosted address that must be https and cannot name a private, loopback or link-l
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
Idempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
name?stringShown on the page; the organization's slug when left out.
1 <= length <= 100baseUrl?stringhttps://sentry.io, or the https address of a self-hosted Sentry. It cannot name a private, loopback or link-local address. Left out, it is https://sentry.io.
length <= 300organization*stringThe organization's slug in Sentry's address, such as acme.
1 <= length <= 100authToken?stringAn auth token with org:read, project:read, project:releases and event:read. Required the first time; later an empty one keeps the token that is there. Never returned.
The connection.
application/json- response
name*stringbaseUrl*stringorganization*stringwebhookPath*stringThe address Sentry is told to call, such as /api/v1/webhooks/sentry/<id>.
signingToken?stringThe client secret webhooks are signed under. Shown once, when the connection is first made.
connectedAt*stringdate-timecurl -X PUT 'https://wardn.example.com/api/v1/sentry' \ -H 'Content-Type: application/json' \ -d '{ "organization": "string"}'{ "name": "string", "baseUrl": "string", "organization": "string", "webhookPath": "string", "signingToken": "string", "connectedAt": "2019-08-24T14:15:22Z"}Disconnect Sentry DELETE
Removes the connection, its webhook address, its credentials and what was mapped. Incidents already opened stay and releases already made in Sentry stay there. Disconnecting what is not connected changes nothing. Needs `integration:manage`.
Rotate the Sentry signing token POST
Makes a new signing token and returns it once. The old one stops working at once, so the new one must be set as the client secret of the integration in Sentry. Needs `integration:manage`.