#is the python SDK synchronous? Is there a way to call /v1/convai/whatsapp/outbound-message async?
1 messages · Page 1 of 1 (latest)
AI-generated Answer for flenshhh0524
- Python SDK sync vs async: The official docs show the Python SDK used with synchronous method calls (e.g., client.conversational_ai.whatsapp.outbound_message(...)) and do not document an async/await Python API. The changelog notes “asyncio event loop support” fixes but does not introduce async client methods. (elevenlabs.io)
- Calling /v1/convai/whatsapp/outbound-message asynchronously: The endpoint is a standard HTTP POST. The docs state you can interact with the API over HTTP from any language, so you can call it asynchronously using your own HTTP client (e.g., an async HTTP library in Python). See the endpoint reference. (elevenlabs.io)
Sources:
Outbound message via WhatsApp | ElevenLabs Documentation
Introduction | ElevenLabs Documentation
@hallow saffron we do have an async client: https://github.com/elevenlabs/elevenlabs-python/tree/main?tab=readme-ov-file#async-client