Skip to main content
Creates a new HTTP request definition. The signing secret is only returned in this response and cannot be retrieved later.
Calls POST /v1/http-request-definition

Options

string
required
Scope: AGENT_OUTBOUND_DIAL. One of AGENT_OUTBOUND_DIAL
string
required
URL for the HTTP request.
string
Description of the HTTP request definition.
string
HTTP method (default: POST). One of POST, PUT, PATCH, GET
string
Request body template. Accepts a JSON object or a string with placeholders like {{phoneNumberToDial}}. Objects are serialized to JSON for storage.
object
Request headers as key-value pairs.

Example

Every command also takes the global options and sets one of the exit codes.