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

# Quickstart

> Make your first API request

Use this guide to configure API credentials and make your first request.

<Steps>
  <Step title="Get your API key">
    1. Log in to your [Algure account](https://app.algure.com)
    2. Head over to **Settings** > **Organization** > **Intergations**
    3. Click on **Algure API** > **Create configuration**
    4. Give your integration a name
    5. Copy the **Username** and **Password** and store it securely
  </Step>

  <Step title="Your first request">
    Use the following command to list all the countings in your organization. Replace `USERNAME` and `PASSWORD` for the credentials you copied earlier.

    ```shellscript theme={"dark"}
    curl --request GET \
      --url https://api.algure.com/v1/countings \
      --user USERNAME:PASSWORD \
      --header 'Content-Type: application/json' 
    ```
  </Step>

  <Step title="The response">
    If everything was set up correctly, you should see a list with the countings of your organization:

    ```json theme={"dark"}
    {
      "items": [
        {
          "id": "00bb39e1-0d92-4c2b-ab2b-eb96950ec221",
          "warehouse": {
            "id": 10,
            "code": "LOG",
            "name": "LOGÍSTIC",
            "slug": "log"
          },
          "active": false,
          "startedAt": "2024-11-06T08:47:37.025Z",
          "endsAt": "2024-11-06T12:47:00.000Z",
          "participants": [
            {
              "id": 40,
              "username": "Pere"
            }
          ],
          "totalProducts": 211,
          "totalProductsCounted": 211,
          "totalProductsLeft": 0,
          "totalDiscrepancies": 5,
          "totalIncidents": 1
        }
      ],
      "meta": {
        "total": 1
      }
    }
    ```
  </Step>
</Steps>
