Cinema Studio

Confirm or set up a project's account

confirm: connect here too an account that waits because the same channel or account is connected in another of the owner's projects — a connect, so the app's alone and refused social_paused while i…

POST
/v1/studio/projects/{project}/socials/{platform}
POST
/v1/studio/projects/{project}/socials/{platform}
Confirm or set up a project's account
confirm: connect here too an account that waits because the same channel or account is connected in another of the owner's projects — a connect, so the app's alone and refused social_paused while i…
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
projectstringrequired
platformstringrequired
Confirm or set up a project's account
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/projects/{project}/socials/{platform}' \
  --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>"
}
Confirm or set up a project's account
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/socials/… \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
{
  "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>"
}

confirm: connect here too an account that waits because the same channel or account is connected in another of the owner's projects — a connect, so the app's alone and refused social_paused while its platform is not open. defaults: what the account's posts are prefilled from — YouTube's made-for-kids answer (null: asked every time) and the AI disclosure — each still changed on every post. The project owner's alone. 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
confirmboolean
Connect it here too. One of true.
defaultsobject
What the account's posts are prefilled from.
Show child attributes
made_for_kidsboolean
YouTube's alone. May be null.
ai_disclosureboolean

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?

Confirm or set up a project's account
curl -X POST https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/socials/… \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
{
  "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.