List post-call actions
List every post-call action on the agent, each with its own `id`.
agent_idrequireduser_idintegerReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
curl -X GET 'https://backend.omnidim.io/api/v1/agents/{agent_id}/post-call-actions' \ -H 'Authorization: Bearer YOUR_API_KEY'
{ "actions": [ { "id": 0, "type": "email", "recipients": [ "string" ], "url": "string", "phone_number_id": 0, "template_id": 0, "template_variables": [ "string" ], "templates": [ "string" ], "workflow_id": 0, "integration_id": 0, "spreadsheet_id": "string", "spreadsheet_name": "string", "worksheet_name": "string", "channel_id": "string", "channel_name": "string", "object_name": "string", "create_call_log": false, "update_contact": false, "create_contact": false, "include": [ "string" ], "extracted_variables": [ { "key": "customer_issue", "prompt": "Identify the main issue the customer is experiencing." } ], "trigger_call_statuses": [ "string" ] } ], "applies_after_publish": false }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
agent_id*integerThe ID of the agent.
user_id?integerReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
Response body
application/jsonThe agent's post-call actions.
application/jsonactions?applies_after_publish?AppliesAfterPublishFalse for an agent that has never been published: the change is live on the next call. True when the agent is published: changes go to the draft, so they reach live calls only after you publish the agent in the dashboard.
Update agent
Update an existing agent. Send only the fields you want to change. `post_call_actions` replaces the agent's email, webhook, Omni CRM, Cloud WhatsApp and workflow actions as one set, but only when you send at least one of those types. Google Sheets, Slack, Salesforce, HubSpot and Zoho Bigin actions are replaced only when their key is sent, and kept otherwise. If a sent action gives a variable key a new prompt, kept actions that use the same key take the new prompt too. To add, change or remove one action without touching the others, use `/agents/{agent_id}/post-call-actions`. > **Voicemail detection is an access-gated feature** that we turn on per account. If it isn't enabled for yours yet, [request access](https://omnidim.io/contact-us?reason=product&lock=1) before configuring the `voicemail` object below.
Add a post-call action
Add one post-call action to the agent. The agent's other actions are not changed. Send an `Idempotency-Key` header to make a retry safe: the same key and body return the action the first request added.
