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.
integer
How long to wait for each attempt, in milliseconds, from 1000 to 300000. Raise it while you debug your endpoint. Null or omitted is the default, 30000.
integer
How many times to send the request, from 1 to 5. Set 1 so a slow answer is never sent again, which would start a second call. Null or omitted is the default, 3.

Example

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