JavaScript
Agent Endpoint
Create a new agent endpoint
Creates a new agent endpoint for the authenticated project.
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://docs.roark.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Input for creating an agent endpoint
Agent ID to associate this endpoint with
Phone number in E.164 format (e.g., +12345678900)
Call direction: INCOMING, OUTGOING, or INCOMING_AND_OUTGOING
Available options:
INCOMING, OUTGOING, INCOMING_AND_OUTGOING Environment name (default: production)
Outbound dial type: NONE or HTTP_REQUEST (default: NONE)
Available options:
NONE, HTTP_REQUEST ID of the HTTP request definition for outbound dialing (required when outboundDialType is HTTP_REQUEST)
Response
The created agent endpoint
Detailed agent endpoint response

