> For the complete documentation index, see [llms.txt](https://argos-ci.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://argos-ci.com/docs/api-reference/reference/integrations/webhooks.md). Agents can also search and read this documentation through its [MCP server](https://argos-ci.com/docs/~gitbook/mcp).

# Webhooks

Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed.

## List an account's webhooks

> List the webhooks of an account, newest first. Requires administrator access to the account.

````json
{"openapi":"3.2.0","info":{"title":"Argos API","version":"2.0.0"},"tags":[{"name":"Webhooks","parent":"Integrations","description":"Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed."}],"servers":[{"url":"https://api.argos-ci.com/v2","description":"API Endpoint"}],"security":[{"personalAccessToken":[]},{"oauth2":["account:admin"]}],"components":{"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal Access Token","description":"Authenticate as a **user** with a personal access token.\n\nSend it as a bearer token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <personal-access-token>\n```\n\nPersonal access tokens act on behalf of the user that created them\nand are required by endpoints that perform user actions, such as\nreviewing builds and posting comments."},"oauth2":{"type":"oauth2","description":"Authenticate as a **user** via an OAuth 2.1 access token obtained\nthrough the authorization-code (+ PKCE) flow. Used by the CLI and by\nMCP clients/agents. The token acts on behalf of the authorizing user,\nlimited to the granted scopes and organizations.","flows":{"authorizationCode":{"authorizationUrl":"https://app.argos-ci.com/oauth/authorize","tokenUrl":"https://app.argos-ci.com/oauth/token","refreshUrl":"https://app.argos-ci.com/oauth/token","scopes":{"profile":"Read your Argos profile and the list of teams you belong to.","projects:read":"Read your projects, builds, screenshots, diffs, tests, and analytics.","projects:write":"Create and configure projects and their settings.","builds:write":"Create and upload builds and screenshots.","reviews:write":"Approve, reject, or dismiss build reviews and ignore changes.","comments:read":"Read build comments and threads.","comments:write":"Post, edit, and delete comments, add reactions, and manage subscriptions.","media:read":"Read the images and videos uploaded to your teams.","media:write":"Upload images and videos, and delete the ones already uploaded.","account:admin":"Manage organization settings and members."}}}}},"schemas":{"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri","description":"The endpoint Argos posts events to."},"events":{"type":"array","items":{"type":"string","enum":["build.completed","build.reviewed","deployment.created","deployment.ready"]},"description":"The events the webhook receives."},"projects":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}],"description":"Names of the projects the webhook receives the events of, or `null` for every project of the account, including the ones created later."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","url","events","projects","createdAt"],"additionalProperties":false,"description":"An endpoint Argos posts the events of an account's projects to. Its signing secret is only returned at creation."},"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false,"description":"Error response"}}},"paths":{"/accounts/{accountSlug}/webhooks":{"get":{"operationId":"listAccountWebhooks","summary":"List an account's webhooks","description":"List the webhooks of an account, newest first. Requires administrator access to the account.","tags":["Webhooks"],"parameters":[{"in":"path","name":"accountSlug","schema":{"type":"string","minLength":1,"description":"Slug of the account."},"required":true,"description":"Slug of the account."}],"responses":{"200":{"description":"The account's webhooks","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````

## Create a webhook

> Create a webhook: Argos posts the selected events of the account's projects to its URL, signed with the secret returned once in the response. Requires administrator access to the account.

````json
{"openapi":"3.2.0","info":{"title":"Argos API","version":"2.0.0"},"tags":[{"name":"Webhooks","parent":"Integrations","description":"Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed."}],"servers":[{"url":"https://api.argos-ci.com/v2","description":"API Endpoint"}],"security":[{"personalAccessToken":[]},{"oauth2":["account:admin"]}],"components":{"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal Access Token","description":"Authenticate as a **user** with a personal access token.\n\nSend it as a bearer token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <personal-access-token>\n```\n\nPersonal access tokens act on behalf of the user that created them\nand are required by endpoints that perform user actions, such as\nreviewing builds and posting comments."},"oauth2":{"type":"oauth2","description":"Authenticate as a **user** via an OAuth 2.1 access token obtained\nthrough the authorization-code (+ PKCE) flow. Used by the CLI and by\nMCP clients/agents. The token acts on behalf of the authorizing user,\nlimited to the granted scopes and organizations.","flows":{"authorizationCode":{"authorizationUrl":"https://app.argos-ci.com/oauth/authorize","tokenUrl":"https://app.argos-ci.com/oauth/token","refreshUrl":"https://app.argos-ci.com/oauth/token","scopes":{"profile":"Read your Argos profile and the list of teams you belong to.","projects:read":"Read your projects, builds, screenshots, diffs, tests, and analytics.","projects:write":"Create and configure projects and their settings.","builds:write":"Create and upload builds and screenshots.","reviews:write":"Approve, reject, or dismiss build reviews and ignore changes.","comments:read":"Read build comments and threads.","comments:write":"Post, edit, and delete comments, add reactions, and manage subscriptions.","media:read":"Read the images and videos uploaded to your teams.","media:write":"Upload images and videos, and delete the ones already uploaded.","account:admin":"Manage organization settings and members."}}}}},"schemas":{"CreatedWebhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri","description":"The endpoint Argos posts events to."},"events":{"type":"array","items":{"type":"string","enum":["build.completed","build.reviewed","deployment.created","deployment.ready"]},"description":"The events the webhook receives."},"projects":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}],"description":"Names of the projects the webhook receives the events of, or `null` for every project of the account, including the ones created later."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"secret":{"type":"string","description":"The signing secret (`whsec_…`), to verify the `webhook-signature` header of each request. It is never returned again: save it now."}},"required":["id","url","events","projects","createdAt","secret"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false,"description":"Error response"}}},"paths":{"/accounts/{accountSlug}/webhooks":{"post":{"operationId":"createAccountWebhook","summary":"Create a webhook","description":"Create a webhook: Argos posts the selected events of the account's projects to its URL, signed with the secret returned once in the response. Requires administrator access to the account.","tags":["Webhooks"],"parameters":[{"in":"path","name":"accountSlug","schema":{"type":"string","minLength":1,"description":"Slug of the account."},"required":true,"description":"Slug of the account."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The endpoint to post events to. It must use HTTPS."},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["build.completed","build.reviewed","deployment.created","deployment.ready"]},"description":"The events to receive."},"projects":{"default":null,"description":"Names of the projects to receive the events of. Defaults to `null`: every project of the account, including the ones created later.","anyOf":[{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}]}},"required":["url","events"]}}}},"responses":{"201":{"description":"The created webhook, with its secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedWebhook"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````

## Get a webhook

> Get a webhook of an account. Requires administrator access to the account.

````json
{"openapi":"3.2.0","info":{"title":"Argos API","version":"2.0.0"},"tags":[{"name":"Webhooks","parent":"Integrations","description":"Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed."}],"servers":[{"url":"https://api.argos-ci.com/v2","description":"API Endpoint"}],"security":[{"personalAccessToken":[]},{"oauth2":["account:admin"]}],"components":{"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal Access Token","description":"Authenticate as a **user** with a personal access token.\n\nSend it as a bearer token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <personal-access-token>\n```\n\nPersonal access tokens act on behalf of the user that created them\nand are required by endpoints that perform user actions, such as\nreviewing builds and posting comments."},"oauth2":{"type":"oauth2","description":"Authenticate as a **user** via an OAuth 2.1 access token obtained\nthrough the authorization-code (+ PKCE) flow. Used by the CLI and by\nMCP clients/agents. The token acts on behalf of the authorizing user,\nlimited to the granted scopes and organizations.","flows":{"authorizationCode":{"authorizationUrl":"https://app.argos-ci.com/oauth/authorize","tokenUrl":"https://app.argos-ci.com/oauth/token","refreshUrl":"https://app.argos-ci.com/oauth/token","scopes":{"profile":"Read your Argos profile and the list of teams you belong to.","projects:read":"Read your projects, builds, screenshots, diffs, tests, and analytics.","projects:write":"Create and configure projects and their settings.","builds:write":"Create and upload builds and screenshots.","reviews:write":"Approve, reject, or dismiss build reviews and ignore changes.","comments:read":"Read build comments and threads.","comments:write":"Post, edit, and delete comments, add reactions, and manage subscriptions.","media:read":"Read the images and videos uploaded to your teams.","media:write":"Upload images and videos, and delete the ones already uploaded.","account:admin":"Manage organization settings and members."}}}}},"schemas":{"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri","description":"The endpoint Argos posts events to."},"events":{"type":"array","items":{"type":"string","enum":["build.completed","build.reviewed","deployment.created","deployment.ready"]},"description":"The events the webhook receives."},"projects":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1}},{"type":"null"}],"description":"Names of the projects the webhook receives the events of, or `null` for every project of the account, including the ones created later."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","url","events","projects","createdAt"],"additionalProperties":false,"description":"An endpoint Argos posts the events of an account's projects to. Its signing secret is only returned at creation."},"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false,"description":"Error response"}}},"paths":{"/accounts/{accountSlug}/webhooks/{webhookId}":{"get":{"operationId":"getAccountWebhook","summary":"Get a webhook","description":"Get a webhook of an account. Requires administrator access to the account.","tags":["Webhooks"],"parameters":[{"in":"path","name":"accountSlug","schema":{"type":"string","minLength":1,"description":"Slug of the account."},"required":true,"description":"Slug of the account."},{"in":"path","name":"webhookId","schema":{"type":"string","description":"ID of the webhook."},"required":true,"description":"ID of the webhook."}],"responses":{"200":{"description":"The webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````

## Delete a webhook

> Delete a webhook: Argos stops sending it events, including the deliveries waiting for a retry. Requires administrator access to the account.

````json
{"openapi":"3.2.0","info":{"title":"Argos API","version":"2.0.0"},"tags":[{"name":"Webhooks","parent":"Integrations","description":"Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed."}],"servers":[{"url":"https://api.argos-ci.com/v2","description":"API Endpoint"}],"security":[{"personalAccessToken":[]},{"oauth2":["account:admin"]}],"components":{"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal Access Token","description":"Authenticate as a **user** with a personal access token.\n\nSend it as a bearer token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <personal-access-token>\n```\n\nPersonal access tokens act on behalf of the user that created them\nand are required by endpoints that perform user actions, such as\nreviewing builds and posting comments."},"oauth2":{"type":"oauth2","description":"Authenticate as a **user** via an OAuth 2.1 access token obtained\nthrough the authorization-code (+ PKCE) flow. Used by the CLI and by\nMCP clients/agents. The token acts on behalf of the authorizing user,\nlimited to the granted scopes and organizations.","flows":{"authorizationCode":{"authorizationUrl":"https://app.argos-ci.com/oauth/authorize","tokenUrl":"https://app.argos-ci.com/oauth/token","refreshUrl":"https://app.argos-ci.com/oauth/token","scopes":{"profile":"Read your Argos profile and the list of teams you belong to.","projects:read":"Read your projects, builds, screenshots, diffs, tests, and analytics.","projects:write":"Create and configure projects and their settings.","builds:write":"Create and upload builds and screenshots.","reviews:write":"Approve, reject, or dismiss build reviews and ignore changes.","comments:read":"Read build comments and threads.","comments:write":"Post, edit, and delete comments, add reactions, and manage subscriptions.","media:read":"Read the images and videos uploaded to your teams.","media:write":"Upload images and videos, and delete the ones already uploaded.","account:admin":"Manage organization settings and members."}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false,"description":"Error response"}}},"paths":{"/accounts/{accountSlug}/webhooks/{webhookId}":{"delete":{"operationId":"deleteAccountWebhook","summary":"Delete a webhook","description":"Delete a webhook: Argos stops sending it events, including the deliveries waiting for a retry. Requires administrator access to the account.","tags":["Webhooks"],"parameters":[{"in":"path","name":"accountSlug","schema":{"type":"string","minLength":1,"description":"Slug of the account."},"required":true,"description":"Slug of the account."},{"in":"path","name":"webhookId","schema":{"type":"string","description":"ID of the webhook."},"required":true,"description":"ID of the webhook."}],"responses":{"204":{"description":"Webhook deleted"},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````

## List a webhook's deliveries

> List the deliveries of a webhook, most recent first, to find the ones that failed. Deliveries are kept 7 days. Requires administrator access to the account.

````json
{"openapi":"3.2.0","info":{"title":"Argos API","version":"2.0.0"},"tags":[{"name":"Webhooks","parent":"Integrations","description":"Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed."}],"servers":[{"url":"https://api.argos-ci.com/v2","description":"API Endpoint"}],"security":[{"personalAccessToken":[]},{"oauth2":["account:admin"]}],"components":{"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal Access Token","description":"Authenticate as a **user** with a personal access token.\n\nSend it as a bearer token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <personal-access-token>\n```\n\nPersonal access tokens act on behalf of the user that created them\nand are required by endpoints that perform user actions, such as\nreviewing builds and posting comments."},"oauth2":{"type":"oauth2","description":"Authenticate as a **user** via an OAuth 2.1 access token obtained\nthrough the authorization-code (+ PKCE) flow. Used by the CLI and by\nMCP clients/agents. The token acts on behalf of the authorizing user,\nlimited to the granted scopes and organizations.","flows":{"authorizationCode":{"authorizationUrl":"https://app.argos-ci.com/oauth/authorize","tokenUrl":"https://app.argos-ci.com/oauth/token","refreshUrl":"https://app.argos-ci.com/oauth/token","scopes":{"profile":"Read your Argos profile and the list of teams you belong to.","projects:read":"Read your projects, builds, screenshots, diffs, tests, and analytics.","projects:write":"Create and configure projects and their settings.","builds:write":"Create and upload builds and screenshots.","reviews:write":"Approve, reject, or dismiss build reviews and ignore changes.","comments:read":"Read build comments and threads.","comments:write":"Post, edit, and delete comments, add reactions, and manage subscriptions.","media:read":"Read the images and videos uploaded to your teams.","media:write":"Upload images and videos, and delete the ones already uploaded.","account:admin":"Manage organization settings and members."}}}}},"schemas":{"WebhookDeliveryStatus":{"type":"string","enum":["pending","success","failed"],"description":"`pending` until the endpoint accepts the event or the retries run out, then `success` or `failed`."},"PageInfo":{"type":"object","properties":{"total":{"type":"number","description":"Total number of items"},"page":{"type":"number","description":"Current page number"},"perPage":{"type":"number","description":"Number of items per page"}},"required":["total","page","perPage"],"additionalProperties":false,"description":"Page information"},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/WebhookDeliveryStatus"},"eventId":{"type":"string","description":"The `id` of the event delivered, its `webhook-id` header."},"eventType":{"type":"string","enum":["build.completed","build.reviewed","deployment.created","deployment.ready"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"attemptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When the latest attempt was made."},"responseStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"HTTP status of the latest attempt, `null` when it got no response."},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"How long the latest attempt waited for a response."},"failureReason":{"description":"Why the latest attempt failed, `null` when it succeeded.","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","status","eventId","eventType","attempts","attemptedAt","responseStatus","durationMs","failureReason","createdAt"],"additionalProperties":false,"description":"An event sent to a webhook, across all of its attempts."},"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false,"description":"Error response"}}},"paths":{"/accounts/{accountSlug}/webhooks/{webhookId}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"List a webhook's deliveries","description":"List the deliveries of a webhook, most recent first, to find the ones that failed. Deliveries are kept 7 days. Requires administrator access to the account.","tags":["Webhooks"],"parameters":[{"in":"path","name":"accountSlug","schema":{"type":"string","minLength":1,"description":"Slug of the account."},"required":true,"description":"Slug of the account."},{"in":"path","name":"webhookId","schema":{"type":"string","description":"ID of the webhook."},"required":true,"description":"ID of the webhook."},{"in":"query","name":"perPage","schema":{"description":"Number of items per page (max 100)","type":"string"},"description":"Number of items per page (max 100)"},{"in":"query","name":"page","schema":{"description":"Page number","type":"string"},"description":"Page number"},{"in":"query","name":"status","schema":{"description":"Only the deliveries with this status.","$ref":"#/components/schemas/WebhookDeliveryStatus"},"description":"Only the deliveries with this status."},{"in":"query","name":"eventId","schema":{"description":"Only the deliveries of this event.","type":"string"},"description":"Only the deliveries of this event."}],"responses":{"200":{"description":"The webhook's deliveries","content":{"application/json":{"schema":{"type":"object","properties":{"pageInfo":{"$ref":"#/components/schemas/PageInfo"},"results":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}}},"required":["pageInfo","results"],"additionalProperties":false}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````

## Get a webhook delivery

> Get a delivery of a webhook with the request it sent and the start of the response it got. Requires administrator access to the account.

````json
{"openapi":"3.2.0","info":{"title":"Argos API","version":"2.0.0"},"tags":[{"name":"Webhooks","parent":"Integrations","description":"Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed."}],"servers":[{"url":"https://api.argos-ci.com/v2","description":"API Endpoint"}],"security":[{"personalAccessToken":[]},{"oauth2":["account:admin"]}],"components":{"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal Access Token","description":"Authenticate as a **user** with a personal access token.\n\nSend it as a bearer token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <personal-access-token>\n```\n\nPersonal access tokens act on behalf of the user that created them\nand are required by endpoints that perform user actions, such as\nreviewing builds and posting comments."},"oauth2":{"type":"oauth2","description":"Authenticate as a **user** via an OAuth 2.1 access token obtained\nthrough the authorization-code (+ PKCE) flow. Used by the CLI and by\nMCP clients/agents. The token acts on behalf of the authorizing user,\nlimited to the granted scopes and organizations.","flows":{"authorizationCode":{"authorizationUrl":"https://app.argos-ci.com/oauth/authorize","tokenUrl":"https://app.argos-ci.com/oauth/token","refreshUrl":"https://app.argos-ci.com/oauth/token","scopes":{"profile":"Read your Argos profile and the list of teams you belong to.","projects:read":"Read your projects, builds, screenshots, diffs, tests, and analytics.","projects:write":"Create and configure projects and their settings.","builds:write":"Create and upload builds and screenshots.","reviews:write":"Approve, reject, or dismiss build reviews and ignore changes.","comments:read":"Read build comments and threads.","comments:write":"Post, edit, and delete comments, add reactions, and manage subscriptions.","media:read":"Read the images and videos uploaded to your teams.","media:write":"Upload images and videos, and delete the ones already uploaded.","account:admin":"Manage organization settings and members."}}}}},"schemas":{"WebhookDeliveryDetail":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/WebhookDeliveryStatus"},"eventId":{"type":"string","description":"The `id` of the event delivered, its `webhook-id` header."},"eventType":{"type":"string","enum":["build.completed","build.reviewed","deployment.created","deployment.ready"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"attemptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When the latest attempt was made."},"responseStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"HTTP status of the latest attempt, `null` when it got no response."},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"How long the latest attempt waited for a response."},"failureReason":{"description":"Why the latest attempt failed, `null` when it succeeded.","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"responseBody":{"description":"The start of the latest response body (4 KB at most).","type":["string","null"]},"event":{"description":"The event, as the request body.","$ref":"#/components/schemas/Event"}},"required":["id","status","eventId","eventType","attempts","attemptedAt","responseStatus","durationMs","failureReason","createdAt","responseBody","event"],"additionalProperties":false},"WebhookDeliveryStatus":{"type":"string","enum":["pending","success","failed"],"description":"`pending` until the endpoint accepts the event or the retries run out, then `success` or `failed`."},"Event":{"oneOf":[{"$ref":"#/components/schemas/BuildCompletedEvent"},{"$ref":"#/components/schemas/BuildReviewedEvent"},{"$ref":"#/components/schemas/DeploymentCreatedEvent"},{"$ref":"#/components/schemas/DeploymentReadyEvent"}],"description":"Something that happened in a project.","type":"object","discriminator":{"propertyName":"type","mapping":{"build.completed":"#/components/schemas/BuildCompletedEvent","build.reviewed":"#/components/schemas/BuildReviewedEvent","deployment.created":"#/components/schemas/DeploymentCreatedEvent","deployment.ready":"#/components/schemas/DeploymentReadyEvent"}}},"BuildCompletedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the event, the same on every delivery of it. Use it to ignore an event you already processed."},"type":{"type":"string","const":"build.completed"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the event happened."},"data":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/EventProject"},"build":{"$ref":"#/components/schemas/Build"}},"required":["project","build"],"additionalProperties":false}},"required":["id","type","timestamp","data"],"additionalProperties":false,"description":"A build finishes comparing its screenshots."},"EventProject":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"account":{"$ref":"#/components/schemas/Account"},"url":{"type":"string","format":"uri","description":"The URL of the project in Argos."}},"required":["id","name","account","url"],"additionalProperties":false,"description":"The project the event happened in."},"Account":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string","minLength":1}},"required":["id","slug"],"additionalProperties":false,"description":"Account"},"Build":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/BuildId"},"number":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The build number"},"head":{"description":"The head reference of the build","$ref":"#/components/schemas/BuildGitReference"},"base":{"anyOf":[{"$ref":"#/components/schemas/BuildGitReference"},{"type":"null"}],"description":"The base reference of the build"},"status":{"anyOf":[{"type":"string","enum":["accepted","rejected"]},{"type":"string","enum":["no-changes","changes-detected"]},{"type":"string","enum":["expired","pending","progress","error","aborted"]}],"description":"The status of the build"},"conclusion":{"anyOf":[{"type":"string","enum":["no-changes","changes-detected"]},{"type":"null"}],"description":"The conclusion of the build"},"stats":{"anyOf":[{"type":"object","properties":{"added":{"type":"number","description":"Added snapshots"},"removed":{"type":"number","description":"Removed snapshots"},"unchanged":{"type":"number","description":"Unchanged snapshots"},"changed":{"type":"number","description":"Changed snapshots"},"ignored":{"type":"number","description":"Ignored snapshots"},"failure":{"type":"number","description":"Failure screenshots"},"retryFailure":{"type":"number","description":"Retry failure screenshots"},"total":{"type":"number","description":"Total number of snapshots"}},"required":["added","removed","unchanged","changed","ignored","failure","retryFailure","total"],"additionalProperties":false},{"type":"null"}],"description":"Stats of the diffs present in the build"},"metadata":{"anyOf":[{"type":"object","properties":{"testReport":{"description":"Test suite report","type":"object","properties":{"status":{"type":"string","enum":["passed","failed","timedout","interrupted"],"description":"Status of the test suite"},"stats":{"type":"object","properties":{"startTime":{"description":"Date when the test suite started","type":"string"},"duration":{"description":"Duration of the test suite in milliseconds","type":"number"}},"additionalProperties":false}},"required":["status"],"additionalProperties":false}},"additionalProperties":false,"description":"Metadata associated to the build"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The URL of the build"},"notification":{"anyOf":[{"type":"object","properties":{"description":{"type":"string"},"context":{"type":"string"},"github":{"type":"object","properties":{"state":{"type":"string","enum":["pending","success","error","failure"]}},"required":["state"],"additionalProperties":false},"gitlab":{"type":"object","properties":{"state":{"type":"string","enum":["pending","running","success","failed","canceled"]}},"required":["state"],"additionalProperties":false},"origin":{"type":"object","properties":{"status":{"type":"string","enum":["queued","in_progress","completed"]},"conclusion":{"anyOf":[{"type":"string","enum":["success","failure"]},{"type":"null"}]}},"required":["status","conclusion"],"additionalProperties":false},"url":{"type":"string","format":"uri"}},"required":["description","context","github","gitlab","origin","url"],"additionalProperties":false},{"type":"null"}],"description":"The notification payload for the build"}},"required":["id","number","head","base","status","conclusion","stats","metadata","url","notification"],"additionalProperties":false,"description":"Build"},"BuildId":{"type":"string","description":"A unique identifier for the build"},"BuildGitReference":{"type":"object","properties":{"sha":{"description":"The commit SHA","$ref":"#/components/schemas/Sha1Hash"},"branch":{"type":"string","description":"The branch name"}},"required":["sha","branch"],"additionalProperties":false,"description":"Git reference"},"Sha1Hash":{"type":"string","pattern":"^[0-9a-f]{40}$","description":"SHA1 hash"},"BuildReviewedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the event, the same on every delivery of it. Use it to ignore an event you already processed."},"type":{"type":"string","const":"build.reviewed"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the event happened."},"data":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/EventProject"},"build":{"$ref":"#/components/schemas/Build"},"review":{"$ref":"#/components/schemas/BuildReview"}},"required":["project","build","review"],"additionalProperties":false}},"required":["id","type","timestamp","data"],"additionalProperties":false,"description":"A build receives a review."},"BuildReview":{"type":"object","properties":{"id":{"type":"string"},"buildId":{"type":"string"},"state":{"type":"string","enum":["approved","rejected","commented","pending"],"description":"State of a build review: approved, rejected, commented (neutral) or pending (an unsubmitted draft)."},"user":{"anyOf":[{"$ref":"#/components/schemas/User"},{"type":"null"}],"description":"The user who submitted the review."},"dismissedAt":{"description":"Date the review was dismissed, null if not dismissed.","type":["string","null"]},"dismissedBy":{"anyOf":[{"$ref":"#/components/schemas/User"},{"type":"null"}],"description":"The user who dismissed the review, if any."},"agent":{"anyOf":[{"$ref":"#/components/schemas/Agent"},{"type":"null"}],"description":"The coding agent that submitted the review on the reviewer's behalf. Null when they submitted it themselves."},"date":{"type":"string","description":"Date the review was created."}},"required":["id","buildId","state","user","dismissedAt","dismissedBy","agent","date"],"additionalProperties":false,"description":"Build review"},"User":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","slug","name"],"additionalProperties":false,"description":"A user."},"Agent":{"type":"object","properties":{"id":{"type":"string","description":"Stable id of the agent, e.g. `claude-code`. `unknown` when it could not be identified."},"name":{"description":"Name to display, e.g. `Claude Code`. Null for an agent we cannot name.","type":["string","null"]}},"required":["id","name"],"additionalProperties":false,"description":"A coding agent acting on behalf of a user."},"DeploymentCreatedEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the event, the same on every delivery of it. Use it to ignore an event you already processed."},"type":{"type":"string","const":"deployment.created"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the event happened."},"data":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/EventProject"},"deployment":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","ready","error"]},"environment":{"type":"string","enum":["preview","production"]},"branch":{"$ref":"#/components/schemas/GitBranch"},"commitSha":{"$ref":"#/components/schemas/Sha256Hash"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string"}},"required":["id","status","environment","branch","commitSha","url","createdAt"],"additionalProperties":false}},"required":["project","deployment"],"additionalProperties":false}},"required":["id","type","timestamp","data"],"additionalProperties":false,"description":"A deployment starts uploading its files."},"GitBranch":{"type":"string","minLength":1},"Sha256Hash":{"type":"string","pattern":"^[A-Fa-f0-9]{64}$","description":"SHA256 hash"},"DeploymentReadyEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the event, the same on every delivery of it. Use it to ignore an event you already processed."},"type":{"type":"string","const":"deployment.ready"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the event happened."},"data":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/EventProject"},"deployment":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","ready","error"]},"environment":{"type":"string","enum":["preview","production"]},"branch":{"$ref":"#/components/schemas/GitBranch"},"commitSha":{"$ref":"#/components/schemas/Sha256Hash"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string"}},"required":["id","status","environment","branch","commitSha","url","createdAt"],"additionalProperties":false}},"required":["project","deployment"],"additionalProperties":false}},"required":["id","type","timestamp","data"],"additionalProperties":false,"description":"A deployment is ready to be served."},"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false,"description":"Error response"}}},"paths":{"/accounts/{accountSlug}/webhooks/{webhookId}/deliveries/{deliveryId}":{"get":{"operationId":"getWebhookDelivery","summary":"Get a webhook delivery","description":"Get a delivery of a webhook with the request it sent and the start of the response it got. Requires administrator access to the account.","tags":["Webhooks"],"parameters":[{"in":"path","name":"accountSlug","schema":{"type":"string","minLength":1,"description":"Slug of the account."},"required":true,"description":"Slug of the account."},{"in":"path","name":"webhookId","schema":{"type":"string","description":"ID of the webhook."},"required":true,"description":"ID of the webhook."},{"in":"path","name":"deliveryId","schema":{"type":"string","description":"ID of the delivery."},"required":true,"description":"ID of the delivery."}],"responses":{"200":{"description":"The delivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryDetail"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````

## Resend a webhook delivery

> Send a delivery's event to its webhook again, as a new delivery. It keeps the event's \`webhook-id\`, so an endpoint that already processed the event can skip it. While the event is still being sent to the webhook, returns that delivery instead of sending it twice. Requires administrator access to the account.

````json
{"openapi":"3.2.0","info":{"title":"Argos API","version":"2.0.0"},"tags":[{"name":"Webhooks","parent":"Integrations","description":"Manage the webhooks Argos posts your projects' events to, look into their deliveries and resend one that failed."}],"servers":[{"url":"https://api.argos-ci.com/v2","description":"API Endpoint"}],"security":[{"personalAccessToken":[]},{"oauth2":["account:admin"]}],"components":{"securitySchemes":{"personalAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"Personal Access Token","description":"Authenticate as a **user** with a personal access token.\n\nSend it as a bearer token in the `Authorization` header:\n\n```http\nAuthorization: Bearer <personal-access-token>\n```\n\nPersonal access tokens act on behalf of the user that created them\nand are required by endpoints that perform user actions, such as\nreviewing builds and posting comments."},"oauth2":{"type":"oauth2","description":"Authenticate as a **user** via an OAuth 2.1 access token obtained\nthrough the authorization-code (+ PKCE) flow. Used by the CLI and by\nMCP clients/agents. The token acts on behalf of the authorizing user,\nlimited to the granted scopes and organizations.","flows":{"authorizationCode":{"authorizationUrl":"https://app.argos-ci.com/oauth/authorize","tokenUrl":"https://app.argos-ci.com/oauth/token","refreshUrl":"https://app.argos-ci.com/oauth/token","scopes":{"profile":"Read your Argos profile and the list of teams you belong to.","projects:read":"Read your projects, builds, screenshots, diffs, tests, and analytics.","projects:write":"Create and configure projects and their settings.","builds:write":"Create and upload builds and screenshots.","reviews:write":"Approve, reject, or dismiss build reviews and ignore changes.","comments:read":"Read build comments and threads.","comments:write":"Post, edit, and delete comments, add reactions, and manage subscriptions.","media:read":"Read the images and videos uploaded to your teams.","media:write":"Upload images and videos, and delete the ones already uploaded.","account:admin":"Manage organization settings and members."}}}}},"schemas":{"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/WebhookDeliveryStatus"},"eventId":{"type":"string","description":"The `id` of the event delivered, its `webhook-id` header."},"eventType":{"type":"string","enum":["build.completed","build.reviewed","deployment.created","deployment.ready"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"attemptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When the latest attempt was made."},"responseStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"HTTP status of the latest attempt, `null` when it got no response."},"durationMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"How long the latest attempt waited for a response."},"failureReason":{"description":"Why the latest attempt failed, `null` when it succeeded.","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","status","eventId","eventType","attempts","attemptedAt","responseStatus","durationMs","failureReason","createdAt"],"additionalProperties":false,"description":"An event sent to a webhook, across all of its attempts."},"WebhookDeliveryStatus":{"type":"string","enum":["pending","success","failed"],"description":"`pending` until the endpoint accepts the event or the retries run out, then `success` or `failed`."},"Error":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false,"description":"Error response"}}},"paths":{"/accounts/{accountSlug}/webhooks/{webhookId}/deliveries/{deliveryId}/resend":{"post":{"operationId":"resendWebhookDelivery","summary":"Resend a webhook delivery","description":"Send a delivery's event to its webhook again, as a new delivery. It keeps the event's `webhook-id`, so an endpoint that already processed the event can skip it. While the event is still being sent to the webhook, returns that delivery instead of sending it twice. Requires administrator access to the account.","tags":["Webhooks"],"parameters":[{"in":"path","name":"accountSlug","schema":{"type":"string","minLength":1,"description":"Slug of the account."},"required":true,"description":"Slug of the account."},{"in":"path","name":"webhookId","schema":{"type":"string","description":"ID of the webhook."},"required":true,"description":"ID of the webhook."},{"in":"path","name":"deliveryId","schema":{"type":"string","description":"ID of the delivery."},"required":true,"description":"ID of the delivery."}],"responses":{"200":{"description":"The delivery still sending the event","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"201":{"description":"The new delivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
````


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://argos-ci.com/docs/api-reference/reference/integrations/webhooks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
