Get a single draft VOD by its ats:// URI. Only accessible by the draft's author.
GET
/xrpc/place.stream.vod.getDraft
const url = 'https://example.com/xrpc/place.stream.vod.getDraft?uri=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/xrpc/place.stream.vod.getDraft?uri=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”uri
required
The ats:// URI of the draft record.
string
The ats:// URI of the draft record.
Responses
Section titled “Responses”Success
Media typeapplication/json
object
draft
required
A draft VOD with its ats:// URI and CID, for list/get responses.
object
uri
required
The ats:// URI of the draft record.
string
cid
required
CID (sha256 of CBOR record bytes, base32) of the draft record.
string
record
required
The place.stream.vod.draftVideo record body. Typed as unknown (matching commentView/livestreamView/videoView) because the @atproto/api client validator cannot validate a ref to a record-type lexicon.
Example generated
{ "draft": { "uri": "example", "cid": "example", "record": "example" }}Bad Request
Media typeapplication/json
object
error
required
One of:
string
message
required
string
Example
{ "error": "NotFound"}