{"schema_version":"agent-upload-v1","feature_flag":"AGENT_UPLOAD_WRAPPER_ENABLED","feature_flag_note":"Presign and finalize wrappers return 404 when the feature flag is disabled. This schema endpoint remains available.","endpoints":[{"method":"POST","path":"/api/agent/uploads/presign","auth":"SIWE wallet session or per-request SIWE headers","enabled_when":"AGENT_UPLOAD_WRAPPER_ENABLED=true"},{"method":"POST","path":"/api/agent/uploads/finalize","auth":"SIWE wallet session or per-request SIWE headers","enabled_when":"AGENT_UPLOAD_WRAPPER_ENABLED=true"},{"method":"GET","path":"/api/agent/uploads/schema","auth":"none (public read-only schema)","enabled_when":"always"}],"auth_requirements":{"scheme":"SIWE","summary":"Wallet session cookie, x-wallet-session, or x-siwe-message + x-siwe-signature headers","nonce_url":"/api/wallet/auth/nonce","session_url":"/api/wallet/auth/session"},"request_schemas":{"presign":{"schema_version":"agent-upload-presign-v1","completion_id":"Completion row id from completions/init (completion_{timestamp}_{random}) or legacy UUID text id (required)","content_type":"Supported video MIME type (required)","size_bytes":"Positive integer up to max_file_size_bytes (required)","file_name":"Optional original filename for extension validation"},"finalize":{"schema_version":"agent-upload-finalize-v1","asset_id":"UUID from presign response (required)"}},"response_schemas":{"presign":["schema_version","success","asset_id","upload_url","expires_in","method","headers","completion_id","status","warnings","risk_disclosures","next_allowed_actions","generated_at"],"finalize":["schema_version","success","asset_id","completion_id","status","warnings","risk_disclosures","next_allowed_actions","generated_at"]},"allowed_content_types":["video/mp4","video/quicktime","video/webm","video/x-msvideo","video/x-matroska"],"max_file_size_bytes":524288000,"upload_url_ttl_seconds":900,"error_codes":["FEATURE_DISABLED","COMPLETION_NOT_UPLOADABLE","TOO_MANY_ACTIVE_UPLOADS"],"excluded_fields":["fileUrl","mediaUrl","public S3 URLs","raw S3 keys","bucket names","presigned GET/download URLs","private media URLs","campaign_id in presign request","KYC","fraud","risk_score","wallet balance","payout","reward claim"],"risk_disclosures":["This endpoint only issues an upload URL. It does not submit a completion.","The upload URL is short-lived and should not be logged or shared.","Finalizing an upload does not claim a completion slot or trigger moderation.","This endpoint only verifies the uploaded media asset.","It does not submit a completion, claim a slot, charge a wallet, or trigger moderation."],"execution_disclaimer":"Upload wrapper only. Does not submit completions, claim slots, charge wallets, generate AI video, submit moderation votes, request payouts, or claim rewards.","idempotency":{"header":"Idempotency-Key","supported_on":"POST /api/agent/uploads/presign","note":"Optional. Reuses an active presign within the upload URL TTL when the same wallet, completion, and key are supplied."},"sdk_note":"SDK upload helpers are intentionally deferred. Agents may call these endpoints manually with externally supplied wallet auth. No signing or custody in SDK v0.1.","generated_at":"2026-11-11T09:42:27.291Z"}