Cinema Studio

Schedule a post

A video of the project scheduled for its time to the project's own YouTube channel or TikTok account — or kept as a draft — by the owner or an admin. Every choice is said, never chosen for you: the privacy, each option and, for TikTok, the consent pressed with Schedule. A day's posts on one platform are held to the owner's plan (social_quota_full). Connecting an account and scheduling or changing a post are the person's own steps in the Auray app: the desktop's session key alone begins them, and any other key is answered social_connect_in_app. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

POST
/v1/studio/projects/{project}/socials/posts
POST
/v1/studio/projects/{project}/socials/posts
Schedule a post
A video of the project scheduled for its time to the project's own YouTube channel or TikTok account — or kept as a draft — by the owner or an admin.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
projectstringrequired
Schedule a post
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/projects/{project}/socials/posts' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "id": "<string>",
  "platform": "<string>",
  "item_id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "tags": "<string[]>",
  "privacy": "<string>",
  "options": {},
  "cover_ms": 123,
  "thumbnail_item_id": "<string>",
  "scheduled_at": "<string>",
  "time_zone": "<string>",
  "state": "<string>",
  "external_id": "<string>",
  "error": "<string>",
  "notice": "<string>",
  "attempts": 123,
  "created_by_you": true,
  "created_at": "<string>",
  "updated_at": "<string>",
  "request_id": "<string>"
}
Schedule a post
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/socials/posts \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "platform": "youtube",
  "item_id": "…",
  "title": "…",
  "time_zone": "…"
}'
{
  "object": "<string>",
  "id": "<string>",
  "platform": "<string>",
  "item_id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "tags": "<string[]>",
  "privacy": "<string>",
  "options": {},
  "cover_ms": 123,
  "thumbnail_item_id": "<string>",
  "scheduled_at": "<string>",
  "time_zone": "<string>",
  "state": "<string>",
  "external_id": "<string>",
  "error": "<string>",
  "notice": "<string>",
  "attempts": 123,
  "created_by_you": true,
  "created_at": "<string>",
  "updated_at": "<string>",
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — a key with the scope the route names.

Path Parameters

projectstringrequired

Body

application/json
platformstringrequired
Where it goes: the project's own YouTube channel or TikTok account. One of "youtube", "tiktok".
item_idstringrequired
A video item of the project — a clip, or the film an export filed — ready, and an MP4, a MOV or a WebM.
titlestringrequired
YouTube's title, at most 100 characters; TikTok's caption, at most 2,200. Neither may hold < or >. 1 to 2200 characters.
descriptionstring
YouTube's description, at most 5,000 bytes of UTF-8. TikTok takes none: its caption is the title. 0 to 5000 characters.
tagsstring[]
YouTube's tags, at most 500 characters as YouTube counts them (a comma between two, quotes around one with a space). TikTok takes none.
privacystring
Who it is shown to, in the platform's own words — YouTube's private, unlisted or public; TikTok's from the creator's own options. Never chosen for you: a scheduled post says it. One of "private", "unlisted", "public", "PUBLIC_TO_EVERYONE", "MUTUAL_FOLLOW_FRIENDS", "FOLLOWER_OF_CREATOR", "SELF_ONLY".
optionsobject
Each platform's choices, every one said: YouTube's made_for_kids and synthetic (the disclosure of realistic altered or synthetic content); TikTok's ai_generated, disable_comment, disable_duet, disable_stitch, brand_content and brand_organic.
cover_msinteger
The moment of the video, in whole milliseconds from its start, whose frame the post shows: on TikTok its cover, and on YouTube its thumbnail, cut from the project's own copy of the video and set on YouTube once it has processed the video. Left out or null, none: TikTok shows the first frame, YouTube its own pick. Left out of a change, the frame chosen before stays, and null takes it away. A moment at or past the end of the video is refused (400 reference_invalid, field cover_ms); on YouTube it is never beside a thumbnail_item_id, and it is refused to a person who has not accepted the Terms that state a YouTube thumbnail (428 terms_required, with the version to accept). 0 to 2147483647. May be null.
thumbnail_item_idstring
YouTube only, and your choice: a picture of the project shown as the post's thumbnail — an image item, kept as a JPEG or a PNG, not in the Trash. It is fitted to YouTube's 16:9 shape and size for you (a 1280×720 JPEG under 2 MB) and set once YouTube has processed the video; a channel YouTube has not verified for custom thumbnails gets its video out without it, and the post's notice says so. Left out of a change, the picture chosen before stays, and null takes it away. Refused on TikTok, beside a cover_ms and for an item that is no such picture (400 reference_invalid, field thumbnail_item_id), and to a person who has not accepted the Terms that state a YouTube thumbnail (428 terms_required, with the version to accept). May be null.
scheduled_atstring
When it goes out: at least a minute and at most a year ahead. A public YouTube post is uploaded ahead, private, and YouTube publishes it then itself; a private or unlisted one, and a TikTok post, are sent then.
time_zonestringrequired
The IANA zone the time was chosen in, kept to show it as chosen; a day's posts are counted in it.
draftboolean
Kept unscheduled: no time, no consent, and it counts against no day.
nowboolean
Post now: the request names no scheduled_at, and the post is set for the earliest time a post may go out, counted from when the request arrives, and is sent within the minute after that. Never with scheduled_at or draft (400 reference_invalid, field now). One of true.
consentstring
The version of TikTok's consent sentence, pressed with Schedule. A TikTok post is scheduled only with it.

Response

application/json

Created.

objectstringrequired
One of "social_post".
idstringrequired
platformstringrequired
One of "youtube", "tiktok".
item_idstringrequired
The video item it posts; null once that item was deleted. May be null.
titlestringrequired
descriptionstringrequired
tagsstring[]required
privacystringrequired
May be null.
optionsobjectrequired
cover_msintegerrequired
The moment of the video, in whole milliseconds, whose frame the post shows, as it was chosen: on TikTok its cover, on YouTube its thumbnail. Null for none — TikTok shows the first frame, YouTube its own pick or the picture thumbnail_item_id names. 0 to 2147483647. May be null.
thumbnail_item_idstringrequired
YouTube: the picture of the project the post shows as its thumbnail, as it was chosen; null for none, or once that picture was deleted. Always null on TikTok. May be null.
scheduled_atstringrequired
May be null.
time_zonestringrequired
statestringrequired
One of "draft", "scheduled", "uploading", "processing", "published", "failed", "cancelled".
external_idstringrequired
The platform's own id of the video, once it has one. May be null.
errorstringrequired
Why it failed, or why it waits, in one word. May be null.
noticestringrequired
What became of it that its state does not say, read by the list off what last happened to it: out_before_deleted a cancel's delete came after the video went out at its time; sent_before_cancel TikTok had it before the cancel; not_followed its account was disconnected after it went out; not_as_chosen it is on YouTube but private or unlisted there past its time; still_processing YouTube was still processing it twelve hours after it went up; video_deleted its video was deleted, as its cancel asked; video_not_deleted it could not be, the connection having ended; change_not_made the latest change of its words could not be made on YouTube; account_lapsed cancelled because its account's connection ended and was not renewed in time; thumbnail_unverified it is out on YouTube without the thumbnail chosen for it, because YouTube lets the channel set no custom thumbnail until it is verified; thumbnail_not_set it is out on YouTube without the thumbnail chosen for it, which YouTube did not take. Null otherwise, and in a single post's answer. One of "out_before_deleted", "sent_before_cancel", "not_followed", "not_as_chosen", "still_processing", "video_deleted", "video_not_deleted", "change_not_made", "account_lapsed", "thumbnail_unverified", "thumbnail_not_set", null. May be null.
attemptsintegerrequired
0 to ….
created_by_youbooleanrequired
created_atstringrequired
updated_atstringrequired
request_idstring
Mirrored in the X-Request-Id header.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Schedule a post
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/socials/posts \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "platform": "youtube",
  "item_id": "…",
  "title": "…",
  "time_zone": "…"
}'
{
  "object": "<string>",
  "id": "<string>",
  "platform": "<string>",
  "item_id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "tags": "<string[]>",
  "privacy": "<string>",
  "options": {},
  "cover_ms": 123,
  "thumbnail_item_id": "<string>",
  "scheduled_at": "<string>",
  "time_zone": "<string>",
  "state": "<string>",
  "external_id": "<string>",
  "error": "<string>",
  "notice": "<string>",
  "attempts": 123,
  "created_by_you": true,
  "created_at": "<string>",
  "updated_at": "<string>",
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.