Skip to main content
POST
create a campaign

Authorizations

Authorization
string
header
required

your rumik api key, e.g. rk_live_.... create one in the rumik dashboard.

Body

application/json

the body of POST /v1/campaigns.

name
string
required

the campaign's name, up to 120 characters.

Maximum string length: 120
audienceId
string<uuid>
required

the audience to call.

phoneLineKind
enum<string>
required

rented (a number rented through rumik) or sip_trunk (one of your SIP trunks). see GET /v1/campaigns/phone-lines.

Available options:
rented,
sip_trunk,
platform
agentId
string
required

the agent making the calls: its UUID or ua_… handle. must be deployed.

Required string length: 1 - 64
description
string | null
Maximum string length: 1000
phoneLineId
string<uuid> | null

the rented number's or SIP trunk's id.

contextColumns
ContextColumn · object[] | null

the audience columns appended to the agent's prompt on every call, each with a description. left out, the audience's own choice; [], none.

maxConcurrentCalls
integer
default:1

calls kept live at once, up to your account's limit (maxConcurrentCalls of GET /v1/campaigns/phone-lines). default 1.

Required range: 1 <= x <= 50
retryEnabled
boolean
default:false

redial a contact who didn't pick up.

retryDelayMinutes
integer
default:15

minutes before a redial: 15, 20, 30 or 60.

Required range: x >= 1
maxRetries
integer
default:1

redials per contact, 1–6.

Required range: 0 <= x <= 6
scheduledAt
string<date-time> | null

ISO 8601 time to start, up to 90 days ahead. left out or null, it starts now.

Response

created.

an outbound campaign, with live counts of its contacts by state.

id
string<uuid>
required
name
string
required
description
string | null
required
status
string
required
audienceId
string<uuid> | null
required
audienceName
string
required
userAgentId
string<uuid> | null
required
agentName
string | null
required
phoneLineKind
string
required
phoneLineId
string<uuid> | null
required
fromNumber
string | null
required
maxConcurrentCalls
integer
required
retryEnabled
boolean
required
retryDelayMinutes
integer
required
maxRetries
integer
required
scheduledAt
string<date-time> | null
required
startedAt
string<date-time> | null
required
completedAt
string<date-time> | null
required
cancelledAt
string<date-time> | null
required
lastError
string | null
required
notice
string | null
required
noticeAt
string<date-time> | null
required
stats
CampaignStats · object
required

How many of the campaign's contacts sit in each state.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
contextColumns
ContextColumn · object[] | null