---
updatedAt: 2026-04-20T19:23:48.000Z
---

# Get a login policy

Returns information about the specified login policy. All OpenID Connect clients used for logins and registrations need to be assigned a login policy.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Hosted Login",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://{hostname}"
    }
  ],
  "paths": {
    "/{customerId}/config/loginPolicies/{loginPolicyId}": {
      "get": {
        "operationId": "get-login-policy",
        "summary": "Get a login policy",
        "description": "Returns information about the specified login policy. All OpenID Connect clients used for logins and registrations need to be assigned a login policy.",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "10877ce3-8dc0-4e1c-9a15-d406387f8f12",
                  "identityStoreDetails": {
                    "type": "janrainCapture",
                    "connectionDetails": {
                      "domain": "us-dev.janraincapture.com",
                      "applicationId": "ces7u7uwwudrxtz933jvbehzne",
                      "entityType": "user",
                      "clientId": "6s7q89env535ek49hkz6hjsh3jgs93ud",
                      "clientSecret": "8c8frzvtxuoqbb7ayewvbgvn67s5dctx"
                    }
                  },
                  "loginURL": "https://v1.api.us.janrain.com/e0a70b4f-1eef-4856-bcdb-f050fee66aae/auth-ui/v2/login",
                  "title": "Video Login Policy",
                  "_links": {
                    "self": {
                      "href": "/config/e0a70b4f-1eef-4856-bcdb-f050fee66aae/loginPolicies/10877ce3-8dc0-4e1c-9a15-d406387f8f12"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "description": "Returns information about the specified login policy. Login policies help manage the user login experience.\n",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the login policy.\n"
                    },
                    "type": {
                      "type": "string",
                      "description": "Login policy type. This must always be set to `janrainCapture`.\n"
                    },
                    "domain": {
                      "type": "string",
                      "description": "URL of your Identity Cloud Capture domain.\n"
                    },
                    "applicationId": {
                      "type": "string",
                      "description": "Unique identifier of the Identity Cloud application assigned to the login policy.\n"
                    },
                    "entityType": {
                      "type": "string",
                      "description": "Name of the user profile database assigned to the login policy.\n"
                    },
                    "clientId": {
                      "type": "string",
                      "description": "Unique identifier of the `owner` client assigned to the login policy.\n"
                    },
                    "clientSecret": {
                      "type": "string",
                      "description": "Client secret of the `owner` client assigned to the login policy.\n"
                    },
                    "loginURL": {
                      "type": "string",
                      "description": "URL of the web page used for Hosted Login logins and registrations.\n"
                    },
                    "title": {
                      "type": "string",
                      "description": "Name of the new login policy.\n"
                    },
                    "href": {
                      "type": "string",
                      "description": "Configuration URL for the login policy.\n"
                    }
                  }
                }
              }
            },
            "description": "Successful response\n"
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "$ref": "#/paths/~1%7BcustomerId%7D~1config~1clients/get/responses/403/content/application~1json/example"
                }
              }
            },
            "description": "Typically occurs when you make a call using an invalid or expired administrative access token. See [Get started](ref:get-started) for information on configuring authentication for Hosted Login.\n"
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "$ref": "#/paths/~1%7BcustomerId%7D~1login~1jwk/get/responses/404/content/application~1json/example"
                }
              }
            },
            "description": "The specified item couldn't be found.\n"
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/paths/~1%7BcustomerId%7D~1login~1jwk/parameters/0"
        },
        {
          "description": "Unique identifier of a Hosted Login policy. Login policies help manage the user login experience.\n",
          "in": "path",
          "name": "loginPolicyId",
          "required": true,
          "schema": {
            "type": "string",
            "example": "1e1ab726-f4b5-4bad-ba45-877027af4097"
          }
        }
      ]
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "externalDocs": {
    "url": "https://techdocs.akamai.com/identity-cloud-hosted-login/reference",
    "description": "See documention for Akamai's Identity Cloud: Hosted Login API\n"
  }
}
```