Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Input for creating a new agent

name
string
required

Name of the agent

Minimum string length: 1
description
string | null

Description of the agent

customId
string | null

Custom identifier for the agent. Must be unique in the project.

industry
enum<string> | null

The industry the agent serves.

Available options:
HEALTHCARE,
FINANCIAL_SERVICES,
INSURANCE,
DEBT_COLLECTION,
RETAIL,
TRAVEL_AND_HOSPITALITY,
TELECOMMUNICATIONS,
TECHNOLOGY,
PUBLIC_SECTOR,
UTILITIES,
LOGISTICS,
AUTOMOTIVE,
HOME_SERVICES,
RESTAURANTS,
EDUCATION,
RECRUITING_AND_STAFFING,
OTHER
industryDescription
string | null

The industry in your own words, when none of the listed ones fits. Use it with industry OTHER.

Maximum string length: 120
websiteUrl
string<uri> | null

The business's website. Simulation setup reads it.

capabilities
enum<string>[] | null

What the agent handles. Simulation setup tests each one.

Available options:
APPOINTMENT_BOOKING,
FAQ,
IDENTITY_VERIFICATION,
ACCOUNT_MANAGEMENT,
BILLING_AND_PAYMENTS,
ORDER_MANAGEMENT,
TROUBLESHOOTING,
CALL_ROUTING,
LEAD_QUALIFICATION,
COLLECTIONS,
OUTBOUND_CALLING
prompt
string | null

The agent's system prompt.

Required string length: 1 - 200000
endpoint
object | null

The phone number Roark calls to test the agent.

Response

The created agent

data
object
required