Is there any callback when egress finish uploading...
# ask-ai
b
Is there any callback when egress finish uploading an audio record to S3?
t
Thanks for reaching out, Jura. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, you can get a callback once egress finishes uploading an audio recording to S3 by using webhook notifications. Here’s how you can set this up: • Simply include a
webhooks
field in your egress request, where you specify the URL that LiveKit will use to send the completion notification. • Once the egress process wraps up, LiveKit will send an HTTP POST request to your webhook URL with all the details about the egress status—whether it was successful, failed, or aborted. • Keep an eye out for the
EGRESS_COMPLETE
status in the webhook payload, as that confirms your audio recording has been successfully uploaded to S3. You have the flexibility to configure webhooks at the project level if you want centralized handling, or directly in the egress request if you prefer more granular control. If you'd like, I’m here to help with more details or examples—just let me know! Sources: protobufs/livekit_egress.proto | livekit-protocol/livekit/protocol/egress.pyi | Webhooks | LiveKit Docs | Egress API | LiveKit Docs