/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.
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.
- curl
- python
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.
- curl
- python
List webhooks
GET/v1/webhooks
- List all webhooks.
- This request returns an object with a
resultsproperty that contains an array of up tolimitwebhook objects.
Query parameters
- curl
- python
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.
- curl
- python