Skip to content

Settings

Run in Postman

Settings resource is used for setting up certain properties of a channel like get started button, menu, etc.

GET https://api.amio.io/v1/channels/{channel_id}/settings

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.

Response 200

{
{{PLATFORM_SPECIFIC_SETTINGS}}
}

PATCH https://api.amio.io/v1/channels/{channel_id}/settings

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.

Response 200

{
{{PLATFORM_SPECIFIC_SETTINGS}}
}

Response 400

{}

Select a channel to see its specifics.

Amio Chat allows you to restrict domains where the chat will be running, using a domain whitelist.

Response Body Params

Parameter Type Description
domains_whitelist array List of domains allowed for cross origin requests (CORS) during connection to Amio Chat servers.

GET https://api.amio.io/v1/channels/{channel_id}/settings

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.

Response 200

{
"domains_whitelist": [
"https://app.amio.io"
]
}

Response Body Params

Parameter Type Description
domains_whitelist array List of domains allowed for cross origin requests (CORS) during connection to Amio Chat servers. If this value is set to null or an empty list, then all connection attempts will be refused.

PATCH https://api.amio.io/v1/channels/{channel_id}/settings

Parameters

Name In Type Required Description
channel_id path string yes Id of the channel.

Example request (cUrl)

{
"domains_whitelist": [
"https://app.amio.io"
]
}

Response 200

{
"domains_whitelist": [
"https://app.amio.io"
]
}

Amio Chat allows to restrict domains where the web chat will be running. Only the whitelisted domains will be allowed for cross origin requests (CORS) during connection to Amio Chat servers.

When adding domains to the whitelist, please keep in mind that the whole fully qualified domain name, including protocol, is required. If your server uses non-standard port, then you have to include it, too (standard ports are 80 for HTTP, 443 for HTTPS). localhost is allowed and has to be whitelisted if you want to run your code locally.

If the domain whitelist is set to null or an empty list [ ], then no connection will be allowed.