Innocalls
Web Call

Assign Allowed Domains

Assign allowed domains for web call application bundle

Assign Allowed Domains

Details

DescriptionThe "Assign Allowed Domains" Endpoint enables the assignment of domains or origins that will have access to and utilize the web call application bundle.
HTTP MethodPATCH
Endpoint URLhttps://platform.innocalls.com/v1/api-gateway/web-call/:id/assign-allowed-domains
AuthorizationTo access the API endpoints, you need to authenticate using API keys and API secrets. The API supports Basic Authentication for authorization. You need to include your API ID as the username and your API secret as the password in the HTTP header when making requests. Replace API_ID with your API ID and API_SECRET with your API secret, separated by a colon (:). The value after Basic is the Base64 encoding of your API key and API secret concatenated with a colon.
Rate Limit3 requests per second

Request Parameters

ParameterDescriptionLocationConstrains
id

The appId that obtained from the initiation process.

PathRequired
domainsOrigins or domains that will utilize the bundle.BodyRequired
At last one element

Request Example


curl --request PATCH 'https://platform.innocalls.com/api/v1/api-gateway/web-call/:id/assign-allowed-domains' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <base64-encoded string  apiId:apiSecret>' \
--data '{
    "domains": [
        "https://platform.innocalls.com"
    ]
}'

Success Response Example

A successful response is indicated by the HTTP status code 204.

Possible Errors

Error CodeDescription
401 UnauthorizedInvalid Credential
403 ForbiddenNot Enough Permissions to access the resource
400 BadRequest

This error occurs due to malformed or invalid request parameters

429 Too Many RequestsThis occurs when requests exceed the rate limit

On this page