Hooks
hooks
Methods
post/hooks
Create a new hook.
Delete A Hook ->
delete/hooks/{id}
Delete a hook.
patch/hooks/{id}
Update an existing hook.
Domain types
Hook = { id, dependencies, enabled, 3 more... }
Hooks
Secrets
hooks.secrets
Methods
Add Hook Secrets ->
post/hooks/{id}/secrets
Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.
Delete Hook Secrets ->
delete/hooks/{id}/secrets
Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete.
Get Hook Secrets -> Record<string, unknown>
get/hooks/{id}/secrets
Retrieve a hook's secrets by the ID of the hook.
Update Hook Secrets ->
patch/hooks/{id}/secrets
Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret.