Connection

Create Webhook

POST
Create a webhook endpoint that listens to a connection events of a specific tenant.

Headers

x-revert-api-tokenstringRequired
Your official API key for accessing revert apis.
x-api-versionstringOptional
Optional Revert API version you're using. If missing we default to the latest version of the API.
x-revert-t-idstringRequired
The unique customer id used when the customer linked their account.

Request

This endpoint expects an object.
webhookUrl
stringRequired

Response

This endpoint returns an object
status
enum
Allowed values: okerror
webhookUrl
string
createdAt
string
secret
string
error
stringOptional
errorMessage
anyOptional
POST
$curl -X POST https://api.revert.dev/connection/webhook \
> -H "x-revert-api-token: string" \
> -H "x-api-version: string" \
> -H "x-revert-t-id: string" \
> -H "Content-Type: application/json" \
> -d '{
> "webhookUrl": "string"
>}'
Response
1{
2 "status": "ok",
3 "webhookUrl": "string",
4 "createdAt": "string",
5 "secret": "string",
6 "error": "string",
7 "errorMessage": {}
8}