Note: This API reference is only for the following products:

  • Age Check, Age Verification, Age Assure
  • Sign-in Sign-in Refresh, Sign-up, Sign-up Plus
  • ID Live, ID Check, ID Proof, ID Assure, ID Scan

If you are integrating with the data service please use https://docs.oneid.uk/api-reference.

OIDC Configuration URLs

Server
https://controller.myoneid.co.uk

Production (Live data)

https://controller.sandbox.myoneid.co.uk

Sandbox (Test data)

Server Variables
http Basic

Requests should be made with an Authorization header that has the value Basic base64(client_id:client_secret).

Your client_id and client_secret can be obtained from the OneID portal, or by contacting support.

http Bearer

The access_token retrieved from the Token API.

Retrieve Token

This API allows you to retrieve an access and ID token using the code that was returned when the end user was redirected back to your return URL.

Auth
Request Body
objectobject
grant_typestring

Must be set to 'authorization_code'.

Enum: authorization_code

codestring

The code that was passed to your return URL.

POST /token
Copy
Responses
200

Exchange code for token.

Headers
x-request-idstring

A unique ID for the request. Please quote this ID when contacting support about a request.

Body
objectobject
access_tokenstring

The requested access token. You can use this token to authenticate to the secured APIs. You should treat this as an opaque value. Don't attempt to validate or parse the token.

token_typestring

The only type that OneID supports is Bearer.

expires_inint32

The amount of time that an access token is valid (in seconds).

id_tokenstring
Response
Copy

Retrieve Accounts

This API requires the accounts scope.

Auth
GET /accounts
Copy
Responses
200

OK

Response
Copy

Retrieve Userinfo

Auth
GET /userinfo
Copy
Responses
200

OK

Response
Copy