> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/de/apis/api-overview.md).

# API-Überblick

Unitlab REST-API im Überblick: Basis-URL, Authentifizierung, Konventionen für Anfragen und Antworten sowie ein Verzeichnis aller HTTP-Routen.

Die HTTP-API ist die Schnittstelle, die auch Python-SDK und CLI nutzen. Rufen Sie sie direkt aus jeder Sprache auf, wenn Python keine Option ist. Für Python ist das SDK vorzuziehen: Es erledigt Uploads in Teilen, das Warten und Wiederholungen.

|                             |                                                                                       |
| --------------------------- | ------------------------------------------------------------------------------------- |
| Basis-URL                   | `https://api.unitlab.ai/api/sdk/` (ein dediziertes Deployment hat einen eigenen Host) |
| Authentifizierung           | `Authorization: Api-Key YOUR_API_KEY`                                                 |
| Format                      | JSON in Request- und Response-Bodies; Uploads nutzen `multipart/form-data`            |
| IDs                         | UUIDs                                                                                 |
| Abschließender Schrägstrich | Bei jeder Route erforderlich                                                          |
| Rate Limit                  | 20.000 Anfragen pro Stunde und Schlüssel                                              |

```bash
export UNITLAB_API_KEY="YOUR_API_KEY"
curl -s https://api.unitlab.ai/api/sdk/projects/ \
  -H "Authorization: Api-Key $UNITLAB_API_KEY"
```

## Konventionen <a href="#conventions" id="conventions"></a>

| Thema                        | Regel                                                                                                                                                           |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Listen                       | Die meisten Listen werden mit `limit` und `offset` paginiert (Standard 50, Maximum 300). Projekte, Releases und angehängte Quellen liefern ein einfaches Array. |
| Fehler                       | JSON mit `detail` und `code`, wo ein Client Fälle unterscheiden muss. Validierungsfehler listen Felder auf: `{"name": ["This field is required."]}`.            |
| Hintergrundarbeit            | Uploads, Cloud-Importe, Anhängevorgänge und Releases antworten sofort. Fragen Sie ihre Status-Route ab.                                                         |
| Request-ID                   | Jede Antwort enthält `X-Request-ID`. Protokollieren Sie sie; das Audit-Log lässt sich danach filtern.                                                           |
| Schreibgeschützter Workspace | Schreibvorgänge antworten mit 403 und `code` `workspace_read_only`, `workspace_payment_past_due` oder `workspace_license_required`                              |

Details: [Fehler, Rate Limits und Paginierung](https://docs.unitlab.ai/api-sdk-cli/de/apis/errors-rate-limits-and-pagination.md).

## Routen <a href="#routes" id="routes"></a>

| Bereich                  | Routen unter `/api/sdk/`                                                                                            | Seite                                                                                                             |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Projekte                 | `projects/`, `projects/{id}/`                                                                                       | [Projekte](https://docs.unitlab.ai/api-sdk-cli/de/apis/projects-api.md)                                           |
| Uploads und Batch Queues | `projects/{id}/upload-data/`, `upload-sessions/`, `data-units/`, `attach-data/`, `attached-sources/`                | [Projektdaten und Batch Queues](https://docs.unitlab.ai/api-sdk-cli/de/apis/project-data-and-batch-queues-api.md) |
| Bibliothek               | `data-assets/upload/`, `data-assets/assets/`, `data-assets/folders/`                                                | [Assets und Ordner](https://docs.unitlab.ai/api-sdk-cli/de/apis/assets-and-folders-api.md)                        |
| Cloud-Speicher           | `cloud-storages/`, `projects/{id}/cloud-storages/{storage}/import/`                                                 | [Cloud-Speicher](https://docs.unitlab.ai/api-sdk-cli/de/apis/cloud-storage-api.md)                                |
| Datasets                 | `datasets/`                                                                                                         | [Datasets](https://docs.unitlab.ai/api-sdk-cli/de/apis/datasets-api.md)                                           |
| Ontologien               | `ontologies/`                                                                                                       | [Ontologien](https://docs.unitlab.ai/api-sdk-cli/de/apis/ontologies-api.md)                                       |
| Workflow und Labels      | `projects/{id}/workflow/`, `workflow-tasks/{id}/`, `projects/{id}/annotation-imports/`, `projects/{id}/benchmarks/` | [Annotationen und Workflow](https://docs.unitlab.ai/api-sdk-cli/de/apis/annotations-and-workflow-api.md)          |
| Releases                 | `projects/{id}/releases/`, `releases/`                                                                              | [Releases](https://docs.unitlab.ai/api-sdk-cli/de/apis/releases-api.md)                                           |
| Embeddings               | `embedding-spaces/`                                                                                                 | [Embeddings](https://docs.unitlab.ai/api-sdk-cli/de/apis/embedding-spaces-api.md)                                 |

Jede Route erfordert eine Schlüsselberechtigung; siehe [Authentifizierung und API-Schlüssel](https://docs.unitlab.ai/api-sdk-cli/de/get-started/authentication-and-api-keys.md).

## Stabilität <a href="#stability" id="stability"></a>

Es gibt eine aktive Version ohne Versionspräfix. Routen und Felder werden hinzugefügt, ohne bestehende Clients zu brechen. Ignorieren Sie Felder, die Sie nicht kennen. Siehe [Versionierung und Changelog](https://docs.unitlab.ai/api-sdk-cli/de/get-started/versioning-and-changelog.md).

## Verwandte Themen <a href="#related" id="related"></a>

[API-Authentifizierung](https://docs.unitlab.ai/api-sdk-cli/de/apis/api-authentication.md) · [Annotation-JSON-Referenz](https://docs.unitlab.ai/api-sdk-cli/de/apis/annotation-json-reference.md) · [Python-SDK-Schnellstart](https://docs.unitlab.ai/api-sdk-cli/de/get-started/python-sdk-quickstart.md)
