---
updatedAt: 2026-04-20T19:45:53.000Z
---

# Modify a domains allow list

Use this operation to replace the current allow list for an application.

## Accepted content types

* application/x-www-form-urlencoded
* multipart/form-data

## Authentication

This operation uses your social login API key for authentication. This key can be found on the **Settings** page of the Social Login dashboard. ee [Get started](https://techdocs.akamai.com/identity-cloud-social-login/reference/get-started) for more information.

## Base URL

The base URL for this operation is your application domain followed by **/api/v2**; for example:

`https://educationcenter.rpxnow.com/api/v2`

You can find your application domain in the Social Login dashboard on the **Settings** page.

## Example request

This command assigns two domains (\***.rpxnow\.com** and \***.akamai.com**) to the allow list for the social login application **1234567891234567891234567891234567891234**. When configured, only the domains on the allow list are able to communicate with your social login application. Among other things, that means you can only login or register from domains on the list.

[block:code]
{
  "codes": [
    {
      "code": "curl -X POST \\\n  --data-urlencode apiKey=1234567891234567891234567891234567891234 \\\n  --data-urlencode domains='*.rpxnow.com,*.akamai.com' \\\n  https://janrain-docs.rpxnow.com/api/v2/set_domain_patterns",
      "language": "curl"
    }
  ]
}
[/block]

### Example response

If your API call succeeds the responses consists of the status **ok**:

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"stat\": \"ok\"\n}",
      "language": "json"
    }
  ]
}
[/block]

## Parameters

Parameters can be configured as **x-www-form-urlencoded** or as **multipart/form-data** body parameters.

[block:parameters]
{
  "data": {
    "0-0": "apiKey",
    "0-2": "✓",
    "1-2": "✓",
    "1-3": "Comma-separated list of domains that can communicate with your social login application. To clear the allowlist without adding any domains, set this member to `null`.",
    "0-3": "Social login secret for authenticating the operation. To verify your API key, log in to Console and, on the **Manage Application** page, check the value of the **rpx_key**  setting. This value also appears on the **Settings** page in the Social Login dashboard.",
    "1-0": "domains",
    "0-1": "string",
    "1-1": "string",
    "h-0": "Parameter",
    "h-1": "Type",
    "h-2": "Required",
    "h-3": "Description"
  },
  "cols": 4,
  "rows": 2
}
[/block]

# Sibling pages

* [Add a domain to a domains allow list](https://techdocs.akamai.com/identity-cloud/docs/add-a-domain-to-a-domains-allow-list.md)
* [Get social login application settings](https://techdocs.akamai.com/identity-cloud/docs/get-social-login-application-settings.md)
* [Modify social login application settings](https://techdocs.akamai.com/identity-cloud/docs/modify-social-login-application-settings.md)
* [Get your domains allow list](https://techdocs.akamai.com/identity-cloud/docs/get-your-domains-allow-list.md)