Skip to content

Authentication

Authentication endpoint to generate Bearer/JWT tokens

Authenticate

Request

Endpoint to generate a Bearer JWT Authentication Token using your username (User Key) and password. The token is required for accessing all Creditsafe Sweden REST APIs including GetDataUnits, DateCheck Consumer, DateCheck Company, GetSignatory, GetData, SearchEngine and SPAR Consumer search. Tokens are valid for one hour and multiple valid tokens can exist simultaneously.

Bodyapplication/jsonrequired
usernamestring, <= 30 charactersrequired

Your User Key as provided by Creditsafe (case-sensitive). Note: This is NOT the email address used for website login.

Example:"myUsername"
passwordstring, (password), <= 30 charactersrequired

Your password (case-sensitive)

Example:"myS3cretP@ssw0rd999!"
POST
/v1/authenticate
curl -i -X POST \
  https://connect.creditsafe.com/v1/authenticate \
  -H 'Content-Type: application/json' \
  -d '{
    "username": "myUsername",
    "password": "myS3cretP@ssw0rd999!"
  }'

Responses

Successful authentication - Returns JWT token valid for 1 hour

Bodyapplication/json
tokenstring

JWT Bearer token to be included in the Authorization header for all subsequent API requests. Valid for 1 hour from generation. Multiple valid tokens can exist simultaneously.

Example:"eyJhbGciOiJSUzI1NiIsImtpZCI6IkQ3RTRBNzMxRjMyQjYwQzM4QTQxMkREMUVCNEJBOTg4IiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL3NlLXdlYnNlcnZpY2UuYXBwcy5jcmVka
Response
{ "token": "eyJhbGciOiJSUzI1NiIsImtpZCI6Im…hPeGE7Ak8YtKFbA" }