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.

openapi.yaml · Create a key

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