Skip to main content
POST
/
organization
/
rag
/
sources
/
questions
Add Q&A to the AI store
curl --request POST \
  --url https://api.getfernand.com/organization/rag/sources/questions \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data @- <<EOF
{
  "questions": [
    "How do I reset my password?",
    "What's the process for password recovery?"
  ],
  "answer": "To reset your password, click on the \"Forgot Password\" link on the login page..."
}
EOF
{}
Creates a new question-answer pair in the AI store. Multiple question variations can be provided for the same answer to improve matching. The content is formatted and stored for AI retrieval.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Body

application/json
questions
string[]
required

Array of question variations (max 250 chars each).

Maximum string length: 250
Example:
[
"How do I reset my password?",
"What's the process for password recovery?"
]
answer
string
required

Answer to the questions.

Maximum string length: 5000
Example:

"To reset your password, click on the \"Forgot Password\" link on the login page..."

Response

Q&A source queued for processing.

The response is of type object.