> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skortorent.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Generate a Modular API token and make authenticated requests

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

| Environment | Base URL                                |
| ----------- | --------------------------------------- |
| Live        | `https://api.skortorent.com/api/v1`     |
| Sandbox     | `https://dev-api.skortorent.com/api/v1` |

The examples below use live. Replace the base URL with sandbox when testing with sandbox credentials.

<Steps>
  <Step title="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.

    ```bash theme={null}
    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.
  </Step>

  <Step title="Store the token securely">
    Treat the token as a secret. Do not expose it in client-side code, logs, or public repositories.

    ```bash theme={null}
    export SKOR_ACCESS_TOKEN="<token>"
    ```
  </Step>

  <Step title="Call protected endpoints">
    Send the token as a bearer token in the `Authorization` header.

    ```bash theme={null}
    curl "https://api.skortorent.com/api/v1/tenants/get-all-tenants" \
      -H "Authorization: Bearer $SKOR_ACCESS_TOKEN"
    ```
  </Step>
</Steps>

<Tip>
  Need credentials or help with authentication? Contact [info@skortorent.com](mailto:info@skortorent.com).
</Tip>
