REST
API para o agente que faz o upload.
Autenticação por chave, criada em Definições. Header Authorization: Bearer aftr_… ou X-Api-Key. A spec OpenAPI está em /openapi.yaml.
openapi.yaml · Criar uma chave
Lançamento
curl -X POST https://aftrphase.com/api/v1/releases \
-H "Authorization: Bearer $AFTRPHASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"submit": false,
"type": "Single",
"title": "Neon Tide",
"participants": [{"name": "LUNA MAR", "role": ["primary"]}],
"tracks": [{"title": "Neon Tide", "audioUrl": "https://example.com/neon.flac"}]
}'Áudio e capa
Multipart ou URL. O áudio tem de ser FLAC (magic fLaC). A capa pode ser PNG, JPEG ou WebP, ou um URL https que a Toolost consiga buscar.
curl -X POST https://aftrphase.com/api/v1/releases/REL/audio \
-H "Authorization: Bearer $AFTRPHASE_API_KEY" \
-F "file=@track.flac"
curl -X POST https://aftrphase.com/api/v1/releases/REL/artwork \
-H "Authorization: Bearer $AFTRPHASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://cdn.example.com/cover.jpg"}'Lote
curl -X POST https://aftrphase.com/api/v1/bulk \ -H "Authorization: Bearer $AFTRPHASE_API_KEY" \ -F "manifest=@lancamentos.csv" \ -F "neon-tide.flac=@neon-tide.flac" \ -F "neon-cover.jpg=@neon-cover.jpg"
Scopes: catalog:read, catalog:write, preferences:read, preferences:write, account:read. Cada mutação fica no audit log com a chave usada.
Rotas
GET /api/v1/meGET|POST /api/v1/releasesGET|DELETE /api/v1/releases/{id}GET /api/v1/releases/{id}/statusPATCH /api/v1/releases/{id}/metadata|deliveryPATCH /api/v1/releases/{id}/videoPUT /api/v1/releases/{id}/tracksPOST /api/v1/releases/{id}/artwork|audio|validate|submitPOST /api/v1/bulkGET /api/v1/bulk/{jobId}POST /api/v1/bulk/{jobId}/retryPOST /api/v1/validate/isrc|upcGET /api/v1/lookup/genres|platforms|languages|countriesGET|POST /api/v1/preferences/artist|artists|label|search|resolveGET|POST /api/v1/splitsGET /api/v1/audit