Cinema Studio

Turn on AI Director posting for a project's account

AI Director posting for the project's YouTube channel or TikTok account: once it is on, the AI Director posts a video of the project there when a member who may post asks it to in their conversatio…

POST
/v1/studio/projects/{project}/socials/{platform}/director
POST
/v1/studio/projects/{project}/socials/{platform}/director
Turn on AI Director posting for a project's account
AI Director posting for the project's YouTube channel or TikTok account: once it is on, the AI Director posts a video of the project there when a member who may post asks it to in their conversatio…
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
projectstringrequired
platformstringrequired
Turn on AI Director posting for a project's account
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/projects/{project}/socials/{platform}/director' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "id": "<string>",
  "platform": "<string>",
  "external_id": "<string>",
  "display_name": "<string>",
  "avatar_url": "<string>",
  "state": "<string>",
  "defaults": {
    "made_for_kids": true,
    "ai_disclosure": true
  },
  "also_in": [
    {
      "project_id": "<string>",
      "name": "<string>"
    }
  ],
  "connected_at": "<string>",
  "remove_after": "<string>",
  "paused": {
    "message": "<string>"
  },
  "director_posting": {
    "privacy": "<string>",
    "options": {},
    "words": "<string>",
    "at": "<string>",
    "by_you": true
  },
  "request_id": "<string>"
}
Turn on AI Director posting for a project's account
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/socials/…/director \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "privacy": "…",
  "options": "…",
  "words": "…"
}'
{
  "object": "<string>",
  "id": "<string>",
  "platform": "<string>",
  "external_id": "<string>",
  "display_name": "<string>",
  "avatar_url": "<string>",
  "state": "<string>",
  "defaults": {
    "made_for_kids": true,
    "ai_disclosure": true
  },
  "also_in": [
    {
      "project_id": "<string>",
      "name": "<string>"
    }
  ],
  "connected_at": "<string>",
  "remove_after": "<string>",
  "paused": {
    "message": "<string>"
  },
  "director_posting": {
    "privacy": "<string>",
    "options": {},
    "words": "<string>",
    "at": "<string>",
    "by_you": true
  },
  "request_id": "<string>"
}

AI Director posting for the project's YouTube channel or TikTok account: once it is on, the AI Director posts a video of the project there when a member who may post asks it to in their conversation with the AI Director — now, at a time they name, or from Auto mode on their earlier request — with the words it writes and these choices. privacy and every option of the platform are said by the person, none preselected: on YouTube private, unlisted or public and made_for_kids, synthetic; on TikTok one of the privacy levels the account offers now (before TikTok's audit SELF_ONLY), ai_generated, disable_comment, disable_duet, disable_stitch, brand_content and brand_organic. words is the version of the sentence the person ticked beside them, the one these choices call for. Refused terms_required until the person has accepted the Terms that state it. Turning it on is the person's own step in the Auray app: the desktop's session key alone does it, and any other key is answered social_connect_in_app. The project's owner's and its admins'. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.

Authorizations

Authorizationstringheaderrequired

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

Path Parameters

projectstringrequired
platformstringrequired
youtube or tiktok. One of "youtube", "tiktok".

Body

application/json
privacystringrequired
Who can see its posts: one of the platform's own privacies.
optionsobjectrequired
Every option of the platform, each a yes or no.
wordsstringrequired
The version of the sentence the person ticked beside these choices.

Response

application/json

OK.

objectstringrequired
One of "social_account".
idstringrequired
platformstringrequired
One of "youtube", "tiktok".
external_idstringrequired
The channel's id, or TikTok's open_id.
display_namestringrequired
Where it will post: the channel's title or the creator's nickname.
avatar_urlstringrequired
A URL. May be null.
statestringrequired
pending waits for its owner's confirm, being connected in another of their projects; expired and revoked need a reconnect, and their posts wait — until remove_after. One of "pending", "connected", "expired", "revoked".
defaultsobjectrequired
Show child attributes
made_for_kidsbooleanrequired
May be null.
ai_disclosurebooleanrequired
also_inobject[]required
Your own other projects connected to the same channel or account.
Show child attributes
project_idstringrequired
namestringrequired
connected_atstringrequired
remove_afterstringrequired
When a connection that ended (expired, revoked) is removed from the project unless it is reconnected first: three weeks after it ended. Its channel's or account's id, name and picture go, and its posts not yet out are cancelled. Null while it is connected or pending. May be null.
pausedobjectrequired
Set while posting to its platform is paused: nothing is connected or sent there, a post may still be scheduled and waits, and one more than an hour past its time is not sent. Null while it is open. May be null.
Show child attributes
messagestringrequired
The sentence written for customers when the platform was paused, or null. May be null.
director_postingobjectrequired
AI Director posting on this account: the choices its posts carry, when it was turned on and whether you turned it on — or null while it is off. A reconnect turns it off. May be null.
Show child attributes
privacystringrequired
optionsobjectrequired
wordsstringrequired
The version of the sentence ticked when it was turned on.
atstringrequired
by_youbooleanrequired
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?

Turn on AI Director posting for a project's account
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/socials/…/director \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "privacy": "…",
  "options": "…",
  "words": "…"
}'
{
  "object": "<string>",
  "id": "<string>",
  "platform": "<string>",
  "external_id": "<string>",
  "display_name": "<string>",
  "avatar_url": "<string>",
  "state": "<string>",
  "defaults": {
    "made_for_kids": true,
    "ai_disclosure": true
  },
  "also_in": [
    {
      "project_id": "<string>",
      "name": "<string>"
    }
  ],
  "connected_at": "<string>",
  "remove_after": "<string>",
  "paused": {
    "message": "<string>"
  },
  "director_posting": {
    "privacy": "<string>",
    "options": {},
    "words": "<string>",
    "at": "<string>",
    "by_you": true
  },
  "request_id": "<string>"
}

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