Skip to content

Product documentation

Hooks

Actions/Hooks — tenant-configured webhooks into the auth pipeline (register, list, update, delete; secret shown once on create).

Hooks

Actions/Hooks — tenant-configured webhooks into the auth pipeline (register, list, update, delete; secret shown once on create).

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
GET/api/v1/hooksHooks Listtenant:hooks.read
POST/api/v1/hooksHooks Createtenant:hooks.write
GET/api/v1/hooks/{id}Hooks Gettenant:hooks.read
PATCH/api/v1/hooks/{id}Hooks Patchtenant:hooks.write
DELETE/api/v1/hooks/{id}Hooks Deletetenant:hooks.write
GET/api/v1/hooks/{id}/deliveriesHooks Deliveriestenant:hooks.read
GET/api/v1/hooks/{id}/jwksHooks Jwksbearer, no extra scope
POST/api/v1/hooks/{id}/signing/rotateHooks Rotate Signingtenant:hooks.write
GET/api/v1/hooks/{id}/signing/stateHooks Signing Statetenant:hooks.read
POST/api/v1/hooks/{id}/testHooks Testtenant:hooks.write

Operation details

GET /api/v1/hooks

Hooks List

  • Operation ID: hooksList
  • Required scopes: tenant:hooks.read

Parameters:

NameInRequiredTypeDescription
limitquerynointeger
cursorquerynostring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

POST /api/v1/hooks

Hooks Create

  • Operation ID: hooksCreate
  • Required scopes: tenant:hooks.write

Parameters:

NameInRequiredTypeDescription
Idempotency-Keyheadernostring

Request body (required): application/jsonCreateHookRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/hooks/{id}

Hooks Get

  • Operation ID: hooksGet
  • Required scopes: tenant:hooks.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

PATCH /api/v1/hooks/{id}

Hooks Patch

  • Operation ID: hooksPatch
  • Required scopes: tenant:hooks.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Request body (required): application/jsonUpdateHookRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

DELETE /api/v1/hooks/{id}

Hooks Delete

  • Operation ID: hooksDelete
  • Required scopes: tenant:hooks.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/hooks/{id}/deliveries

Hooks Deliveries

  • Operation ID: hooksDeliveries
  • Required scopes: tenant:hooks.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring
limitquerynointeger
cursorquerynostring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/hooks/{id}/jwks

Hooks Jwks

  • Operation ID: hooksJwks
  • Required scopes: bearer, no extra scope

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKstring
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

POST /api/v1/hooks/{id}/signing/rotate

Hooks Rotate Signing

  • Operation ID: hooksRotateSigning
  • Required scopes: tenant:hooks.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Request body: application/jsonRotateHookSigningRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/hooks/{id}/signing/state

Hooks Signing State

  • Operation ID: hooksSigningState
  • Required scopes: tenant:hooks.read

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

POST /api/v1/hooks/{id}/test

Hooks Test

  • Operation ID: hooksTest
  • Required scopes: tenant:hooks.write

Parameters:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)