Note: This API reference is only for our data service APIs. If you are integrating with the OneID journey please use https://docs.oneid.uk/guides.

Server
https://api.oneid.uk

Production (Live data)

https://api.sandbox.oneid.uk

Sandbox (Test data)

Server Variables
oauth2 OAuth

FlowClient Credentials
Token URL/v1/auth/token
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.

Authentication

Create a Token

Auth
Request Body
objectobject
grant_typestring

Must be set to client_credentials.

Enum: client_credentials

POST /v1/auth/token
Copy
Responses
200

Token created

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).

default

Error

Response
Copy