Integrations
Preview

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

PUT
/sentry
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Idempotency-Key?string

Makes 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.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
name?string

Shown on the page; the organization's slug when left out.

Length1 <= length <= 100
baseUrl?string

https://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.

Lengthlength <= 300
organization*string

The organization's slug in Sentry's address, such as acme.

Length1 <= length <= 100
authToken?string

An 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.

Response Body

The connection.

application/json
  1. response
name*string
baseUrl*string
organization*string
webhookPath*string

The address Sentry is told to call, such as /api/v1/webhooks/sentry/<id>.

signingToken?string

The client secret webhooks are signed under. Shown once, when the connection is first made.

connectedAt*string
Formatdate-time
Example Request
curl -X PUT 'https://wardn.example.com/api/v1/sentry' \  -H 'Content-Type: application/json' \  -d '{  "organization": "string"}'
Example Response
{  "name": "string",  "baseUrl": "string",  "organization": "string",  "webhookPath": "string",  "signingToken": "string",  "connectedAt": "2019-08-24T14:15:22Z"}