---
updatedAt: 2026-03-01T18:04:06.000Z
---

# Create an OpenID Connect client

```shell Shell
hostname="https://v1.api.us.janrain.com"
customerId="e0a70b4f-1eef-4856-bcdb-f050fee66aae"

curl -L -X POST "$hostname/$customerId/config/clients" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer Hu7UEPLpMEHNqROFFn1KbFTKipofq7Vuyf1ccEywSC2NWelaEhUY9s0JRUr8FriM' \
--data-raw '{
    "name": "Documentation Login Client",
    "redirectURIs": ["https://techdocs.akamai.com","https://oidc-playground.akamai.com/redirect_uri"],
    "loginPolicy": "07ccc9dc-3072-4059-9c46-6ccd5fb9ffe8",
    "tokenPolicy": "37a7bf21-9ac5-48c5-96b5-c2173debee26",
    "type": "public"
}
'
```

```node Node
const hostname="https://v1.api.us.janrain.com"
const customerId="e0a70b4f-1eef-4856-bcdb-f050fee66aae"

var request = require('request');
var options = {
  'method': 'POST',
  'url': hostname.concat("/", customerId, "/config/clients"),
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer CKTYZfelql9QKStDfx70Leb7BfLZAXNC25WJOPlX8FrUEqUxeAHpKudUkKhBloq6'
  },
  body: JSON.stringify({
    "name": "Documentation Login Client",
    "redirectURIs": [
      "https://techdocs.akamai.com",
      "https://oidc-playground.akamai.com/redirect_uri"
    ],
    "loginPolicy": "07ccc9dc-3072-4059-9c46-6ccd5fb9ffe8",
    "tokenPolicy": "37a7bf21-9ac5-48c5-96b5-c2173debee26",
    "type": "public"
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python Python
hostname="https://v1.api.us.janrain.com"
customerId="e0a70b4f-1eef-4856-bcdb-f050fee66aae"

import requests
import json

url = hostname + "/" + customerId + "/config/clients"

payload = json.dumps({
  "name": "Documentation Login Client",
  "redirectURIs": [
    "https://techdocs.akamai.com",
    "https://oidc-playground.akamai.com/redirect_uri"
  ],
  "loginPolicy": "07ccc9dc-3072-4059-9c46-6ccd5fb9ffe8",
  "tokenPolicy": "37a7bf21-9ac5-48c5-96b5-c2173debee26",
  "type": "public"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer CKTYZfelql9QKStDfx70Leb7BfLZAXNC25WJOPlX8FrUEqUxeAHpKudUkKhBloq6'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```json Response Example
{
    "id": "4358140d-7e5f-4e38-97a5-7bf8889d7490",
    "name": "Documentation Login Client",
    "redirectURIs": [
        "https://techdocs.akamai.com",
        "https://oidc-playground.akamai.com/redirect_uri"
    ],
    "loginPolicy": "07ccc9dc-3072-4059-9c46-6ccd5fb9ffe8",
    "tokenPolicy": "37a7bf21-9ac5-48c5-96b5-c2173debee26",
    "type": "public",
    "_links": {
        "self": {
            "href": "/config/e0a70b4f-1eef-4856-bcdb-f050fee66aae/clients/4358140d-7e5f-4e38-97a5-7bf8889d7490"
        },
        "application_client": {
            "href": "/config/79y4mqf2rt3bxs378kw5479xdu/clients/madbvfmtdvvv9zd7mtw48uexdznc3q54"
        }
    }
}
```

# Get your Identity Cloud hostname

<!-- shell@1 -->
<!-- node@1 -->
<!-- python@1 -->

Unless you have a custom domain, US organizations typically use the hostname **https<span>://v1.</span>api.us.janrain.com**.  Organizations outside the US should replace the **us** with their locale.

# Get your Akamai customer ID

<!-- shell@2 -->
<!-- node@2 -->
<!-- python@2 -->

Unique identifier issued to Akamai customers. To verify your custom ID, log on to Console and, on the **Manage Application** page, check the value of the **customer_id** setting.

# Configure your Content-Type

<!-- shell@5 -->
<!-- node@9 -->
<!-- python@20 -->

Set the **Content-Type** header to **application/json**. This indicates that the request body is sent in JSON format.

# Get authorization

<!-- shell@6 -->
<!-- node@10 -->
<!-- python@21 -->

This operation uses Bearer token authorization and requires an administrative access token returned by using the /login/token operation. See <a href="https://techdocs.akamai.com/identity-cloud-hosted-login/reference/get-started" target="_blank">Get started</a> for more information.

# Configure the client name

<!-- shell@8 -->
<!-- node@13 -->
<!-- python@10 -->

Unique name being assigned to the OpenID Connect client.

# Configure the redirect URIs

<!-- shell@9 -->
<!-- node@14-17 -->
<!-- python@11-14 -->

Array of URLs the user can be redirected to following a successful authentication. When requesting authentication your request needs to include one of the URLs specified in the **redirectURIs** key. If it doesn’t, the request fails.

# Configure the login policy

<!-- shell@10 -->
<!-- node@18 -->
<!-- python@15 -->

Unique identifier of the login policy assigned to the client. Login policies are required for both public clients and confidential clients, but are optional when creating a configuration client.

# Configure the token policy

<!-- shell@11 -->
<!-- node@19 -->
<!-- python@16 -->

Unique identifier of the token policy associated with the client. Token policies specify the time-to-live values for access and refresh tokens.

# Configure the client type

<!-- shell@12 -->
<!-- node@20 -->
<!-- python@17 -->

Specifies the OIDC client type. Confidential clients require you to pass the client secret in the authorization request. Public client don’t require you to pass a secret, in large part because they don’t even _have_ a client secret. For user logins and registrations Akamai recommends using a public client.

If you're creating a configuration client, used for obtaining administrative access tokens, set the **type** to **confidential**.

# Call the API

<!-- shell@4 -->
<!-- node@24-27 -->
<!-- python@24 -->

Use the POST method to create the OIDC client.

# Review the response



If successful, the API response includes the properties and property values for the new client.