cURL
curl --request POST \ --url https://api.argil.ai/v1/webhooks \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "callbackUrl": "<string>", "events": [ "AVATAR_TRAINING_SUCCESS" ] }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "callbackUrl": "<string>", "events": [ "AVATAR_TRAINING_SUCCESS" ], "createAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "lastTriggeredAt": "2023-11-07T05:31:56Z" }
Creates a new webhook with the specified details.
API key to be included in the x-api-key header
URL to which the webhook will send POST requests.
List of events the webhook is subscribing to.
1
Show child attributes
Successfully created webhook
Was this page helpful?