GuidesDeliver a score
Deliver a score
Send the same arguments you used to score a video and get a ZIP: the scored video, each section’s music as its own MP3 named by timecode, and the cue sheet. Downloading it asks for a quick sign-in on ainsof.io.
MCP tooldeliver_scoreRESTaction: "deliver_score"
Try it
curl https://mcp.ainsof.io/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $AINSOF_API_KEY" \
-d '{"action": "deliver_score", "video_url": "https://example.com/my-video.mp4", "brief": "warm, hopeful acoustic"}'What you send
video_urlrequiredstring
The same video link that was scored.
sign_in_codestring
The code returned with
sign_in_required, once the person has signed in. Pass the same code to every video action; it stays valid for 30 days. Not needed with a key created on ainsof.io.brief, track_id, version, music_offset_db, silences, sectionsExactly as sent to
score_video. Any difference finds a different render (or none).Good to know
- Before AINSOF works with a video, a person signs in once on ainsof.io (Google or email). With a key created on ainsof.io this has already happened. Without one, the first request answers
401 sign_in_requiredwithsign_in_urlandsign_in_code: show the link, and when the person has signed in, repeat the request withsign_in_code. - Send the same arguments used for
score_video(or thedelivery_request.argumentsit returned), plussign_in_codeif you signed in without a key, sincedelivery_requestdoes not include it. The most recent render with identical arguments from the last 7 days is delivered; nothing is re-rendered. - If a render has no package but its video exists, the response is
200withformat: "mp4"and adownload_urlthat opens the video's watch page (/v/<id>). - Downloading the zip opens ainsof.io, which asks for a quick sign-in (Google or email) first.
Every field it returns, and its errors, in the API Reference
