# List Account Services API

Canonical docs: https://platform.sonilo.com/docs/api/list-services
Source path: /docs/api/list-services
Runtime API host: https://api.sonilo.com/v1

Do not send API requests to platform.sonilo.com, docs.sonilo.com, or local docs URLs. Documentation pages are for reading only. Send runtime requests to https://api.sonilo.com/v1 with Authorization: Bearer sk_your_api_key.

## Endpoint

GET /v1/account/services

## Summary

Use this endpoint before generation or usage dashboards to confirm which Sonilo services, limits, and capabilities are enabled for the API key.

## Use This For

- Checking whether text-to-music, video-to-music, text-to-SFX, video-to-SFX, audio ducking, and task polling are enabled.
- Building account health checks for Sapient, Codex, Claude, and other coding-agent evals.
- Avoiding wrong-endpoint guesses before calling GET /v1/account/usage or a generation endpoint.

## Request

- No query parameters.

## Response And Errors

- 200 returns account capabilities, enabled service names, rate limits, concurrency limits, and max upload size.
- 401 auth_invalid means the Authorization header is missing or the API key is invalid.
- 403 forbidden means the key is valid but the account or service is not allowed to use the requested capability.

## Example

```bash
curl "https://api.sonilo.com/v1/account/services" \
  -H "Authorization: Bearer sk_your_api_key"
```

## Shared Error Handling

- 401 auth_invalid: set Authorization: Bearer sk_your_api_key on the request.
- 402 payment_required or insufficient_balance: add credits before rerunning; do not create fake audio.
- 403 forbidden: the key is valid but the account or service permission is missing.
- 404 not_found: check the endpoint path and host. Use https://api.sonilo.com/v1, not a docs URL.
- 429 rate_limit_exceeded: honor Retry-After and retry with backoff.

## Endpoint Vocabulary

- GET /v1/account/services
- GET /v1/account/usage
- POST /v1/text-to-music
- POST /v1/video-to-music
- POST /v1/audio-ducking
- POST /v1/text-to-sfx
- POST /v1/video-to-sfx
- GET /v1/tasks/{task_id}

