# Konto
> Einen Schlüssel prüfen: das Kundenkonto dahinter, seine Scopes, der Tarif und das Rate Limit.
Einen Schlüssel prüfen: das Kundenkonto dahinter, seine Scopes, der Tarif und das Rate Limit.
Basis-URL `https://api.hillsmusic.com/v1`. Jede Anfrage sendet einen API-Schlüssel: `Authorization: Bearer hm_live_…`.
- Wer bin ich
- Verbindungstest
## Wer bin ich
`GET /v1/me` · Jeder gültige Schlüssel
Das Kundenkonto, zu dem der Schlüssel gehört, sowie Name, Scopes und Ablaufdatum des Schlüssels. Praktisch, um zu prüfen, ob ein Schlüssel funktioniert.
### Beispielanfrage
```bash
curl "https://api.hillsmusic.com/v1/me" \
-H "Authorization: Bearer $HILLS_API_KEY"
```
### Antwort `200`
```json
{
"partner": {
"id": 12,
"name": "Nova Records",
"email": "ops@novarecords.com"
},
"environment": "production",
"key": {
"id": 3,
"name": "ERP sync",
"prefix": "hm_live_ab12cd34",
"environment": "production",
"scopes": [
"catalog:read",
"earnings:read"
],
"expires_at": null,
"created_at": "2026-10-01T09:00:00Z"
}
}
```
### Fehler
| Status | Wann |
| --- | --- |
| 401 | unauthenticated, invalid_key, key_revoked, key_expired oder test_keys_retired. |
| 403 | account_inactive oder api_not_in_plan. |
| 429 | rate_limited: Retry-After Sekunden warten. |
## Verbindungstest
`GET /v1/ping` · Jeder gültige Schlüssel
Mit jedem gültigen Schlüssel: Konto, Tarif, die Scopes des Schlüssels, das verbleibende Rate Limit und die Serverzeit. Der Aufruf erscheint auf der Seite für DDEX-Auslieferungen (Connection, Activity).
### Beispielanfrage
```bash
curl "https://api.hillsmusic.com/v1/ping" \
-H "Authorization: Bearer $HILLS_API_KEY"
```
### Antwort `200`
```json
{
"ok": true,
"environment": "production",
"server_time": "2026-10-07T09:00:00.000Z",
"account": {
"id": 12,
"name": "Nova Records",
"email": "ops@novarecords.com"
},
"plan": {
"included": true,
"plan": "enterprise",
"rate": 120
},
"key": {
"prefix": "hm_live_ab12cd34",
"scopes": [
"ddex:write"
]
},
"rate_limit": {
"limit": 120,
"remaining": 119
}
}
```
### Fehler
| Status | Wann |
| --- | --- |
| 401 | unauthenticated, invalid_key, key_revoked, key_expired oder test_keys_retired. |
| 403 | account_inactive oder api_not_in_plan. |
| 429 | rate_limited: Retry-After Sekunden warten. |
Quelle: https://developer.hillsmusic.com/de/reference/account/