Start here
List your likes
GET
/v1/community/me/likeson https://api.auray.ai/v1A page of the works you liked that are still shown, newest like first.
A page of the works you liked that are still shown, newest like first. Nobody else can read it. Takes a key holding community:write — Account offers it unticked — or the desktop's own session key. Spends nothing.
#Authentication
Authorization: Bearer auray_sk_… — community:write — Account offers it unticked; the desktop's session key holds it.
#Request
#Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | no | The next_cursor the previous page answered, unchanged, with the same filters. None for the first page. 0 to 200 characters. |
limit | integer | no | How many on a page. 1 to 60. |
#Example request
curl https://api.auray.ai/v1/community/me/likes \
-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.liked();
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # reads AURAY_API_KEY
answer = auray.platform.community.publications.liked()
print(answer)const res = await fetch("https://api.auray.ai/v1/community/me/likes", {
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/likes",
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/likes", 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/likes");
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/likes")
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/likes"))
.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/likes");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");#Responses
#200 OK
OK.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
object | string | yes | — | One of "list". |
data | object[] | yes | — | |
data[].id | string | yes | — | The work's public id. |
data[].kind | string | yes | — | One of "image", "video", "audio", "model3d", "project". |
data[].title | string | yes | — | May be null. |
data[].model | object | yes | — | |
data[].model.address | string | yes | — | 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. |
data[].model.id | string | yes | — | The same model's id, as GET /v1/models lists it: the catalogue slug, such as krea2. May be null. |
data[].model.label | string | yes | — | The model's name, as a person reads it. May be null. |
data[].attribution | string | yes | — | The licence text the model's output travels with. Show it wherever the work is shown. May be null. |
data[].ai_generated | boolean | yes | — | Every work here is a generation's result. Label it so wherever it is shown. One of true. |
data[].media | object[] | yes | — | |
data[].media[].role | string | yes | — | 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". |
data[].media[].position | integer | yes | — | |
data[].media[].url | string | yes | — | Where to load it. Kept until its author unpublishes the work. A URL. |
data[].media[].content_type | string | yes | — | |
data[].media[].width | integer | yes | — | May be null. |
data[].media[].height | integer | yes | — | May be null. |
data[].media[].duration_ms | integer | yes | — | May be null. |
data[].media[].supplied | boolean | yes | — | 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. |
data[].author | object or null | yes | — | |
data[].counts | object | yes | — | |
data[].counts.likes | integer | yes | — | |
data[].counts.views | integer | yes | — | Counted once a day per visitor. |
data[].counts.comments | integer | yes | — | |
data[].counts.remixes | integer | yes | — | |
data[].made_at | string | yes | — | When the result was made. May be null. |
data[].published_at | string | yes | — | May be null. |
data[].featured | boolean | yes | — | Featured by our team. |
data[].pinned | boolean | yes | — | Pinned by our team to the top of the public feeds. |
data[].original | boolean | yes | — | An Original: made by our own team. |
data[].remixed | boolean | yes | — | Made from another work. |
data[].liked | boolean | yes | — | The reader's own like; null when no key that holds community:write was sent. May be null. |
data[].url | string | yes | — | The work's page. A URL. |
data[].project | object | no | — | Only on a project's card: its address, category, how many assets it shows, and the three largest bands of its Stack. |
data[].project.slug | string | yes | — | |
data[].project.category | string | yes | — | One of "film", "short", "series", "trailer", "commercial", "music_video", "animation", "documentary", "fashion", "game", "worldbuilding", "experimental", "other". |
data[].project.items | integer | yes | — | 0 to …. |
data[].project.stack | object[] | yes | — | |
data[].project.stack[].model | object | yes | — | |
data[].project.stack[].tenths | integer | yes | — | Its share in tenths of a percent; the bands of one Stack add up to exactly 1000. 0 to 1000. |
data[].project.stack[].percent | number | yes | — | tenths / 10, for display only. |
data[].project.stack[].count | integer | yes | — | 0 to …. |
data[].project.stack[].color | string | yes | — | |
data[].project.stack[].other | boolean | yes | — | The band that gathers every model past the top ones. |
next_cursor | string | yes | — | The cursor of the next page; null on the last. May be null. |
request_id | string | no | — | 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 |
#400 Bad Request
#401 Unauthorized
#403 Forbidden
#429 Too Many Requests
#503 Service Unavailable
#Status codes
| Status | Meaning |
|---|---|
200 | OK. |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
429 | Too Many Requests |
503 | Service Unavailable |
Every refusal names its code, and every code is explained at Errors.