Hoppa till innehåll

Associate language-specific source links with articles so the chat widget can show the right URL for each language.

Det här innehållet är inte tillgängligt på ditt språk än.

Language URLs let you associate language-specific source links with articles. When the AI references an article during a conversation, the chat widget displays the URL matching the conversation’s detected language (most_frequent_language). This is useful for multilingual deployments where the same content has different URLs per locale (e.g., example.com/en/returns vs example.com/es/devoluciones).

Scope: read_all

GET https://app.quickchat.ai/v1/api/knowledge_base/articles/{article_id}/lang_urls/{language}

Terminal window
curl https://app.quickchat.ai/v1/api/knowledge_base/articles/1234/lang_urls/en \
-H 'Authorization: Bearer <API_TOKEN>'

Response 200 OK

{
"url": "https://example.com/en/return-policy"
}
Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/articles/{article_id}/lang_urls/{language}

Request Body

ParameterDescription
url
string, required
URL for the language-specific version
Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/articles/1234/lang_urls/en \
-H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com/en/return-policy"}'

Response 200 OK

{
"url": "https://example.com/en/return-policy"
}
Scope: write_all

PATCH https://app.quickchat.ai/v1/api/knowledge_base/articles/{article_id}/lang_urls/{language}

Request Body

ParameterDescription
url
string, required
Updated URL

Response 200 OK — Returns the updated URL object.

Scope: write_all

DELETE https://app.quickchat.ai/v1/api/knowledge_base/articles/{article_id}/lang_urls/{language}

Terminal window
curl -X DELETE https://app.quickchat.ai/v1/api/knowledge_base/articles/1234/lang_urls/en \
-H 'Authorization: Bearer <API_TOKEN>'

Response 200 OK