Look Up Datas | SaaS API Finance Currency Address Country
close

Documentation

1. Getting Started


1.1. Token

Access_token is required for use of all endpoints. You must be a member to get access_token. After you become a member, you can generate access_token via the following endpoint.

Base URL:
  https://auth.lookupdatas.com
Request:
  curl --location 'https://auth.lookupdatas.com/connect/token' 
  --header 'Content-Type: application/x-www-form-urlencoded' 
  --data-urlencode 'grant_type=client_credentials' 
  --data-urlencode 'client_id=[client_id]' 
  --data-urlencode 'client_secret=[client_secret]' 
  --data-urlencode 'scope=[scope]'

[client_id]: Get from user dashboard.

[client_secret]: Get from user dashboard.

[scope]: Get from user dashboard.

Response:
  {
      "access_token": "eyJhb...",
      "expires_in": 3600,
      "token_type": "Bearer",
      "scope": "[scope]"
  }

When a request is made to the endpoints without tokens, an unauthorized error is received as follows.

  {
    "type": "https://tools.ietf.org/html/rfc7235#section-3.1",
    "title": "Unauthorized",
    "status": 401,
    "traceId": "00-5776d76beae682af1857e7edb0970702-2545be158d43cc8a-00"
}