Acquire, start, query, and stop Agora Cloud Recording to Amazon S3 via the REST API

domain: docs.agora.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST to https://api.agora.io/v1/apps/{appId}/cloud_recording/acquire with Basic Auth (Customer ID:Customer Secret, Base64-encoded) and a JSON body containing cname (channel name), uid (recording bot UID), and clientRequest; save the resourceId from the response — it expires in 5 minutes.
  2. Within 5 minutes, POST to https://api.agora.io/v1/apps/{appId}/cloud_recording/resourceid/{resourceId}/mode/{mode}/start supplying cname, uid, clientRequest, and a storageConfig block with your S3 bucket, accessKey, secretKey, and region; save the sid from the response.
  3. While recording is active, query status via GET on the query endpoint with the resourceId and sid to confirm the recording state and retrieve any sliceStartTime.
  4. When done, POST to the stop endpoint with resourceId, sid, cname, uid, and clientRequest to end the recording; the response includes the list of recorded file names in S3.
  5. Verify the MP4 or HLS files appear in your S3 bucket using the prefix pattern Agora writes; files are available immediately after the stop response.

Known gotchas

Related routes

Trigger and retrieve Agora Cloud Recording to Amazon S3
docs.agora.io · 6 steps · unrated
Verify Agora Cloud Recording callback signatures before trusting recording status notifications
docs.agora.io · 6 steps · unrated
Enable Amazon IVS real-time stage participant recording to S3
docs.aws.amazon.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans