Skip to main content
This walkthrough uses the Voice API to place an outbound call with one of your voice agents and read the transcript afterwards. You need an organization API key and a voice agent that has been published in the Clarity app, with an outbound phone number configured for your project.
1

Store your key

2

Find your project

Note the id of the project your agent belongs to.
3

Find your agent

Pick the agent and note its id.
4

Place a call

The call starts ringing straight away. The response carries the conversation’s id:
Add "on_call_ended_url": "https://your-server.example.com/clarity/call-ended" to have the full call record posted to you when the call ends. See Call-ended webhook.
5

Read the transcript

After the call ends:
merged.transcript holds the whole call as text, and each session’s recording_signed_url is a download link for its audio, valid for one hour. Until the call’s files are stored the request answers 404 with ARTIFACTS_NOT_READY; retry after a minute. See Conversations.

Next steps

Outbound calls

Caller ids, errors, and following a call to the end.

Campaigns

Call a list of numbers on a schedule.

Support API

Tickets, customers, messages, and webhooks.

API reference

Every endpoint, with a live playground.