Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer YOUR_API_KEY.

Path Parameters

id
string
required

Agent id.

Minimum string length: 1

Query Parameters

locationId
string

Pair with campaignId; omit both for primary campaign.

Minimum string length: 1
campaignId
string

Pair with locationId; omit both for primary campaign.

Minimum string length: 1

Body

application/json
contactId
string | null

Existing contact id for outbound and appointment campaign tests: the GoHighLevel contact id, or the nct_ id on a sub-account with no CRM. The dashboard resolves this client-side. Use null for inbound dial-in tests.

Example:

"contact_123"

contact
object

API-convenience alternative to contactId: create, or reuse deduped by phone, a contact from these details when contactId is omitted. The contact is made wherever the sub-account keeps its contacts. No marker tag is applied. contactId wins when both are sent.

callerPhone
string

Tester phone number for inbound dial-in tests.

Example:

"+14155559876"

agentTest
boolean

When true, run an agent-only inbound test without campaign side effects.

Example:

false

callNow
boolean

Answer to the no_speed_to_lead decision. true calls the contact now; false queues them into the campaign, where the power dialer calls them on its schedule. Leave it out until a response asks.

Example:

true

overrideCallingWindow
boolean

Answer to the calling_window decision. true calls now although the calling window does not allow a call at this time; false lets the call wait for the window. Leave it out until a response asks.

Example:

true

forceCall
boolean

Call now anyway: dial the test now, overriding whatever is in the way (a call already in progress with this number, an earlier test, the calling window). Implies callNow and overrideCallingWindow, so no question is asked. A stop on the number never needs it: every test lifts the contact's stops before it dials. One that does not come off answers TEST_STOPS_NOT_CLEARED (503).

Example:

true

{key}
any

Response

Campaign test run created, or a question to answer before it fires.

success
boolean
required
data
object
required