Create job agent
Creates a new job agent. Required: name, type (hr_pre_screening | hr_mock_interview | hr_interview). Optional: template fields (agent_role, introduction, about_job, about_company, closing_message, questions), output_fields, output_instructions, generate_from_jd_text (JD text to generate template content), out_did. Returns full job agent details including in_did and out_did.
Authentication
API key for authentication. Example: raya_ABCD1234567890abcdef
Request
Job agent name (required)
Agent role: how the voice agent should behave (e.g. prescreening interviewer). Not the job/position title.
Array of key-description pairs. Each item has key and description only (no extra properties).
Instructions for how to populate output_fields after a call.
Optional job description (JD) text. When provided, the API generates template content (agent_role, introduction, about_job, etc.) and merges with any fields you supplied.
India mobile (10 digits, no +91). Null or omit if not using transfer.
Response
Agent role: how the voice agent should behave (e.g. prescreening interviewer). Distinct from job role (the position being hired for).
Instructions for how to populate output_fields after a call.
Array of key-description pairs. Each item has key and description only (no extra properties).
Agent arguments as a JSON object (e.g. {“contact_name”: “John”, “order_id”: “123”}). Not an array.
Inbound DID number (read-only; for reference)
Webhook URL for callbacks (sent on call completed or call failure). See Webhooks for payload format.
India mobile (10 digits, no +91). Null if unused.

