NiCE Authorize API
The Authorize API from NiCE — 1 operation(s) for authorize.
The Authorize API from NiCE — 1 operation(s) for authorize.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nice:nice-authorize-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Nice Authorize API
version: v1
description: 'Operations tagged Authorize across 2 of this provider''s published API definitions: nice-authentication-globalauthentication.json, nice-authentication-globalauthentication-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Authorize
paths:
/auth/authorize:
get:
tags:
- Authorize
summary: Start a user authorization process
description: 'Each user authentication starts with either this endpoint or its corresponding POST. When
used with a get action the following flows are supported:
* OpenID Connect initial authorization. This follows the OIDC specification.
This endpoint and its corresponding POST version is the only endpoint that sets
the `cxone_sso_state` cookie. This cookie is limited
to this host and path and is not accessible to JavaScript. It must be sent securely.
### OpenID Connect
The parameters and implementation meets the specification of the
OpenID Connect Core Specification
section 3.1.2.1.
If supported for the client_id then PKCE can
also be used as part of this flow and the corresponding token request.
Note that the `tenantId` and `resellerId` parameters are not part of the OpenID Connect standard but it allows additional
parameters. These parameters contain unique tenant and reseller identifiers and if used limit the users that
are allowed to authenticate.
### User Interactions
This endpoint may return a user interface which starts an authentication interaction with a user. In these cases
a POST to this endpoint is used to submit user information and continue the flow.
Note: Do not open the authorization page within an iframe. The OIDC authorization flow is not supported when embedded inside an iframe due to security restrictions and browser compatibility issues. For optimal security and functionality, please ensure that the authorization page is opened in a top-level window or tab.'
operationId: getAuthAuthorize
parameters:
- in: cookie
name: cxone_sso_state
description: Optionally indicate current authentication state to the service.
required: false
schema:
type: string
format: base64
example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImhhcnJ5LnBvdHRlckBuaWNlLmNvbSIsInRlbmFudElkIjoiMTFlN2YwYjItZmVlNi03MzEwLTgwNjgtMDI0MmFjMTEwMDA0IiwidGVuYW50QmFubmVyIjp7ImJhY2tncm91bmRDb2xvckNvZGUiOiIjQTRDMkY0IiwiZm9udENvbG9yQ29kZSI6IiMwMDAiLCJ0eXBlIjoidGVuYW50IiwibWVzc2FnZSI6IlBIQStWR1Z6ZENCQ1lXNXVaWEk4TDNBKyJ9LCJpYXQiOjE3NDE2MDMzNDMsImV4cCI6MTc0NDE5NTM0M30.jGuchRB4tGoXHa4tOOL1nYfLI4XbKBQBbYPQ5ipk6TpGbhN4nk-VnILzZHgTjk_ac4PI4M2vYvPlNUjDZx2K85w0CRpM7ErRPvOnf2eTYlTeYLcP0P5vlbx3lB2fMB8GOGHikdAas6gRq0A5ePB5Xe8Wz9f-Vo1SAlnOeFwONXA
- in: query
name: tenantId
description: Identify the tenant that is requesting authentication to allow customization by tenant. This is optional for the initial authentication flow and not allowed in other cases.
required: false
example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
schema:
type: string
format: uuid
- in: query
name: resellerId
description: Identify the reseller that is requesting authentication to allow customization by reseller. This is optional for the initial authentication flow and not allowed in other cases.
required: false
example: 3fa85f84-5717-4562-b3fc-2c963f77afa6
schema:
type: string
format: uuid
- in: query
name: scope
description: The requested scope properties, which must equal 'openid'. This is required for the initial authentication flow and not allowed in other cases.
required: false
style: form
explode: false
schema:
type: array
items:
type: string
enum:
- openid
- in: query
name: response_type
description: The response type requested for this flow. Currently only `code` is supported. This is required for the initial authentication flow and not allowed in other cases.
required: false
schema:
type: string
enum:
- code
- in: query
name: client_id
description: The client identifier of the application requesting authentication. This is required for the initial authentication flow and not allowed in other cases.
required: false
schema:
type: string
- in: query
name: redirect_uri
description: This is the redirect URL that will be followed after authentication. This is required for the initial authentication flow and not allowed in other cases.
required: false
example: https://integrating-app.com/redirect_handler
schema:
type: string
format: url
- in: query
name: state
description: An optional state parameter that is owned by the client and will be passed back unmodified. This is optional for the initial authentication and the redirect flow and not allowed in other cases.
example: af0ifjsldkj
schema:
type: string
- in: query
name: nonce
description: An optional nonce that is owned by the client and can be used to mitigate replay attacks. This is optional for the initial authentication flow and not allowed in other cases.
example: n-0S6_WzA2Mj
schema:
type: string
- in: query
name: display
description: An optional indicator of what type of display should be used. This is optional for the initial authentication flow and not allowed in other cases.
schema:
type: string
enum:
- page
- popup
default: page
- in: query
name: prompt
description: 'An optional indicator of whether interaction with the user is allowed.
The default behavior is a mix of the two, login will be used unless there is state
for a current user session. This is optional for the initial authentication flow and not
allowed in other cases.
'
schema:
type: string
enum:
- none
- login
- in: query
name: max_age
description: 'An optional indicator of how recently the user must have authenticated in order
to leverage a current user session. This is optional for the initial authentication flow and
not allowed in other cases. The value is in seconds. When used the ID token must include
an `auth_time` claim.
'
schema:
type: integer
minimum: 0
- in: query
description: 'A previously received id_token that identifies the user who must authenticate. This is optional for the initial authentication flow and
not allowed in other cases. If the identified user matches the state of `cxone_sso_state` as being currently logged in the no user interaction is required.
If the identity does not match or if there is no state available then a new session is started but must be constrained to authenticate the identified user.
This parameter takes priority over `login_hint` parameter if both are present.
'
name: id_token_hint
schema:
type: string
format: jwt
- in: query
name: login_hint
description: 'A hint for an identifier for the user. This will be used as the username and identifies the user that must authenticate
(it cannot be changed during authentication). This is optional for the initial authentication flow and not allowed in other cases.
This parameter is ignored if the `id_token_hint` parameter is present.
'
schema:
type: string
example: alice
- in: query
description: 'A list of authentication requirements that should be met by the user. This is optional for the initial authentication flow and not allowed in other cases.
The values provided must not cause errors, but do not need to have any impact.
'
name: acr_values
style: form
explode: false
schema:
type: array
items:
type: string
- in: query
description: A choice list of locales for the UX.
name: ui_locales
style: form
explode: false
schema:
type: array
items:
type: string
example: en-US en es jp
- in: query
description: A PKCE code challenge, described in section 4.3 of the [PKCE standard](https://tools.ietf.org/html/rfc7636). This is optional for the initial authentication flow and not allowed in other cases.
name: code_challenge
schema:
type: string
format: base64
example: elU6u5zyqQT2f92GRQUq6PautAeNDf4DQPayyR0ek_c
- in: query
description: A PKCE code challenge method, described in section 4.3 of the [PKCE standard](https://tools.ietf.org/html/rfc7636). This is optional for the initial authentication flow and not allowed in other cases.
name: code_challenge_method
schema:
type: string
enum:
- S256
- in: query
description: An authorization code passed back from a federated server. Required in redirect calls unless the error parameter is present.
name: code
schema:
type: string
example: really_any_type_of_string
responses:
'200':
description: 'User interaction required. The authentication process may require obtaining information from
the user. This process may complete after several different responses based on the information
required, and can also trigger federated requests to other identity providers. Ultimately a
302 response will complete the process and return control back to the requesting application.
'
content:
text/html:
schema:
type: string
example: " <!DOCTYPE html> <html>\n <body>\n <form action=\"/auth/authorize\" method=\"post\">\n \t<input type=\"hidden\" name=\"state\" value=\"{base64 state}\">\n \t<input type=\"text\" id=\"username\" name=\"username\">\n\t<input type=\"submit\" id=\"submit\" name=\"submit\" value=\"Next\">\n </form>\n </body>\n </html> "
'302':
description: 'Next flow in the authentication process. This is used for either:
* A user was already authenticated based on saved state and so a code is returned to the `redirect_uri`.
* An error occurred, and so an error is returned to the `redirect_uri`.
When redirecting to the caller''s `redirect_uri` can include the following parameters as defined
in the OpenID Connect specification:
* code: Used to return an authorization code on success.
* error: Used to return an error as defined in OpenID Connect.
* error_description: Used to return a description of the error.
The error and error_description should *not* expose any details about the failure that could be used
to refine an attack.
'
headers:
Set-Cookie:
description: On a successful login (or to clear current state) store state for future authentications.
required: false
schema:
type: string
example: cxone_sso_state=U29tZSBhdXRoZW50aWNhdGlvbiBzdGF0ZQ%3D%3D; Max-Age=604800; Path=/auth/authorize; Secure; HttpOnly; SameSite=Lax
Location:
description: This same flow is used for both errors and for successful authentication returning a code. Eventually a redirect to the `redirect_uri` will occur.
required: true
schema:
type: string
format: url
example: https://integrating-app.com/redirect_handler?code=e7772676-132e-41a5-90db-f6fa04fc601a&state=n-0S6_WzA2Mj
'400':
description: 'This is used in two cases as required by the OpenID Connect specification.
1. The `client_id` parameter is required and is not present.
1. The `redirect_uri` parameter is required and is not present, or is not valid.
'
content:
text/plain:
schema:
type: string
examples:
no_client_id:
summary: No Client ID
value: The required client_id parameter was not provided.
no_redirect_uri:
summary: No Redirect URI
value: The required redirect_uri parameter was no provided.
invalid_redirect_uri:
summary: Invalid Redirect URI
value: The provided redirect_uri parameter is not valid.
post:
tags:
- Authorize
summary: Start or continue a user authorization process
description: 'Each user authentication starts with this endpoint (either GET or POST).
There are three major flows supported:
* OpenID Connect initial authorization. This follows the OIDC specification.
* User Interactions. This endpoint provides continued user interfaces for user login.
This endpoint (GET and POST) is the only one that sets
the `cxone_sso_state` cookie. This cookie is limited
to this host and path and is not accessible to JavaScript. It must be sent securely.
### OIDC Connect
The parameters and implementation meets the specification of the
OpenID Connect Core Specification
section 3.1.2.1.
If supported for the client_id then PKCE can
also be used as part of this flow and the corresponding token request.
Note that the `tenantId` and `resellerId` parameters are not part of the OpenID Connect standard but it allows additional
parameters. These parameters contain unique tenant and reseller identifiers
and if used limit the users that are allowed to authenticate.
### User Interactions
This URL may return a user interface which starts or continues an authentication interaction with a user.
The login flow operates in phases as more information is obtained. Eventually a 302 redirect will occur
to pass control back to the requesting application.
Note: Do not open the authorization page within an iframe. The OIDC authorization flow is not supported when embedded inside an iframe due to security restrictions and browser compatibility issues. For optimal security and functionality, please ensure that the authorization page is opened in a top-level window or tab.'
operationId: authAuthorize
parameters:
- in: cookie
name: cxone_sso_state
description: Optionally indicate current authentication state to the service.
required: false
schema:
type: string
format: base64
example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImhhcnJ5LnBvdHRlckBuaWNlLmNvbSIsInRlbmFudElkIjoiMTFlN2YwYjItZmVlNi03MzEwLTgwNjgtMDI0MmFjMTEwMDA0IiwidGVuYW50QmFubmVyIjp7ImJhY2tncm91bmRDb2xvckNvZGUiOiIjQTRDMkY0IiwiZm9udENvbG9yQ29kZSI6IiMwMDAiLCJ0eXBlIjoidGVuYW50IiwibWVzc2FnZSI6IlBIQStWR1Z6ZENCQ1lXNXVaWEk4TDNBKyJ9LCJpYXQiOjE3NDE2MDMzNDMsImV4cCI6MTc0NDE5NTM0M30.jGuchRB4tGoXHa4tOOL1nYfLI4XbKBQBbYPQ5ipk6TpGbhN4nk-VnILzZHgTjk_ac4PI4M2vYvPlNUjDZx2K85w0CRpM7ErRPvOnf2eTYlTeYLcP0P5vlbx3lB2fMB8GOGHikdAas6gRq0A5ePB5Xe8Wz9f-Vo1SAlnOeFwONXA
requestBody:
description: 'There are several different forms that can be submitted to this endpoint. Some of them are
mostly mandated by the OpenID Connect specification. Differentiating the type of request is
done as follows in this order, with the first match determining the flow:
* If there is a `client_id` property then this is an initial OIDC request.
* All other submissions represent user interactions with a variety of different fields.
'
content:
application/x-www-form-urlencoded:
schema:
oneOf:
- $ref: '#/components/schemas/authenticateOIDCRequest'
- $ref: '#/components/schemas/authenticateUXRequest'
examples:
oidc:
summary: Authorization code flow.
value: display=page&response_type=code&client_id=example_client_id&redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb&scope=openid
ux:
summary: User interactions for authentication.
value: context=aba0c2e0-c42f-4e69-8cea-a8f9c1e06f60&state=eyJkaXNwbGF5IjoicGFnZSIsInJlZGlyZWN0X3VyaSI6Imh0dHA6Ly9zZHl&tenantFQDN=&username=alice&next=Next
responses:
'200':
description: This response indicates that additional information is required to complete the authentication.
content:
text/html:
schema:
type: string
example: " <!DOCTYPE html> <html>\n <body>\n <form action=\"/auth/authorize\" method=\"post\">\n \t<input type=\"hidden\" name=\"code\" value=\"{code}\">\n \t<input type=\"hidden\" id=\"username\" value=\"{username}\">\n \t<input type=\"text\" id=\"password\" name=\"password\">\n \t<input type=\"submit\" id=\"submit\" name=\"submit\" value=\"Login\">\n </form>\n </body>\n </html> "
'302':
description: 'Next flow in the authentication process. This is used for either:
* A user was already authenticated based on saved state and so a code is returned to the `redirect_uri`.
* An error occurred, and so an error is returned to the `redirect_uri`.
When redirecting to the caller''s `redirect_uri` can include the following parameters as defined
in the OpenID Connect specification:
* code: Used to return an authorization code on success.
* error: Used to return an error as defined in OpenID Connect.
* error_description: Used to return a description of the error.
The error and error_description should *not* expose any details about the failure that could be used
to refine an attack.
'
headers:
Set-Cookie:
description: On a successful login (or to clear current state) store state for future authentications.
required: false
schema:
type: string
example: cxone_sso_state=U29tZSBhdXRoZW50aWNhdGlvbiBzdGF0ZQ%3D%3D; Max-Age=604800; Path=/auth/authenticate; Secure; HttpOnly; SameSite=Lax
Location:
description: This same flow is used for both errors and for successful authentication returning a code. Eventually a redirect to the `redirect_uri` will occur.
required: true
schema:
type: string
format: url
example: https://integrating-app.com/redirect_handler?code=e7772676-132e-41a5-90db-f6fa04fc601a&state=n-0S6_WzA2Mj
'400':
description: 'This is used in two cases as required by the OpenID Connect specification.
1. The `client_id` parameter is required and is not present.
1. The `redirect_uri` parameter is required and is not present, or is not valid.
'
content:
text/plain:
schema:
type: string
examples:
no_client_id:
summary: No Client ID
value: The required client_id parameter was not provided.
no_redirect_uri:
summary: No Redirect URI
value: The required redirect_uri parameter was no provided.
invalid_redirect_uri:
summary: Invalid Redirect URI
value: The provided redirect_uri parameter is not valid.
components:
schemas:
authenticateOIDCRequest:
type: object
required:
- scope
- response_type
- client_id
- redirect_uri
properties:
tenantId:
type: string
format: uuid
description: Identify the tenant that is requesting authentication to allow customization by tenant.
example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
resellerId:
type: string
format: uuid
description: Identify the reseller that is requesting authentication to allow customization by reseller.
example: 3fa85f84-5717-4562-b3fc-2c963f77afa6
scope:
type: string
enum:
- openid
description: The requested scope properties, which must equal 'openid'.
response_type:
type: string
enum:
- code
description: The response type requested for this flow. Currently only `code` is supported.
client_id:
type: string
description: The client identifier of the application requesting authentication.
redirect_uri:
type: string
format: url
description: This is the redirect URL that will be followed after authentication.
example: https://integrating-app.com/redirect_handler
state:
type: string
description: An optional state parameter that is owned by the client and will be passed back unmodified.
example: af0ifjsldkj
nonce:
type: string
description: An optional nonce that is owned by the client and can be used to mitigate replay attacks.
example: n-0S6_WzA2Mj
display:
type: string
enum:
- page
- popup
description: An optional indicator of what type of display should be used.
default: page
prompt:
type: string
enum:
- none
- login
description: 'An optional indicator of whether interaction with the user is allowed.
The default behavior is a mix of the two, login will be used unless there is state
for a current user session.
'
max_age:
type: integer
minimum: 0
description: 'An optional indicator of how recently the user must have authenticated in order
to leverage a current user session. The value is in seconds. When used the ID token must include
an `auth_time` claim.
'
id_token_hint:
type: string
format: jwt
description: 'A previously received id_token that identifies the user who must authenticate.
If the identified user matches the state of `cxone_sso_state` as being currently logged in the no user interaction is required.
If the identity does not match or if there is no state available then a new session is started but must be constrained to authenticate the identified user.
This parameter takes priority over `login_hint` parameter if both are present.
'
login_hint:
type: string
example: alice
description: 'A hint for an identifier for the user. This will be used as the username and identifies the user that must authenticate (it cannot be changed during authentication).
This parameter is ignored if the `id_token_hint` parameter is present.
'
acr_values:
type: array
items:
type: string
description: 'A space-separated list of authentication requirements that should be met by the user.
The values provided must not cause errors, but do not need to have any impact.
'
ui_locales:
type: array
items:
type: string
description: A space-separated choice list of locales for the UX.
example: en-US en es jp
code_challenge:
type: string
format: base64
description: A PKCE code challenge, described in section 4.3 of the [PKCE standard](https://tools.ietf.org/html/rfc7636).
example: 6DMH6winME%2ByLGKqYc%2BR0hicZbEyDTHfxaKc6o3BRjw
code_challenge_method:
type: string
enum:
- S256
description: A PKCE code challenge method, described in section 4.3 of the [PKCE standard]().
authenticateUXRequest:
type: object
required:
- tenantFQDN
- state
properties:
tenantFQDN:
type: string
description: This is used to specify the tenant FQDN to customize the login experience. It has the same effect as passing the tenantId parameter.
example: tenant.my.niceincontact.com
username:
type: string
description: This is the username for the authentication request.
example: user@globalauthservice.com
state:
type: string
format: base64
description: This is an encapsulation of all the state associated with the authentication request.
example: VGhpcyBpcyB3aGF0ZXZlciBzdGF0ZSBpcyBuZWVkZWQ=
securitySchemes:
tokenAuth:
type: http
scheme: basic
userAuth:
type: http
scheme: bearer
bearerFormat: JWT
x-refined-from:
- nice-authentication-globalauthentication.json
- nice-authentication-globalauthentication-openapi.yml