Cinema Studio

Read an invitation before accepting it

What an invitation is to — the project's name, cover and size, the role, who invited you and until when — and nothing of the inside. Every token that opens nothing answers invite_invalid alike. Takes a key holding studio:read (or studio:write, which reads too) — Account offers both unticked — or the desktop's own session key. Spends nothing.

POST
/v1/studio/invites/peek
POST
/v1/studio/invites/peek
Read an invitation before accepting it
What an invitation is to — the project's name, cover and size, the role, who invited you and until when — and nothing of the inside.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
Read an invitation before accepting it
curl --request POST \
  --url 'https://api.auray.ai/v1/studio/invites/peek' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "object": "<string>",
  "project": {
    "name": "<string>",
    "cover_url": "<string>",
    "members": 123
  },
  "role": "<string>",
  "invited_by": {
    "member_id": "<string>",
    "name": "<string>",
    "handle": "<string>",
    "avatar_url": "<string>",
    "left": true
  },
  "expires_at": "<string>",
  "member": true,
  "request_id": "<string>"
}
Read an invitation before accepting it
curl -X POST https://api.auray.ai/v1/studio/invites/peek \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "token": "…"
}'
{
  "object": "<string>",
  "project": {
    "name": "<string>",
    "cover_url": "<string>",
    "members": 123
  },
  "role": "<string>",
  "invited_by": {
    "member_id": "<string>",
    "name": "<string>",
    "handle": "<string>",
    "avatar_url": "<string>",
    "left": true
  },
  "expires_at": "<string>",
  "member": true,
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

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

Body

application/json
tokenstringrequired
The token the invitation's link carries in its fragment (#studio-invite=<token>).

Response

application/json

OK.

objectstringrequired
One of "invite_preview".
projectobjectrequired
Show child attributes
namestringrequired
cover_urlstringrequired
A URL. May be null.
membersintegerrequired
1 to ….
rolestringrequired
One of "admin", "collaborator", "viewer".
invited_byobjectrequired
Somebody as a project shows them: their membership's id while they are in it and the public Community profile they chose — never an account or an address.
Show child attributes
member_idstringrequired
May be null.
namestringrequired
May be null.
handlestringrequired
May be null.
avatar_urlstringrequired
A URL. May be null.
leftbooleanrequired
Gone from the project since; what they wrote stays, with their name.
expires_atstringrequired
memberbooleanrequired
Already a member: accepting only opens the project.
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?

Read an invitation before accepting it
curl -X POST https://api.auray.ai/v1/studio/invites/peek \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "token": "…"
}'
{
  "object": "<string>",
  "project": {
    "name": "<string>",
    "cover_url": "<string>",
    "members": 123
  },
  "role": "<string>",
  "invited_by": {
    "member_id": "<string>",
    "name": "<string>",
    "handle": "<string>",
    "avatar_url": "<string>",
    "left": true
  },
  "expires_at": "<string>",
  "member": true,
  "request_id": "<string>"
}

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