Skip to main content
POST
create an agent

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/agents.

name
string
required

the agent's name, up to 120 characters.

Maximum string length: 120
systemInstruction
string
required

the persona — what the agent is, how it behaves. up to 8000 characters. {name} reads a variable, {{tool_name}} attaches a tool. the language and voice rules are added server-side; do not write them.

Maximum string length: 8000
greeting
string
required

the first thing the agent says. up to 1000 characters; may use {name} variables.

Maximum string length: 1000
callSettings
AgentCallSettings · object | null

call behaviour: background_noise mixes a quiet room tone under the voice; idle_ladder nudges a silent caller and ends the call if they stay silent. both off by default.

ttsConfig
AgentTtsConfig · object

the voice: model (muga | mulberry | spider), and for mulberry a named voice and a style description. see GET /v1/voices. default {"model": "muga"}.

language
string | null

conversation language for the chosen voice — english, hinglish or hindi (see GET /v1/voices for what each engine offers). unset = the engine's default.

source
string
default:scratch

scratch (default) or template.

templateSlug
string | null

the template this agent was created from, when source is template.

Maximum string length: 40
versionName
string | null

a name for the v1 this agent is seeded with, e.g. first cut.

Maximum string length: 120

Response

created.

an agent as the account sees it: identity plus the live configuration.

id
string<uuid>
required

the agent's UUID.

ownerUserId
string<uuid>
required

your account id.

name
string
required
systemInstruction
string
required

the persona the live version answers with. a pending draft is under GET /v1/agents/{agent_ref}/versions/draft.

greeting
string
required

the live greeting.

ttsConfig
AgentTtsConfig · object
required

the live voice config.

source
string
required

scratch or template.

handle
string
required

the agent's short public handle (ua_…). accepted wherever an agent is named.

createdAt
string<date-time>
required

when the agent was created.

updatedAt
string<date-time>
required

the last save (draft edits included).

callSettings
AgentCallSettings · object

the live call behaviour.

language
string | null

the live conversation language, or null for the engine's default.

templateSlug
string | null

the template it was created from, if any.

inboundPhoneNumber
string | null

the E.164 number this agent answers (a rented number or a SIP trunk connected to it), or null.

deployed
boolean
default:false

true once a version has been deployed. until then the agent answers no calls and cannot be connected to a number.