Chat
List your threads, newest first
The threads held by the account this key belongs to — made here, by POST /chat, or in the desktop.
GET
/v1/chat/conversations
curl https://api.auray.ai/v1/chat/conversations \
-H "Authorization: Bearer $AURAY_API_KEY"import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
console.log(await auray.platform.chat.conversations({ limit: 20 }));from auray_client import Client
auray = Client() # reads AURAY_API_KEY
print(auray.platform.chat.conversations(limit=20))const res = await fetch("https://api.auray.ai/v1/chat/conversations", {
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/chat/conversations",
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/chat/conversations", 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/chat/conversations");
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/chat/conversations")
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/chat/conversations"))
.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/chat/conversations");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"data": [
{
"id": "<string>",
"object": "<string>",
"model": "<string>",
"title": "<string>",
"origin": "<string>",
"archived": true,
"created_at": "<string>",
"updated_at": "<string>"
}
],
"has_more": true,
"next_before": "<string>",
"next_cursor": "<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>"
}The threads held by the account this key belongs to — made here, by POST /chat, or in the desktop. A thread costs nothing and prints no charge; each answer's job_id is what GET /jobs/{id} reads a turn's cost by. It needs chat:read: a thread holds what a person typed, so neither text:write nor the older chat:write, which submit turns and start threads, reads one back, and Account offers chat:read unticked.
Authorizations
Authorizationstringheaderrequired
Bearer auray_sk_… — chat:read — not jobs:read, and not text:write or the older chat:write, which submit turns and start threads but do not read one back.
Query Parameters
limitinteger
Clamped to 100. Anything but a whole number of at least 1 is 400
invalid_limit. 1 to 100.beforestring
The older cursor, still accepted: feed back the
next_before from the previous page, and the next page starts strictly older than it — a thread made in the same microsecond as the page's last one is skipped. Prefer cursor.cursorstring
Cursor. Feed back the
next_cursor from the previous page, unchanged; the next page starts right after the last thread it listed, so a thread that shares its created_at is never skipped. Not with before: sending both is 400 invalid_cursor, as is a cursor no page answered.archivedstring
Include archived threads. One of
"true".OK
objectstring
One of
"list".dataobject[]
Show child attributes
idstring
objectstring
One of
"conversation".modelstring
The chat model the thread was made with, and the default for its turns, by the name a turn prints: a slot by its own name, or a catalogue language model by its published address (
auray-serverless/model/…). One of "glm-5-3-flash", "deepseek-v4-1-flash", "kimi-k3", "qwen3-8", "glm-5-3", "auray-serverless/model/openai-gpt-5-nano", "auray-serverless/model/openai-gpt-5-mini", "auray-serverless/model/openai-gpt-5-4-nano" and 16 more
"auray-serverless/model/openai-gpt-5-4-mini", "auray-serverless/model/openai-gpt-5-4", "auray-serverless/model/openai-gpt-5-5", "auray-serverless/model/anthropic-claude-haiku-4-5", "auray-serverless/model/anthropic-claude-sonnet-4-6", "auray-serverless/model/anthropic-claude-opus-4-7", "auray-serverless/model/anthropic-claude-opus-4-8", "auray-serverless/model/anthropic-claude-fable-5", "auray-serverless/model/google-gemma-4-31b", "auray-serverless/model/google-gemini-3-1-flash-lite", "auray-serverless/model/google-gemini-3-flash", "auray-serverless/model/google-gemini-3-5-flash", "auray-serverless/model/google-gemini-3-1-pro", "auray-serverless/model/xai-grok-4-3", "auray-serverless/model/minimax-m3", "auray-serverless/model/zai-glm-5-1"titlestring
Empty until the first message names it.
originstring
Null for an ordinary thread;
explore for one made in Playground, api for one /openai/v1 made. One of "explore", "api", null. May be null.archivedboolean
Archived threads — every one
/openai/v1 made is born archived — are listed only with archived=true.created_atstring
updated_atstring
has_moreboolean
next_beforestring
The
created_at of the last thread on this page, or null when has_more is false: the older cursor, passed back as before. May be null.next_cursorstring
Pass it back as
cursor, unchanged, for the next page: it names the last thread on this one to the microsecond, so a thread sharing its created_at is never skipped. Null when has_more is false. May be null.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/chat/conversations \
-H "Authorization: Bearer $AURAY_API_KEY"import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
console.log(await auray.platform.chat.conversations({ limit: 20 }));from auray_client import Client
auray = Client() # reads AURAY_API_KEY
print(auray.platform.chat.conversations(limit=20))const res = await fetch("https://api.auray.ai/v1/chat/conversations", {
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/chat/conversations",
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/chat/conversations", 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/chat/conversations");
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/chat/conversations")
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/chat/conversations"))
.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/chat/conversations");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"data": [
{
"id": "<string>",
"object": "<string>",
"model": "<string>",
"title": "<string>",
"origin": "<string>",
"archived": true,
"created_at": "<string>",
"updated_at": "<string>"
}
],
"has_more": true,
"next_before": "<string>",
"next_cursor": "<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>"
}