cURL
curl --request POST \ --url https://{APPLICATION_ID}.algolia.net/agent-studio/1/agents/{agent_id}/allowed-domains \ --header 'Content-Type: application/json' \ --header 'X-Algolia-API-Key: <x-algolia-api-key>' \ --header 'X-Algolia-Application-Id: <x-algolia-application-id>' \ --data ' { "domain": "<string>" } '
{ "id": "<string>", "appId": "<string>", "agentId": "<string>", "domain": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Add a single allowed domain pattern (e.g. https://app.example.com or *.example.com).
editSettings
Request body to add a single allowed domain.
Domain or pattern, e.g. https://app.example.com or *.example.com
Successful Response
Single allowed domain in API responses.
Was this page helpful?