Webhooks
Webhooks are a way to receive events from Infinity Bot List in real time. You can use webhooks to receive events such as new votes, new reviews, and more.
{target_type}/{target_id}/webhooksGet Webhooks
Gets a list of webhooks of a specific entity (excluding the secret due to security concerns). Requires the Get Webhooks permission
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Bot-Auth<token>
Requires a bot token. Should be prefixed with Bot in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Path Parameters
target_typeRequiredstring
The entity type to return webhooks for.
target_idRequiredstring
The target ID to return webhooks for
Success
{target_type}/{target_id}/webhooksCreate Webhook
Creates a new webhook for an entity. Returns 204 on success. Requires Create Webhooks permission
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Bot-Auth<token>
Requires a bot token. Should be prefixed with Bot in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Request Body
application/jsonRequiredevent_whitelistarray<string>
The events that are whitelisted for this webhook. Note that if unset, all events are whitelisted.
hmac_authboolean
Recommended auth mode: plain JSON body, signed with HMAC-SHA256 in the X-Webhook-Signature header (same shape as GitHub/Stripe webhooks).
namestring
The name of the webhook.
secretstring
The secret of the webhook, only needed for custom (non-discord) webhooks
simple_authboolean
Legacy simple auth: plain JSON body, raw secret in the Authorization header. Prefer hmac_auth for new webhooks. Ignored if hmac_auth is set.
urlstring
The URL of the webhook.
Path Parameters
target_typeRequiredstring
The target type of the tntity
target_idRequiredstring
The target ID of the entity
Success
{target_type}/{target_id}/webhooks/{webhook_id}Update Webhook
Updates an existing webhook on an entity. Returns 204 on success. Requires Edit Webhooks permission
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Bot-Auth<token>
Requires a bot token. Should be prefixed with Bot in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Request Body
application/jsonRequiredevent_whitelistarray<string>
The events that are whitelisted for this webhook. Note that if unset, all events are whitelisted.
hmac_authboolean
Recommended auth mode: plain JSON body, signed with HMAC-SHA256 in the X-Webhook-Signature header (same shape as GitHub/Stripe webhooks).
namestring
The name of the webhook.
secretstring
The secret of the webhook, only needed for custom (non-discord) webhooks
simple_authboolean
Legacy simple auth: plain JSON body, raw secret in the Authorization header. Prefer hmac_auth for new webhooks. Ignored if hmac_auth is set.
urlstring
The URL of the webhook.
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
webhook_idRequiredstring
The ID of the webhook to update
Success
{target_type}/{target_id}/webhooks/{webhook_id}Delete Webhook
Updates an existing webhook on an entity. Returns 204 on success. Requires Edit Webhooks permission
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Bot-Auth<token>
Requires a bot token. Should be prefixed with Bot in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
webhook_idRequiredstring
The ID of the webhook to delete
Success
{target_type}/{target_id}/webhooks/logsGet Webhook Logs
Gets webhook logs of a specific entity. Paginated to 10 at a time. Requires authentication
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Bot-Auth<token>
Requires a bot token. Should be prefixed with Bot in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Query Parameters
pagestring
The page number
Success
{target_type}/{target_id}/webhooks/testGet Test Webhook Metadata
Responds with the metadata of all webhooks that can currently be tested. Note that this does not require any specific permission
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Query Parameters
eventRequiredstring
The event that is being posted
Success
{target_type}/{target_id}/webhooks/testTest Webhook
Sends a test webhook.
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Bot-Auth<token>
Requires a bot token. Should be prefixed with Bot in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Request Body
application/jsonRequired[key: string]unknown
Path Parameters
target_typeRequiredstring
The target type of the entity
target_idRequiredstring
The target ID of the entity
Query Parameters
eventRequiredstring
The event that is being posted
Success