Skip to main content
Use this guide to authenticate with the SKOR Modular API and make your first protected request.

Prerequisites

Before you begin, make sure you have:
  • A SKOR Modular API client_id
  • A SKOR Modular API client_secret
  • The SKOR Modular API base URL for your environment

Choose a base URL

EnvironmentBase URL
Livehttps://api.skortorent.com/api/v1
Sandboxhttps://dev-api.skortorent.com/api/v1
The examples below use live. Replace the base URL with sandbox when testing with sandbox credentials.
1

Generate an access token

Send a token request to /keys/generate-token using HTTP Basic Authentication. Use your client_id as the username and your client_secret as the password.
curl -X POST "https://api.skortorent.com/api/v1/keys/generate-token" \
  -u "$SKOR_CLIENT_ID:$SKOR_CLIENT_SECRET"
The response returns a token that you use to authenticate protected Modular API requests.
2

Store the token securely

Treat the token as a secret. Do not expose it in client-side code, logs, or public repositories.
export SKOR_ACCESS_TOKEN="<token>"
3

Call protected endpoints

Send the token as a bearer token in the Authorization header.
curl "https://api.skortorent.com/api/v1/tenants/get-all-tenants" \
  -H "Authorization: Bearer $SKOR_ACCESS_TOKEN"
Need credentials or help with authentication? Contact info@skortorent.com.