Webhook

Get or Set the url where you want to receive webhook notifications when a request has completed successfully (status == 100)

POST

https://api.autocontentapi.com/content/Webhook

curl -X 'POST' \
  'https://api.autocontentapi.com/Content/Webhook' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer YOUR_TOKEN_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://hook.eu2.make.com/glnwiaetcwptnru3p2u8ciztybarhike"
}'

GET

https://api.autocontentapi.com/content/Webhook

curl -X 'GET' \
  'https://api.autocontentapi.com/content/Webhook' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'

Sample Response:

{
  "url": "https://hook.eu2.make.com/glnwiaetcwptnru3p2u8ciztybarhike"
}

Returns the endpoint where the api will notify podcast completions.

WEBHOOK DATA

It returns the same data as the Get Status request

{
  "id": "38fdb402-5409-4fcd-b7a4-6971918e9323",
  "requested_on": "2024-11-17T17:57:37.933",
  "status": 100,
  "updated_on": "2024-11-17T17:58:31.847",
  "request_json": "{"resources":[{"content":"https://autocontentapi.com","type":"website"},{"content":"74% of businesses expect AI to increase productivity","type":"text"}],"text":"Explain why automating with AutoContent API is a game changer for any business","outputType":"audio"}",
  "error_message": null,
  "error_code": null,
  "audio_url": "https://autocontentapi.com/audio/sample.wav",
  "audio_title": "This is the title of the podcast",
  "response_text": null
}

Last updated