Rest API
Get AI configuration
GET /api/v1/ai/configuration
Retrieve the AI configuration for a website: the main language, response length, product name, custom rules and other settings that control how the AI answers questions.
Use cases
- Account investigation: Inspect how the AI is configured before diagnosing answer quality or behaviour
- Verification: Confirm settings such as the main language or custom rules after making changes in the dashboard
Notes
- The configuration is returned as a flat object
- When a website has no configuration yet, a default configuration is created and returned
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Your API key from account settings.
The email address of your user.
The ID of your account. You can find this in the account settings.
The ID of the workspace you want to use.
Responses
Section titled “ Responses ”The AI configuration for the website.
object
Two-letter code of the main conversation language.
The product name the AI refers to.
Free-form instructions that steer the AI’s answers.
Preferred answer length.
Whether the AI suggests follow-up replies.
Whether personally identifiable information is filtered.
Reply shown after negative feedback.
Reply shown after positive feedback.
Example
{ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "websiteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "mainLanguage": "en", "productName": "Unless", "customRules": "Always answer in a friendly tone.", "responseLength": "long", "suggestReplies": true, "componentFilterPII": true, "negativeFeedbackReply": "I'm sorry to hear that.", "positiveFeedbackReply": "Thank you for your feedback."}Bad request - missing required parameters.
Unauthorized - invalid API key.