REST
API for the agent that uploads.
Authenticate with a key from Settings. Header Authorization: Bearer aftr_… or X-Api-Key. The OpenAPI spec lives at /openapi.yaml.
Release
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"}]
}'Audio and artwork
Multipart or URL. Audio must be FLAC (magic fLaC). Artwork can be PNG, JPEG or WebP, or an https URL Toolost can fetch.
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"}'Bulk
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. Every mutation is written to the audit log with the key that did it.
Routes
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