본문으로 건너뛰기
버전: 1.4.x

Webhook

The webhook section shows you how an exported chromakey video or audio file gets delivered.

1. Query String in the Response

keydesctype
ai_progress_update_locLocation where the created project is saved.String
videoUrlThe download link for the exported file.String
durationThe duration of the exported file.String

2. Webhook delivery address example

curl https://aistudios.com/api/odin/simple/audio  \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"language":"ko",
"text":"샘플 스크립트",
"model": "ysy",
"webhook": "https://webhook.site/85ff2681-e008-4479-8782-41cdcc281de2"
}'

If you include a webhook delivery address in the request body as shown in the example above, the export data will be delivered to that address once the export is complete.

https://webhook.site/85ff2681-e008-4479-8782-41cdcc281de2?ai_progress_update_loc=ai-video%2F-N4qJq7DwnRjBQ7iozRc%2F&videoUrl=https%3A%2F%2Fai-platform-public.s3.ap-northeast-2.amazonaws.com%2Fysy_audio_eba83449f73b8db76cf87e1f42c32e02.wav&duration=3.274014