# Request 1: List all actions for an agentcurl -X GET "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 1: List all actions for an agentconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);
Retrieve a list of actions for a specific voice agent
GET
/
api
/
v1
/
agents
/
{agent_id}
/
actions
# Request 1: List all actions for an agentcurl -X GET "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 1: List all actions for an agentconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);
Retrieve all actions associated with a specific voice agent. This endpoint returns a list of webhooks, call transfers, holds, and other actions that the agent can perform during conversations.
Endpoint
GET /api/v1/agents/{agent_id}/actions
Path parameters
string
required
The unique identifier of the voice agent.
Request headers
string
required
Bearer token for authentication. Format: Bearer talq_your_environment_token_here
Example requests
# Request 1: List all actions for an agentcurl -X GET "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions" \ -H "Authorization: Bearer talq_your_environment_token_here"
// Request 1: List all actions for an agentconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }});const result = await response.json();console.log(result);
# Request 2: List actions with error handlingcurl -X GET "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions" \ -H "Authorization: Bearer talq_your_environment_token_here" \ -w "\nHTTP Status: %{http_code}\n"
// Request 2: List actions with error handlingtry { const response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/actions', { method: 'GET', headers: { 'Authorization': 'Bearer talq_your_environment_token_here' } }); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const result = await response.json(); console.log('Actions:', result.data);} catch (error) { console.error('Error fetching actions:', error);}