Skip to main content
Learn about the /webhooks endpoint.
  • Webhooks provide a way for Argyle to communicate to your servers when specific events happen, such as when an account was successfully connected, new payouts were added, etc.
  • To start receiving webhooks, you need to build a web application, with a publicly accessible URL. Use that URL to create a webhook subscription.
  • After subscribing to a webhook, you receive a POST request with the event payload that contains information about the event that has been triggered.
For more information, refer to our Webhooks Reference.

The webhook object

Attributes

  • id (string (uuid), optional): Unique ID of the webhook.

Create a webhook

POST /v1/webhooks
  • Create a new webhook.
  • This request returns the created webhook object.

Request body

  • name (string, required): An arbitrary name that is sent back to your system in the webhook payload.
  • events (array of strings, required): An array of Argyle webhook event types. Specify [’*’] to subscribe to all webhook events.
  • url (string, required): The backend website where you want to receive the webhook.

Retrieve a webhook

GET /v1/webhooks/{id}
  • Retrieve a webhook object with the supplied ID.
  • This request returns a webhook object if you provided a valid identifier.

Path parameters

  • id (string (uuid), required): ID of the webhook.

List webhooks

GET /v1/webhooks
  • List all webhooks.
  • This request returns an object with a results property that contains an array of up to limit webhook objects.

Query parameters

Delete a webhook

DELETE /v1/webhooks/{id}
  • Remove a webhook and unsubscribe your system from the events in the deleted webhook.
  • This request returns an empty response body.

Path parameters

  • id (string (uuid), required): ID of the webhook to be deleted.