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

# Nutzung nach Endpunkt

> GET /console/usage/by-endpoint/

Gibt Anfragenzahlen gruppiert nach Endpunkt und HTTP-Methode zurück — nützlich, um zu sehen, welche Teile der Management API eine Integration tatsächlich nutzt. Befindet sich auf dem **regulären** Scanova-API-Host (`qcg-api.scanova.io`), authentifiziert mit Ihrem Dashboard-OAuth-Access-Token.

## Anfrage

```
GET https://qcg-api.scanova.io/console/usage/by-endpoint/
Authorization: Bearer <your_oauth_access_token>
```

<ParamField query="environment" type="string" required>
  Einer von `sandbox`, `live`, `zapier`, `mcp`. Wählt aus, welche Schlüssel-Logs aggregiert werden.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -G "https://qcg-api.scanova.io/console/usage/by-endpoint/" \
    -H "Authorization: Bearer <your_oauth_access_token>" \
    -d environment=live
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  [
    { "endpoint": "https://management.scanova.io/qr/", "method": "GET", "count": 2140, "error_rate": 0.004 },
    { "endpoint": "https://management.scanova.io/qr/", "method": "POST", "count": 318, "error_rate": 0.03 },
    { "endpoint": "https://management.scanova.io/qrcode/QR7K9M2XN/", "method": "PUT", "count": 96, "error_rate": 0.0 }
  ]
  ```
</ResponseExample>

### Antwortfelder

Die Antwort ist ein Array mit einem Eintrag pro eindeutigem `(endpoint, method)`-Paar, das in den Logs vorkommt, absteigend nach `count` sortiert.

<ResponseField name="endpoint" type="string">
  Die vollständige protokollierte Anfrage-URL, einschließlich des tatsächlichen Werts des Pfadparameters (z. B. eine bestimmte `qrid`) — keine normalisierte Routen-Vorlage. Erwarten Sie viele unterschiedliche Einträge für pfadparametrisierte Routen, wenn Sie diese mit verschiedenen IDs aufgerufen haben.
</ResponseField>

<ResponseField name="method" type="string">
  Die HTTP-Methode der Anfrage, z. B. `GET`, `POST`, `PUT`, `DELETE`.
</ResponseField>

<ResponseField name="count" type="integer">
  Gesamtzahl der protokollierten Anfragen für dieses Endpunkt-/Methoden-Paar.
</ResponseField>

<ResponseField name="error_rate" type="number">
  Anteil (`0`–`1`) der Anfragen an dieses Endpunkt-/Methoden-Paar, die einen Statuscode von `400` oder darüber zurückgegeben haben.
</ResponseField>

<Note>
  Anders als [Nutzungsstatistiken](/de/api-reference/management-api/tokens/usage-stats) und [Tägliche Nutzung](/de/api-reference/management-api/tokens/usage-daily) hat dieser Endpunkt kein `period`-/`days`-Zeitfenster — er aggregiert über die gesamte Log-Aufbewahrungsdauer (Anfrage-Logs werden nach 6 Monaten gelöscht).
</Note>

## Fehler

`environment` ist erforderlich, gleiche Validierung wie bei [Nutzungsstatistiken](/de/api-reference/management-api/tokens/usage-stats#errors).

## Verwandte Themen

* [Nutzungsstatistiken](/de/api-reference/management-api/tokens/usage-stats) — derselbe Traffic als einzelner Gesamtwert über ein rollierendes Zeitfenster statt als Aufschlüsselung pro Endpunkt.
* [Tägliche Nutzung](/de/api-reference/management-api/tokens/usage-daily) — derselbe Traffic, aufgeschlüsselt nach Kalendertag statt nach Route.
* [Management-API-Übersicht](/de/api-reference/management-api/overview) — die `environment`-Werte (`sandbox`, `live`, `zapier`, `mcp`), nach denen dieser Endpunkt aggregiert.


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /console/usage/by-endpoint/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    management.scanova.io (QR codes, folders, tags, leads, forms, analytics,
    plans, shared users & roles), plus the token-creation and usage-stats
    endpoints used to authenticate against it. Every path and request/response
    shape below was verified live against a real API key and the actual running
    backend (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://management.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /console/usage/by-endpoint/:
    get:
      summary: Usage by endpoint
      operationId: getUsageByEndpoint
      parameters:
        - name: environment
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Usage grouped by endpoint
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. management.scanova.io) — the same key sent to
        the regular API host will not authenticate.

````