Skip to main content
POST
Bulk import FAQ entries

Overview

Import multiple FAQ entries into an agent in a single request. A successful import automatically sets faqEnabled = true on the agent. Entries exceeding the 100-FAQ limit are automatically trimmed — check the trimmed field in the response.

Required Permission

agents

Path Parameters

Request Body

FAQ Entry Object

Import Limits

Example cURL

Response

Success (200)

Response Fields

Error Responses

400 Bad Request
404 Not Found - Agent does not exist

Use Cases

  • Loading a large FAQ dataset into an agent at once
  • Migrating FAQ content from another system or CMS
  • Replacing an entire FAQ knowledge base after a content review
Always check the trimmed and importedCount fields in the response. Entries beyond the 100-FAQ limit are silently removed — you will not receive an error, only the warning in the response body.
Get a sample payload using the GET FAQ Sample endpoint to ensure your JSON is correctly structured before a large import.
Save the requestId from every response. You will need it if you contact Inya support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'agents' permission

Path Parameters

botId
string
required

Unique identifier of the agent

Body

application/json
botId
string
required
Example:

"fb79920229d144608ebf665a10e50275"

environment
enum<string>
required
Available options:
development,
staging,
production
faq
object[]
required

Response

FAQs imported successfully

status
string
Example:

"success"

requestId
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

message
string
response
object