Creates a new agent endpoint for the authenticated project.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
INCOMING, OUTGOING, INCOMING_AND_OUTGOING Environment name (default: production)
Outbound dial type: NONE or HTTP_REQUEST (default: NONE)
NONE, HTTP_REQUEST ID of the HTTP request definition for outbound dialing (required when outboundDialType is HTTP_REQUEST)
The created agent endpoint
Detailed agent endpoint response