Cinema Studio
List a project's items
A page of a project's items not in the Trash — by folder, kind, model, review status, your favourites, a window of creation and words — each with its files signed. 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.
GET
/v1/studio/projects/{project}/items
curl https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items \
-H "Authorization: Bearer $AURAY_API_KEY"const res = await fetch("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.AURAY_API_KEY}` },
});
console.log(await res.json());import os, requests
r = requests.get(
"https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
)
r.raise_for_status()
print(r.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("AURAY_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AURAY_API_KEY"),
],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
uri = URI("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer #{ENV.fetch("AURAY_API_KEY")}"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items"))
.header("Authorization", "Bearer " + System.getenv("AURAY_API_KEY"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("AURAY_API_KEY"));
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"data": [
{
"object": "<string>",
"id": "<string>",
"project_id": "<string>",
"folder_id": "<string>",
"kind": "<string>",
"name": "<string>",
"source": {
"product": "<string>",
"job_id": "<string>",
"asset": 123,
"from_upload": true
},
"files": [
{
"role": "<string>",
"url": "<string>",
"expires_at": "<string>",
"content_type": "<string>",
"bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123,
"from_upload": true,
"uploaded": true
}
],
"prompt": "<string>",
"params": {},
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"director": {},
"seed": 123,
"ai_generated": true,
"attribution": "<string>",
"review": "<string>",
"favorite": true,
"last_viewed_at": "<string>",
"trim": {},
"created_at": "<string>",
"updated_at": "<string>",
"trashed_at": "<string>",
"film": {
"film_id": "<string>",
"export": 123,
"exports": 123,
"latest": true,
"made_with": [
{
"address": "<string>",
"id": "<string>",
"label": "<string>"
}
]
}
}
],
"next_cursor": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}Authorizations
Authorizationstringheaderrequired
Bearer auray_sk_… — studio:read, or studio:write, which reads too — Account offers both unticked; the desktop's session key holds both.
Path Parameters
projectstringrequired
Query Parameters
cursorstring
The
next_cursor the previous page answered, unchanged, with the same filters. None for the first page. 0 to 120 characters.limitinteger
How many on a page. 1 to 100.
folderstring
all (the default), generations, uploads, or a member's folder by its id.kindstring
One kind or several, comma-separated.
modelstring
The address or id
GET /models lists a model under.reviewstring
One of
"none", "in_progress", "needs_review", "approved", "rejected".favoriteboolean
Only your favourites, or only the rest.
sincestring
Made at or after, ISO 8601.
untilstring
Made at or before, ISO 8601.
qstring
Words of an item's name or prompt. 0 to 200 characters.
sortstring
new, old, name, viewed — the ones you opened last first — or shot: the AI Director's shots as the film runs, plan by plan and shot by shot with each shot's versions oldest first, then everything else newest first. One of "new", "old", "name", "viewed", "shot".idsstring
Items by their ids: 1 to 100 uuids, comma-separated.
jobsstring
Items by the jobs that made them: 1 to 100 jobs' public ids, comma-separated.
OK.
objectstringrequired
One of
"list".dataobject[]required
Show child attributes
objectstringrequired
One of
"item".idstringrequired
project_idstringrequired
folder_idstringrequired
The member's folder it is filed in; null at the project's top level. May be null.
kindstringrequired
One of
"image", "video", "audio", "model3d".namestringrequired
0 to 120 characters. May be null.
sourceobjectrequired
Show child attributes
productstringrequired
The product whose job made it,
upload for a file from a disk, or film for a film exported from the project's own clips. One of "photo", "music", "video", "threed", "external", "upload", "film".job_idstringrequired
The job's id as
GET /jobs/{id} reads it; null for an upload and for a film. May be null.assetinteger or stringrequired
Which file of the job: a position, or a 3D artefact's name. May be null.
from_uploadboolean
Whether it was made from a file not made here: true for an upload and for a result whose job was given one, however many jobs back; false for a result made here from files made here alone; null where it is not known. Only a picture, a clip or a recording that is false can be made to speak or used as a voice without your consent. May be null.
filesobject[]required
Show child attributes
rolestringrequired
original as made or uploaded; thumbnail a smaller picture for a card; poster a frame of a clip or a view of a mesh; captions a film's subtitles, the WebVTT a captioned export files beside it. One of "original", "thumbnail", "poster", "captions".urlstringrequired
A URL.
expires_atstringrequired
content_typestringrequired
bytesintegerrequired
May be null.
widthintegerrequired
May be null.
heightintegerrequired
May be null.
duration_msintegerrequired
May be null.
from_uploadboolean
On an element's file alone: whether it was made from a file not made here — false for a picture made here from files made here alone, true for one made from an upload, null where it is not known. Only a picture that is false can be made to speak. An item says its own as
source.from_upload. May be null.uploadedboolean
On an element's file alone: true for your own upload itself.
promptstringrequired
May be null.
paramsobjectrequired
The settings it was made with, cleaned of links and keys. May be null.
modelobjectrequired
The model an item was made with: its address and id as
GET /models lists it, and the name a person reads. All three are null for the person's own upload; a frame the AI Director cut from a model's clip is named by that clip's model.Show child attributes
addressstringrequired
May be null.
idstringrequired
May be null.
labelstringrequired
May be null.
directorobject or nullrequired
seedintegerrequired
May be null.
ai_generatedbooleanrequired
A model's output says so wherever it is shown, with
attribution, its licence line.attributionstringrequired
May be null.
reviewstringrequired
One of
"none", "in_progress", "needs_review", "approved", "rejected".favoritebooleanrequired
Your own favourite.
last_viewed_atstringrequired
When you last opened it (
POST …/view); null for never. May be null.trimobject or nullrequired
created_atstringrequired
updated_atstringrequired
trashed_atstringrequired
May be null.
filmobjectrequired
For a film exported from the project's own clips (
source.product film): its cut, its place among the cut's exports and every model that made it. Null for every other item. May be null.Show child attributes
film_idstringrequired
The cut it is an export of.
exportintegerrequired
Its place among the cut's exports in the project, 1 the oldest. 1 to ….
exportsintegerrequired
How many exports of the cut the project holds now, the Trash included. 1 to ….
latestbooleanrequired
True for the newest export of the cut outside the Trash.
made_withobject[]required
Every model its clips and sounds were made with, each by its name.
Show child attributes
addressstringrequired
May be null.
idstringrequired
May be null.
labelstringrequired
May be null.
next_cursorstringrequired
Send it as
cursor for the next page; null on the last. May be null.request_idstring
Mirrored in the X-Request-Id header.
Headers:
| Header | Description |
|---|---|
RateLimit-Limit | Burst capacity. |
RateLimit-Remaining | |
RateLimit-Reset | Seconds until refill. |
X-RateLimit-Limit | |
X-RateLimit-Remaining | |
X-RateLimit-Reset | Unix seconds. The X- spelling is what client libraries read. |
X-Request-Id |
Was this page helpful?
curl https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items \
-H "Authorization: Bearer $AURAY_API_KEY"const res = await fetch("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.AURAY_API_KEY}` },
});
console.log(await res.json());import os, requests
r = requests.get(
"https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
)
r.raise_for_status()
print(r.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("AURAY_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AURAY_API_KEY"),
],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
uri = URI("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer #{ENV.fetch("AURAY_API_KEY")}"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items"))
.header("Authorization", "Bearer " + System.getenv("AURAY_API_KEY"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("AURAY_API_KEY"));
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"data": [
{
"object": "<string>",
"id": "<string>",
"project_id": "<string>",
"folder_id": "<string>",
"kind": "<string>",
"name": "<string>",
"source": {
"product": "<string>",
"job_id": "<string>",
"asset": 123,
"from_upload": true
},
"files": [
{
"role": "<string>",
"url": "<string>",
"expires_at": "<string>",
"content_type": "<string>",
"bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123,
"from_upload": true,
"uploaded": true
}
],
"prompt": "<string>",
"params": {},
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"director": {},
"seed": 123,
"ai_generated": true,
"attribution": "<string>",
"review": "<string>",
"favorite": true,
"last_viewed_at": "<string>",
"trim": {},
"created_at": "<string>",
"updated_at": "<string>",
"trashed_at": "<string>",
"film": {
"film_id": "<string>",
"export": 123,
"exports": 123,
"latest": true,
"made_with": [
{
"address": "<string>",
"id": "<string>",
"label": "<string>"
}
]
}
}
],
"next_cursor": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}