Community
List your works
A page of your own works in any state, newest first, each with where it stands and why — published, awaiting approval or declined for the feeds, hidden while a report is reviewed, withdrawn, removed. Takes a key holding community:write — Account offers it unticked — or the desktop's own session key. Spends nothing.
GET
/v1/community/me/publications
curl https://api.auray.ai/v1/community/me/publications \
-H "Authorization: Bearer $AURAY_API_KEY"import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
const answer = await auray.platform.community.publications.mine();
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # reads AURAY_API_KEY
answer = auray.platform.community.publications.mine()
print(answer)const res = await fetch("https://api.auray.ai/v1/community/me/publications", {
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/community/me/publications",
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/community/me/publications", 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/community/me/publications");
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/community/me/publications")
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/community/me/publications"))
.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/community/me/publications");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"data": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"attribution": "<string>",
"ai_generated": true,
"media": [
{
"role": "<string>",
"position": 123,
"url": "<string>",
"content_type": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"supplied": true
}
],
"author": {},
"counts": {
"likes": 123,
"views": 123,
"comments": 123,
"remixes": 123
},
"made_at": "<string>",
"published_at": "<string>",
"featured": true,
"pinned": true,
"original": true,
"remixed": true,
"liked": true,
"url": "<string>",
"project": {
"slug": "<string>",
"category": "<string>",
"items": 123,
"stack": [
{
"model": {},
"tenths": 123,
"percent": 123,
"count": 123,
"color": "<string>",
"other": true
}
],
"ai_generated": true
},
"mine": {
"state": "<string>",
"state_reason": "<string>",
"approval": "<string>",
"approval_reason": "<string>",
"discoverable": true,
"profile_pinned": true,
"held": true,
"licence_version": "<string>",
"created_at": "<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>"
}Authorizations
Authorizationstringheaderrequired
Bearer auray_sk_… — community:write — Account offers it unticked; the desktop's session key holds it.
Query Parameters
statestring
Only works in this state. Unsaid, every state but
staging. One of "staging", "published", "hidden", "withdrawn", "removed".cursorstring
The
next_cursor the previous page answered, unchanged, with the same filters. None for the first page. 0 to 200 characters.limitinteger
How many on a page. 1 to 60.
OK.
objectstringrequired
One of
"list".dataobject[]required
Show child attributes
idstringrequired
The work's public id.
kindstringrequired
One of
"image", "video", "audio", "model3d", "project".titlestringrequired
May be null.
modelobjectrequired
Show child attributes
addressstringrequired
The model address it was made with, as
GET /v1/models lists it: the path a job is submitted to, such as auray-ai/krea-2-turbo/text-to-image. May be null.idstringrequired
The same model's id, as
GET /v1/models lists it: the catalogue slug, such as krea2. May be null.labelstringrequired
The model's name, as a person reads it. May be null.
attributionstringrequired
The licence text the model's output travels with. Show it wherever the work is shown. May be null.
ai_generatedbooleanrequired
Every work here is a generation's result. Label it so wherever it is shown. One of
true.mediaobject[]required
Show child attributes
rolestringrequired
primary is the work as it was made; the rest are what the feeds draw: an image's thumbnail, a video's or a model's poster and thumbnail, a song's waveform (JSON: {version, peaks}). One of "primary", "poster", "preview", "thumbnail", "waveform".positionintegerrequired
urlstringrequired
Where to load it. Kept until its author unpublishes the work. A URL.
content_typestringrequired
widthintegerrequired
May be null.
heightintegerrequired
May be null.
duration_msintegerrequired
May be null.
suppliedbooleanrequired
True for a poster, or its thumbnail, that the work's author supplied rather than one our services made: it is not what the model made, and the work's
ai_generated does not describe it.authorobject or nullrequired
countsobjectrequired
Show child attributes
likesintegerrequired
viewsintegerrequired
Counted once a day per visitor.
commentsintegerrequired
remixesintegerrequired
made_atstringrequired
When the result was made. May be null.
published_atstringrequired
May be null.
featuredbooleanrequired
Featured by our team.
pinnedbooleanrequired
Pinned by our team to the top of the public feeds.
originalbooleanrequired
An Original: made by our own team.
remixedbooleanrequired
Made from another work.
likedbooleanrequired
The reader's own like; null when no key that holds
community:write was sent. May be null.urlstringrequired
The work's page. A URL.
projectobject
Only on a project's card: its address, category, how many assets it shows, the three largest bands of its Stack, and whether anything it shows is AI-generated.
Show child attributes
slugstringrequired
categorystringrequired
One of
"film", "short", "series", "trailer", "commercial", "music_video", "animation", "documentary", "fashion", "game", "worldbuilding", "experimental", "other".itemsintegerrequired
0 to ….
stackobject[]required
Show child attributes
modelobjectrequired
tenthsintegerrequired
Its share in tenths of a percent; the bands of one Stack add up to exactly 1000. 0 to 1000.
percentnumberrequired
tenths / 10, for display only.countintegerrequired
0 to ….
colorstringrequired
otherbooleanrequired
The band that gathers every model past the top ones.
ai_generatedboolean
Whether anything the project shows is AI-generated: its generations, or its film when the clips it was assembled from were. A film is not counted in the Stack, so a project that shows its film and none of its clips has an empty
stack and ai_generated: true.mineobjectrequired
Where an author's own work stands and why. Only ever answered to its author.
Show child attributes
statestringrequired
published is shown on the profile and at its link; hidden while a severe report is reviewed; withdrawn unpublished while a report held it; removed taken down by our team; staging while its files are copied. One of "staging", "published", "hidden", "withdrawn", "removed".state_reasonstringrequired
Why our team hid or removed it. May be null.
approvalstringrequired
Whether it is in the public feeds and search. Approval gates the feeds only — never the profile or the link. One of
"pending", "approved", "rejected".approval_reasonstringrequired
Why our team declined it for the feeds. May be null.
discoverablebooleanrequired
The author lets it into the public feeds once approved.
profile_pinnedbooleanrequired
heldbooleanrequired
An open report holds it: it is kept until the report is decided.
licence_versionstring
The Terms version whose display and remix licences were granted.
created_atstringrequired
next_cursorstringrequired
The cursor of 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/community/me/publications \
-H "Authorization: Bearer $AURAY_API_KEY"import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
const answer = await auray.platform.community.publications.mine();
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # reads AURAY_API_KEY
answer = auray.platform.community.publications.mine()
print(answer)const res = await fetch("https://api.auray.ai/v1/community/me/publications", {
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/community/me/publications",
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/community/me/publications", 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/community/me/publications");
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/community/me/publications")
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/community/me/publications"))
.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/community/me/publications");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"data": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"attribution": "<string>",
"ai_generated": true,
"media": [
{
"role": "<string>",
"position": 123,
"url": "<string>",
"content_type": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"supplied": true
}
],
"author": {},
"counts": {
"likes": 123,
"views": 123,
"comments": 123,
"remixes": 123
},
"made_at": "<string>",
"published_at": "<string>",
"featured": true,
"pinned": true,
"original": true,
"remixed": true,
"liked": true,
"url": "<string>",
"project": {
"slug": "<string>",
"category": "<string>",
"items": 123,
"stack": [
{
"model": {},
"tenths": 123,
"percent": 123,
"count": 123,
"color": "<string>",
"other": true
}
],
"ai_generated": true
},
"mine": {
"state": "<string>",
"state_reason": "<string>",
"approval": "<string>",
"approval_reason": "<string>",
"discoverable": true,
"profile_pinned": true,
"held": true,
"licence_version": "<string>",
"created_at": "<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>"
}