Skip to main content
The Agent Builder Platform API gives you programmatic control over agents you build in Inya Agent Builder: create and update configuration, manage FAQs, read conversation logs, and configure the embeddable chat widget. For speech processing in your own stack, use Gnani Speech APIs instead.

Base URL

All paths below are relative to this URL. Requests must use HTTPS.

Authentication

Include your API key on every request:
Keys are scoped by permission: Invalid keys return 401. Valid keys without the required permission return 403.
Save the requestId from each response. You will need it when contacting support.

Response format

Successful responses use this envelope:
Paginated lists also include pageNo, pageSize, totalCount, and totalPages inside response.

API groups

Quick start

Create an agent with one request:
Example response:
Use the returned botId to configure the agent, attach FAQs, and trigger calls.

Concepts

System prompts — Use Jinja2 variables such as {{ customer_name }}. Validate syntax with Validate Prompt before saving. Multi-language agents — Up to three languages per agent. Call Get Transcriber Config and Get TTS Config before Update Agent. Pre-call variables — Inject caller-specific fields into the prompt at call time. FAQ knowledge base — Up to 100 Q&A pairs per agent; matched before the LLM generates an answer. Outbound calls — Use Trigger Call with clientReferenceId to link calls to your CRM.

HTTP status codes

Best practices

  • Call the Config API before creating or updating agents so ASR and TTS choices support every configured language.
  • Validate prompts before saving.
  • Test in development first; pass ?environment=development when required.
  • Log every requestId for support escalations.
  • Keep API keys out of source control.

Next steps


Docs feedback

Docs feedback: Agent Builder Platform docs feedback Last verified: 5 August 2026