Start here
List your threads, newest first
/v1/chat/conversationson https://api.auray.ai/v1The threads held by the account this key belongs to — made here, by POST /chat, or in the desktop.
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.
#Authentication
Authorization: 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.
#Request
#Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Clamped to 100. Anything but a whole number of at least 1 is 400 invalid_limit. 1 to 100. |
before | string | no | Cursor. Feed back the next_before from the previous page; the next page starts strictly older than it. |
archived | string | no | Include archived threads. One of "true". |
#Example request
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()}");#Responses
#200 OK
OK
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
object | string | no | — | One of "list". |
data | object[] | no | — | |
data[].id | string | no | — | |
data[].object | string | no | — | One of "conversation". |
data[].model | string | no | — | The slot the thread was made with, and the default for its turns. One of "glm-5-3-flash", "deepseek-v4-1-flash", "kimi-k3". |
data[].title | string | no | — | Empty until the first message names it. |
data[].origin | string | no | — | Null for an ordinary thread; explore for one Playground's language-model workbench holds, api for one /openai/v1 made. One of "explore", "api", null. May be null. |
data[].archived | boolean | no | — | Archived threads — every one /openai/v1 made is born archived — are listed only with archived=true. |
data[].created_at | string | no | — | |
data[].updated_at | string | no | — | |
has_more | boolean | no | — | |
next_before | string | no | — | Present exactly when there is another page: the created_at of the last thread on this one. 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 |
#400 Bad Request
#401 Unauthorized
#403 Forbidden
#429 Too Many Requests
#500 Internal Server Error
#503 Service Unavailable
#Status codes
| Status | Meaning |
|---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
429 | Too Many Requests |
500 | Internal Server Error |
503 | Service Unavailable |
Every refusal names its code, and every code is explained at Errors.