Skip to main content
POST
Create webhook settings

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Body

application/json

The URL, the webhook events and the token of the webhook settings to create.

url
string<uri>
required

The URL that receives the webhook events. It points to a public address, and Aira follows no redirect.

Maximum string length: 2048
Example:

"https://erp.example.com/aira/webhooks"

events
enum<string>[]
required

The webhook events that Aira sends to the URL.

Minimum array length: 1
Available options:
invoice.status-updated,
invoice.recalculated,
integration.inbound-failed
token
string
required

The token that Aira sends in the X-Webhook-Token header of each webhook event, so that the receiver can check that the event comes from Aira. Aira stores it encrypted and never returns it.

Required string length: 1 - 512
Example:

"example-webhook-token"

Response

Schema representing webhook settings: a URL of the tenant that receives the webhook events that it subscribes to.

id
string<uuid>
required

The unique identifier of the webhook settings in our system.

url
string<uri>
required

The URL that receives the webhook events. It points to a public address, and Aira follows no redirect.

Maximum string length: 2048
Example:

"https://erp.example.com/aira/webhooks"

events
enum<string>[]
required

The webhook events that Aira sends to the URL.

Minimum array length: 1
Available options:
invoice.status-updated,
invoice.recalculated,
integration.inbound-failed