cURL
curl --request POST \ --url https://api.vocode.dev/v1/agents/update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "<string>", "actions": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "voice": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "initial_message": "<string>", "webhook": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "prompt": "<string>", "actions": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "type": "action_end_conversation", "config": { "phone_number": "<string>" } } ], "voice": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "type": "voice_base", "voice_name": "<string>", "pitch": 0, "rate": 15 }, "initial_message": "<string>", "webhook": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "subscriptions": [ "event_message" ], "url": "<string>", "method": "GET" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Successful Response