Note: This API reference is only for our data service and partner 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

This is used for non partner APIs.

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

This is used for partner APIs.

FlowClient Credentials
Token URL/v1/token
Scopes
NameDescription

Authentication

We have two token APIs.

Create a non Partner API Token

Retrieves an API token that can be used for non Partner APIs.

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

Create a Partner API Token

Retrieves an API token that can be used for Partner APIs.

Auth
Request Body
objectobject
grant_typestring

Must be set to client_credentials.

Enum: client_credentials

POST /v1/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