Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Nice Userinfo API
version: v1
description: 'Operations tagged Userinfo 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: User Info
paths:
/auth/userinfo:
get:
tags:
- User Info
summary: Get basic information about an authenticated user
description: 'Provide the OpenID Connect standard UserInfo endpoint. See the meets the specification of the
OpenID Connect Core Specification
section 5.3.1 for details and section 5.1 for claim information. Note that the specification
defines this resource as an OAuth 2 Protected Resource and so the error returns are specified by
both the OIDC Core Specification as well as the
OAuth 2.0 Authorization Framework.'
security:
- userAuth: []
responses:
'200':
description: Success
content:
application/json:
schema:
title: UserInfo Response
type: object
properties:
sub:
type: string
name:
type: string
given_name:
type: string
family_name:
type: string
email:
type: string
example:
sub: user:11e9936a-ffe8-2090-8c4b-0242ac110005
name: Ashadeepa Debnath
given_name: Ashadeepa
family_name: Debnath
email: ashadeepa.debnath@nice.com
'401':
description: Unauthorized
headers:
WWW-Authenticate:
description: Header required by OAuth 2 specification.
required: true
schema:
type: string
example: error="invalid token"
enum:
- error="invalid token"
Cache-Control:
description: Prevent caching.
required: true
schema:
type: string
example: no-store
enum:
- no-store
Pragma:
description: Prevent caching.
required: true
schema:
type: string
example: no-cache
enum:
- no-cache
operationId: getAuthUserinfo
x-operation-id-source: derived
post:
tags:
- User Info
summary: Get basic information about an authenticated user
description: 'Provide the OpenID Connect standard UserInfo endpoint. See the meets the specification of the
OpenID Connect Core Specification
section 5.3.1 for details and section 5.1 for claim information. Note that the specification
defines this resource as an OAuth 2 Protected Resource and so the error returns are specified by
both the OIDC Core Specification as well as the
OAuth 2.0 Authorization Framework.'
security:
- userAuth: []
responses:
'200':
description: Success
content:
application/json:
schema:
title: UserInfo Response
type: object
properties:
sub:
type: string
name:
type: string
given_name:
type: string
family_name:
type: string
email:
type: string
example:
sub: user:11e9936a-ffe8-2090-8c4b-0242ac110005
name: Ashadeepa Debnath
given_name: Ashadeepa
family_name: Debnath
email: ashadeepa.debnath@nice.com
'401':
description: Unauthorized
headers:
WWW-Authenticate:
description: Header required by OAuth 2 specification.
required: true
schema:
type: string
example: error="invalid token"
enum:
- error="invalid token"
Cache-Control:
description: Prevent caching.
required: true
schema:
type: string
example: no-store
enum:
- no-store
Pragma:
description: Prevent caching.
required: true
schema:
type: string
example: no-cache
enum:
- no-cache
operationId: postAuthUserinfo
x-operation-id-source: derived
components:
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