{"openapi":"3.1.0","info":{"title":"Phaser API","version":"2026-11-26","description":"Catalog, discovery, playback and publisher workflows. Additive response fields may appear; catalog and billing response objects are extensible. Input schemas preserve structural validation; base58 byte counts, positive USDC, real dates and HTTPS URLs are additionally checked by the server. API keys belong on a trusted backend. Payment preparation is stateless: save signed bytes and signature before broadcasting, recover unknown outcomes, and never automatically make a replacement payment."},"servers":[{"url":"/"}],"security":[{"publisherKey":[]}],"components":{"securitySchemes":{"publisherKey":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"PreparedPayment":{"type":"object","required":["network","transaction","encoding","expires_at","last_valid_block_height","fee_lamports","account_creation_lamports"],"properties":{"quote_id":{"type":"string","format":"uuid"},"invoice_id":{"type":"string","format":"uuid"},"network":{"type":"string","enum":["mainnet-beta","devnet"]},"transaction":{"type":"string","contentEncoding":"base64"},"encoding":{"const":"base64"},"expires_at":{"type":["string","null"],"format":"date-time"},"last_valid_block_height":{"type":"integer"},"fee_lamports":{"type":"string","pattern":"^[0-9]+$"},"account_creation_lamports":{"type":"string","pattern":"^[0-9]+$"}}},"UploadStatus":{"type":"object","required":["quote","receipt","completion","screening_recorded","payment_window_expired"],"properties":{"quote":{"type":"object","additionalProperties":true},"receipt":{"type":["object","null"]},"completion":{"enum":["complete","not_committed"],"description":"Durable upload commit only. not_committed NEVER means unpaid; recover the original signature."},"screening_recorded":{"type":"boolean"},"payment_window_expired":{"type":"boolean"}}}}},"paths":{"/v1/wallets/{wallet}/funding":{"get":{"summary":"Get funding details for a self-custody wallet","description":"Skip funding if the wallet already has Solana USDC and SOL for fees. On mainnet, return transfer links and an optional Coinbase handoff. Eligible users can approve a USD-to-USDC conversion in the Coinbase ChatGPT plugin. The user then sends from Coinbase, selecting Solana and confirming the receiving wallet, amount and fee.","operationId":"get__v1_wallets_wallet_funding","security":[],"parameters":[{"name":"wallet","in":"path","required":true,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["wallet","network","mint","fee_currency","fee_sponsored","usdc_transfer_uri","sol_transfer_uri","wallet_setup_url","coinbase"],"properties":{"wallet":{"type":"string","maxLength":100},"network":{"type":"string","enum":["mainnet-beta","devnet"]},"mint":{"type":"string","maxLength":100},"fee_currency":{"const":"SOL"},"fee_sponsored":{"const":false},"usdc_transfer_uri":{"type":["string","null"]},"sol_transfer_uri":{"type":["string","null"]},"wallet_setup_url":{"type":"string","format":"uri"},"coinbase":{"type":["object","null"],"required":["plugin_url","send_guide_url","external_transfer"],"properties":{"plugin_url":{"type":"string","format":"uri"},"send_guide_url":{"type":"string","format":"uri"},"external_transfer":{"const":"user_in_coinbase"}}}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/capabilities":{"get":{"summary":"Discover host contract, network, features and limits","operationId":"get__v1_capabilities","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"network":{"type":"string","enum":["mainnet-beta","devnet"]},"mint":{"type":"string"},"decimals":{"const":6},"playback_enabled":{"type":"boolean"},"contract_version":{"type":"string"},"publisher_contract":{"type":"string"},"features":{"type":"object","additionalProperties":true},"limits":{"type":"object","additionalProperties":true},"publisher_upload":{"type":"object","additionalProperties":true},"format":{"const":"hls"},"protection":{"const":"hls-aes128"},"payment_commitment":{"const":"confirmed","description":"Commitment at which a playback payment unlocks. Upload and invoice payments wait for finalized."}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/legal/publisher-agreement":{"get":{"summary":"Read current agreement and copyright policy; not acceptance","operationId":"get__v1_legal_publisher_agreement","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/legal/copyright-policy":{"get":{"summary":"Read copyright policy","operationId":"get__v1_legal_copyright_policy","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/registration-challenges":{"post":{"summary":"Create wallet challenge (10 minute expiry)","operationId":"post__v1_publisher_registration_challenges","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"wallet":{"type":"string","maxLength":100}},"required":["name","wallet"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/accounts":{"post":{"summary":"Register/recover account using exact wallet-signed challenge; API key returned once","operationId":"post__v1_publisher_accounts","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challenge_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"signature":{"type":"string","maxLength":100}},"required":["challenge_id","signature"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/agreement":{"get":{"summary":"Read current acceptance status","operationId":"get__v1_publisher_agreement","security":[{"publisherKey":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"post":{"summary":"Explicitly accept the exact current agreement version","operationId":"post__v1_publisher_agreement","security":[{"publisherKey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","maxLength":120},"legal_name":{"type":"string","minLength":1,"maxLength":200},"contact_email":{"type":"string","maxLength":254},"accepted":{"type":"boolean","const":true}},"required":["version","legal_name","contact_email","accepted"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/profile":{"get":{"summary":"Read publisher account","operationId":"get__v1_publisher_profile","security":[{"publisherKey":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"patch":{"summary":"Update publisher name or payout wallet","operationId":"patch__v1_publisher_profile","security":[{"publisherKey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"payout_wallet":{"type":"string","maxLength":100}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/keys":{"get":{"summary":"List key metadata; never key secrets","operationId":"get__v1_publisher_keys","security":[{"publisherKey":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"post":{"summary":"Issue API key; secret returned once","operationId":"post__v1_publisher_keys","security":[{"publisherKey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/keys/{id}":{"delete":{"summary":"Revoke API key","operationId":"delete__v1_publisher_keys_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"204":{"description":"Revoked"},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/genres":{"post":{"summary":"Create a catalog genre","operationId":"post__v1_publisher_genres","security":[{"publisherKey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["slug","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/artists":{"get":{"summary":"List owned artists","operationId":"get__v1_publisher_artists","security":[{"publisherKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"post":{"summary":"Create artists; optional owner-scoped idempotency key","operationId":"post__v1_publisher_artists","security":[{"publisherKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Persist before sending. Reuse for the identical request. A changed request returns 409 idempotency_conflict."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"bio":{"type":"string","maxLength":4000},"image_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]}},"required":["name","slug"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/artists/{id}":{"get":{"summary":"Read owned artists; song includes workflow and publication restrictions","operationId":"get__v1_publisher_artists_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"patch":{"summary":"Update artists; publication enforces agreement, audio and rights checks","operationId":"patch__v1_publisher_artists_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"bio":{"type":"string","maxLength":4000},"image_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/songs":{"get":{"summary":"List owned songs","operationId":"get__v1_publisher_songs","security":[{"publisherKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"artist_id","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"genre","in":"query","schema":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"post":{"summary":"Create songs; optional owner-scoped idempotency key","operationId":"post__v1_publisher_songs","security":[{"publisherKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Persist before sending. Reuse for the identical request. A changed request returns 409 idempotency_conflict."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"price_usdc":{"type":"string","pattern":"^(0|[1-9]\\d{0,4})(\\.\\d{1,6})?$"},"payout_splits":{"anyOf":[{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"recipient":{"type":"string","maxLength":100},"share_bps":{"type":"integer","minimum":1,"maximum":10000}},"required":["recipient","share_bps"],"additionalProperties":false}},{"type":"null"}]},"isrc":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}[A-Z0-9]{3}\\d{7}$"},{"type":"null"}]},"explicit":{"type":"boolean"},"genres":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}},"required":["artist_id","title","price_usdc"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/songs/{id}":{"get":{"summary":"Read owned songs; song includes workflow and publication restrictions","operationId":"get__v1_publisher_songs_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"patch":{"summary":"Update songs; publication enforces agreement, audio and rights checks","operationId":"patch__v1_publisher_songs_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"price_usdc":{"type":"string","pattern":"^(0|[1-9]\\d{0,4})(\\.\\d{1,6})?$"},"payout_splits":{"anyOf":[{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"recipient":{"type":"string","maxLength":100},"share_bps":{"type":"integer","minimum":1,"maximum":10000}},"required":["recipient","share_bps"],"additionalProperties":false}},{"type":"null"}]},"isrc":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}[A-Z0-9]{3}\\d{7}$"},{"type":"null"}]},"explicit":{"type":"boolean"},"genres":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},"status":{"type":"string","enum":["draft","published","archived"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/releases":{"get":{"summary":"List owned releases","operationId":"get__v1_publisher_releases","security":[{"publisherKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"artist_id","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"type","in":"query","schema":{"enum":["single","ep","album"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"post":{"summary":"Create releases; optional owner-scoped idempotency key","operationId":"post__v1_publisher_releases","security":[{"publisherKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Persist before sending. Reuse for the identical request. A changed request returns 409 idempotency_conflict."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"type":{"type":"string","enum":["single","ep","album"]},"release_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"artwork_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]}},"required":["artist_id","title","type"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/releases/{id}":{"get":{"summary":"Read owned releases; song includes workflow and publication restrictions","operationId":"get__v1_publisher_releases_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}},"patch":{"summary":"Update releases; publication enforces agreement, audio and rights checks","operationId":"patch__v1_publisher_releases_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"type":{"type":"string","enum":["single","ep","album"]},"release_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"artwork_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"status":{"type":"string","enum":["draft","published","archived"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/releases/{id}/songs":{"put":{"summary":"Replace release track order atomically","operationId":"put__v1_publisher_releases_id_songs","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"songs":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"song_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"disc_number":{"default":1,"type":"integer","minimum":1,"maximum":100},"track_number":{"type":"integer","minimum":1,"maximum":1000}},"required":["song_id","track_number"],"additionalProperties":false}}},"required":["songs"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/songs/{id}/audio/quote":{"post":{"summary":"Quote original file; free and idempotent, no recognition request","operationId":"post__v1_publisher_songs_id_audio_quote","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Persist before sending. Reuse for the identical request. A changed request returns 409 idempotency_conflict."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["audio"],"properties":{"audio":{"type":"string","format":"binary","description":"Original audio bytes, <=100 MiB. Set the part Content-Type to a supported audio type from capabilities."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/songs/{id}/audio/uploads/{key}":{"get":{"summary":"Recover quote and immutable receipt without file, RPC or recognition","operationId":"get__v1_publisher_songs_id_audio_uploads_key_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["quote","receipt","completion","screening_recorded","payment_window_expired"],"properties":{"quote":{"type":"object","additionalProperties":true},"receipt":{"type":["object","null"]},"completion":{"enum":["complete","not_committed"],"description":"Durable upload commit only. not_committed NEVER means unpaid; recover the original signature."},"screening_recorded":{"type":"boolean"},"payment_window_expired":{"type":"boolean"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/songs/{id}/audio/uploads/{key}/transaction":{"post":{"summary":"Prepare unsigned upload payment; never signs or broadcasts","operationId":"post__v1_publisher_songs_id_audio_uploads_key_transaction","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payer":{"type":"string","maxLength":100}},"required":["payer"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["network","transaction","encoding","expires_at","last_valid_block_height","fee_lamports","account_creation_lamports"],"properties":{"quote_id":{"type":"string","format":"uuid"},"invoice_id":{"type":"string","format":"uuid"},"network":{"type":"string","enum":["mainnet-beta","devnet"]},"transaction":{"type":"string","contentEncoding":"base64"},"encoding":{"const":"base64"},"expires_at":{"type":["string","null"],"format":"date-time"},"last_valid_block_height":{"type":"integer"},"fee_lamports":{"type":"string","pattern":"^[0-9]+$"},"account_creation_lamports":{"type":"string","pattern":"^[0-9]+$"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/songs/{id}/audio":{"put":{"summary":"Submit paid upload; retries require same file, key, quote and signature","operationId":"put__v1_publisher_songs_id_audio","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Persist before sending. Reuse for the identical request. A changed request returns 409 idempotency_conflict."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["audio","quote_id","payment_id"],"properties":{"audio":{"type":"string","format":"binary","description":"Original audio bytes, <=100 MiB. Set the part Content-Type to a supported audio type from capabilities."},"quote_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"payment_id":{"type":"string","maxLength":100}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"202":{"description":"Payment not yet visible at the required commitment: confirmed for playback, finalized for upload and invoice payments. Retry the same proof; never pay again.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/billing":{"get":{"summary":"Read billing summary","operationId":"get__v1_publisher_billing","security":[{"publisherKey":[]}],"parameters":[{"name":"network","in":"query","schema":{"type":"string","enum":["mainnet-beta","devnet"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/billing/entries":{"get":{"summary":"List billing entries","operationId":"get__v1_publisher_billing_entries","security":[{"publisherKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"network","in":"query","schema":{"type":"string","enum":["mainnet-beta","devnet"]}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"before","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/billing/invoices":{"get":{"summary":"List invoices","operationId":"get__v1_publisher_billing_invoices","security":[{"publisherKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"network","in":"query","schema":{"type":"string","enum":["mainnet-beta","devnet"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/billing/invoices/{id}":{"get":{"summary":"Read invoice and payment receipt","operationId":"get__v1_publisher_billing_invoices_id_","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/billing/invoices/{id}/transaction":{"post":{"summary":"Prepare unsigned invoice payment; due date does not expire its terms","operationId":"post__v1_publisher_billing_invoices_id_transaction","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payer":{"type":"string","maxLength":100}},"required":["payer"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["network","transaction","encoding","expires_at","last_valid_block_height","fee_lamports","account_creation_lamports"],"properties":{"quote_id":{"type":"string","format":"uuid"},"invoice_id":{"type":"string","format":"uuid"},"network":{"type":"string","enum":["mainnet-beta","devnet"]},"transaction":{"type":"string","contentEncoding":"base64"},"encoding":{"const":"base64"},"expires_at":{"type":["string","null"],"format":"date-time"},"last_valid_block_height":{"type":"integer"},"fee_lamports":{"type":"string","pattern":"^[0-9]+$"},"account_creation_lamports":{"type":"string","pattern":"^[0-9]+$"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/publisher/billing/invoices/{id}/payment":{"post":{"summary":"Submit original finalized invoice payment; retry same signature","operationId":"post__v1_publisher_billing_invoices_id_payment","security":[{"publisherKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payment_id":{"type":"string","maxLength":100}},"required":["payment_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"202":{"description":"Payment not yet visible at the required commitment: confirmed for playback, finalized for upload and invoice payments. Retry the same proof; never pay again.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/genres":{"get":{"summary":"Browse the genre dictionary","operationId":"get__v1_genres","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/artists":{"get":{"summary":"Browse published artists","description":"No API key needed. Follow next_cursor using the after query parameter until it is null. Availability and price are checked again when requesting a playback quote.","operationId":"get__v1_artists","security":[],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"bio":{"type":["string","null"]},"image_url":{"type":["string","null"]}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/artists/{id}":{"get":{"summary":"Read a published artist","operationId":"get__v1_artists_id_","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"bio":{"type":["string","null"]},"image_url":{"type":["string","null"]}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/songs":{"get":{"summary":"Browse published songs","description":"No API key needed. Follow next_cursor using the after query parameter until it is null. Availability and price are checked again when requesting a playback quote.","operationId":"get__v1_songs","security":[],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"artist_id","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"genre","in":"query","schema":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"required":["id","artist_id","title","price_usdc","audio_ready"],"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"price_usdc":{"type":"string","description":"Rights holder's price per play, in decimal USDC."},"explicit":{"type":"boolean"},"genres":{"type":"array","items":{"type":"string"}},"artist":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"}}},"audio_ready":{"type":"boolean","description":"Current audio readiness; the quote endpoint rechecks purchase eligibility."},"duration_ms":{"type":["integer","null"]},"hosting_until":{"type":["string","null"],"format":"date-time"},"pricing":{"type":["object","null"],"additionalProperties":true},"analysis":{"type":["object","null"],"additionalProperties":true}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/songs/{id}":{"get":{"summary":"Read a published song","operationId":"get__v1_songs_id_","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["id","artist_id","title","price_usdc","audio_ready"],"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"price_usdc":{"type":"string","description":"Rights holder's price per play, in decimal USDC."},"explicit":{"type":"boolean"},"genres":{"type":"array","items":{"type":"string"}},"artist":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"}}},"audio_ready":{"type":"boolean","description":"Current audio readiness; the quote endpoint rechecks purchase eligibility."},"duration_ms":{"type":["integer","null"]},"hosting_until":{"type":["string","null"],"format":"date-time"},"pricing":{"type":["object","null"],"additionalProperties":true},"analysis":{"type":["object","null"],"additionalProperties":true}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/releases":{"get":{"summary":"Browse published releases","description":"No API key needed. Follow next_cursor using the after query parameter until it is null. Availability and price are checked again when requesting a playback quote.","operationId":"get__v1_releases","security":[],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"artist_id","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"type","in":"query","schema":{"enum":["single","ep","album"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"type":{"enum":["single","ep","album"]},"artwork_url":{"type":["string","null"]},"release_date":{"type":["string","null"]}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/releases/{id}":{"get":{"summary":"Read a published release","operationId":"get__v1_releases_id_","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"type":{"enum":["single","ep","album"]},"artwork_url":{"type":["string","null"]},"release_date":{"type":["string","null"]}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/recommendations":{"post":{"summary":"Find the next song","description":"Send up to 100 real listening signals owned by your app. An empty history explores the catalog. Responses can contain fewer than limit songs. Scores rank results; they are not probabilities. Phaser does not retain listening history. Payment is not evidence of listening.","operationId":"post__v1_recommendations","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"history":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"song_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"signal":{"type":"string","enum":["like","finish","replay","skip","dislike"]},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["song_id","signal","occurred_at"],"additionalProperties":false}},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50},"allow_explicit":{"default":true,"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["data","model","candidate_pool_limited"],"properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"required":["id","artist_id","title","price_usdc","audio_ready"],"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"artist_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"price_usdc":{"type":"string","description":"Rights holder's price per play, in decimal USDC."},"explicit":{"type":"boolean"},"genres":{"type":"array","items":{"type":"string"}},"artist":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"}}},"audio_ready":{"type":"boolean","description":"Current audio readiness; the quote endpoint rechecks purchase eligibility."},"duration_ms":{"type":["integer","null"]},"hosting_until":{"type":["string","null"],"format":"date-time"},"pricing":{"type":["object","null"],"additionalProperties":true},"analysis":{"type":["object","null"],"additionalProperties":true},"recommendation":{"type":"object","additionalProperties":true,"properties":{"score":{"type":"number"},"reason":{"type":"string"},"seed_song_id":{"type":["string","null"],"format":"uuid"}}}}}},"model":{"type":["string","null"]},"candidate_pool_limited":{"type":"boolean"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/pricing":{"get":{"summary":"Read the current fee schedule","description":"Amounts in units are decimal integer strings. USDC has six decimal places. Use the current schedule or estimate endpoint instead of hardcoding fees.","operationId":"get__v1_pricing","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"version":{"const":"2026-11-07-audd-samples"},"currency":{"const":"USDC"},"decimals":{"const":6},"upload_units_per_minute":{"const":"20000"},"screening_units_per_sample":{"const":"5000"},"screening_max_samples":{"const":3},"screening_sample_seconds":{"const":12},"playback_units_per_minute":{"const":"300"},"minimum_duration_ms":{"const":60000},"hosting_years":{"const":10},"playback_meter":{"const":"full_track_per_authorized_session"},"billing":{"const":"upload_prepayment_and_playback_invoice"},"invoice_schedule":{"const":"monthly_utc"},"invoice_due_days":{"const":7}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/pricing/estimate":{"post":{"summary":"Estimate publishing and delivery fees","description":"An estimate is not a payment quote. The rights holder sets the listening price; Phaser upload and delivery fees are billed separately.","operationId":"post__v1_pricing_estimate","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"duration_ms":{"type":"integer","minimum":1000,"maximum":3600000},"price_usdc":{"type":"string","pattern":"^(0|[1-9]\\d{0,4})(\\.\\d{1,6})?$"},"expected_plays":{"type":"integer","minimum":1,"maximum":1000000000000}},"required":["duration_ms"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/quotes":{"post":{"summary":"Quote one paid play","description":"Check capabilities.playback_enabled and HLS support before paying. Generate 32 random bytes, retain their lowercase hex as claim_secret, and SHA-256 the raw bytes for claim_hash. Quotes allow payment for five minutes and redemption for 24 hours. Read exact payouts, amount_units, network, mint and expiry from the response; never invent payment terms.","operationId":"post__v1_quotes","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"song_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"claim_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["song_id","claim_hash"],"additionalProperties":false}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["id","song_id","network","mint","payouts","amount_units","expires_at","redeem_until","memo"],"properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"song_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"network":{"type":"string","enum":["mainnet-beta","devnet"]},"mint":{"type":"string"},"recipient":{"type":["string","null"],"description":"Null for split payouts; always use the full payouts array."},"payouts":{"type":"array","items":{"type":"object","required":["recipient","amount_units"],"properties":{"recipient":{"type":"string"},"amount_units":{"type":"string","pattern":"^[0-9]+$"}}}},"amount_units":{"type":"string","pattern":"^[0-9]+$"},"decimals":{"const":6},"pricing":{"type":"object","additionalProperties":true},"expires_at":{"type":"string","format":"date-time"},"redeem_until":{"type":"string","format":"date-time"},"memo":{"type":"string"},"token_program":{"type":"string"},"memo_program":{"type":"string"},"transfer_instruction":{"const":"TransferChecked"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/quotes/{id}/transaction":{"post":{"summary":"Prepare an unsigned playback payment","description":"Returns an unsigned base64 Solana transaction. Display quoted USDC and estimated SOL costs for wallet approval. Persist signed bytes and signature before broadcast. This endpoint never signs or broadcasts. Never automatically replace a payment with an unknown outcome.","operationId":"post__v1_quotes_id_transaction","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payer":{"type":"string","maxLength":100}},"required":["payer"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["network","transaction","encoding","expires_at","last_valid_block_height","fee_lamports","account_creation_lamports"],"properties":{"quote_id":{"type":"string","format":"uuid"},"invoice_id":{"type":"string","format":"uuid"},"network":{"type":"string","enum":["mainnet-beta","devnet"]},"transaction":{"type":"string","contentEncoding":"base64"},"encoding":{"const":"base64"},"expires_at":{"type":["string","null"],"format":"date-time"},"last_valid_block_height":{"type":"integer"},"fee_lamports":{"type":"string","pattern":"^[0-9]+$"},"account_creation_lamports":{"type":"string","pattern":"^[0-9]+$"}}}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/playbacks":{"post":{"summary":"Redeem payment for an HLS session","description":"Persist transaction, claim_secret and player_id together. A session unlocks once the payment is confirmed; it does not wait for finalized. On 202 or uncertain outcomes, retry the same values and honor Retry-After. A successful session expires; retries never extend it. Treat manifest_url as a secret. Use native HLS or hls.js. Do not cache media for offline playback.","operationId":"post__v1_playbacks","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"string","maxLength":100},"claim_secret":{"type":"string","pattern":"^[a-f0-9]{64}$"},"player_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["transaction","claim_secret","player_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["session_id","expires_at","manifest_url","protection"],"properties":{"session_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expires_at":{"type":"string","format":"date-time"},"manifest_url":{"type":"string","format":"uri"},"protection":{"const":"hls-aes128"}}},{"type":"object","required":["status","transaction","retry_after_ms"],"properties":{"status":{"const":"pending"},"transaction":{"type":"string","maxLength":100},"retry_after_ms":{"type":"integer"}}}]}}}},"202":{"description":"Payment not yet visible at the required commitment: confirmed for playback, finalized for upload and invoice payments. Retry the same proof; never pay again.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["session_id","expires_at","manifest_url","protection"],"properties":{"session_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expires_at":{"type":"string","format":"date-time"},"manifest_url":{"type":"string","format":"uri"},"protection":{"const":"hls-aes128"}}},{"type":"object","required":["status","transaction","retry_after_ms"],"properties":{"status":{"const":"pending"},"transaction":{"type":"string","maxLength":100},"retry_after_ms":{"type":"integer"}}}]}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}},"/v1/media/{token}/{file}":{"get":{"summary":"Deliver authorized HLS media","description":"Use the manifest_url returned by playback redemption and its relative segment/key links. The signed token is the credential; no publisher key is needed. Every request checks session expiry and content restrictions. HEAD performs the same access checks. Never log or share signed media URLs.","operationId":"get__v1_media_token_file_","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","description":"Signed token from manifest_url"}},{"name":"file","in":"path","required":true,"schema":{"type":"string","pattern":"^(index\\.m3u8|key\\.bin|segment-\\d{5}\\.ts)$"}}],"responses":{"200":{"description":"Success","content":{"application/vnd.apple.mpegurl":{"schema":{"type":"string","format":"binary"}},"video/mp2t":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"default":{"description":"Error. 400 validation; 401 auth; 402 billing overdue; 403 restriction; 404 missing/not owned; 409 conflict; 410 expired; 422 payment/relationship; 429 rate limit; 503 unavailable. Retry-After may be present. Never infer payment failure from an HTTP error.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds before retrying the same request/proof"}}}}}}}}