Change your profile
Change your own profile: its handle (once in 30 days; the old one keeps leading to you and stays yours for 30 days), its name, headline and bio (read by the automatic check), its links — at most fi…
curl -X POST https://api.auray.ai/v1/community/profiles/ada \
-H "Authorization: Bearer $AURAY_API_KEY" \
-H "content-type: application/json" \
-d '{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}'import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
const answer = await auray.platform.community.profiles.update("ada", { bio: "I make quiet pictures.", links: [{"kind":"github","url":"https://github.com/ada"}] });
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # reads AURAY_API_KEY
answer = auray.platform.community.profiles.update("ada", bio="I make quiet pictures.", links=[ { "kind": "github", "url": "https://github.com/ada" } ])
print(answer)const res = await fetch("https://api.auray.ai/v1/community/profiles/ada", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AURAY_API_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}),
});
console.log(await res.json());import os, requests
r = requests.post(
"https://api.auray.ai/v1/community/profiles/ada",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
json={
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
},
)
r.raise_for_status()
print(r.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}`)
req, err := http.NewRequest("POST", "https://api.auray.ai/v1/community/profiles/ada", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("AURAY_API_KEY"))
req.Header.Set("Content-Type", "application/json")
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/profiles/ada");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AURAY_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"bio" => "I make quiet pictures.",
"links" => [
[
"kind" => "github",
"url" => "https://github.com/ada",
],
],
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
require "json"
uri = URI("https://api.auray.ai/v1/community/profiles/ada")
req = Net::HTTP::Post.new(uri)
req["Authorization"] = "Bearer #{ENV.fetch("AURAY_API_KEY")}"
req["Content-Type"] = "application/json"
req.body = {
"bio" => "I make quiet pictures.",
"links" => [
{
"kind" => "github",
"url" => "https://github.com/ada"
}
]
}.to_json
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 {
String body = """
{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/community/profiles/ada"))
.header("Authorization", "Bearer " + System.getenv("AURAY_API_KEY"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("AURAY_API_KEY"));
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.auray.ai/v1/community/profiles/ada");
var body = """
{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}
""";
request.Content = new StringContent(body, Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"standing": "<string>",
"creator": {
"id": "<string>",
"handle": "<string>",
"name": "<string>",
"headline": "<string>",
"bio": "<string>",
"links": [
{
"kind": "<string>",
"url": "<string>"
}
],
"avatar_url": "<string>",
"banner_url": "<string>",
"team": true,
"url": "<string>",
"moderation": "<string>",
"moderation_note": "<string>",
"followers": 123,
"following": 123,
"works": 123,
"handle_change_after": "<string>",
"created_at": "<string>",
"hidden": true,
"show_after": "<string>"
},
"can_publish": true,
"counts": {
"liked": 123,
"collections": 123,
"publications": {}
},
"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>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}Change your own profile: its handle (once in 30 days; the old one keeps leading to you and stays yours for 30 days), its name, headline and bio (read by the automatic check), its links — at most five, each https to the host its kind names — or whether it is hidden from everyone else (hidden at once; shown again no sooner than an hour after, visibility_cooldown with after before then). Fields left out stay as they are. Answered at your own handle only. Takes a key holding community:write — Account offers it unticked — or the desktop's own session key. Spends nothing.
Authorizations
Bearer auray_sk_… — community:write — Account offers it unticked; the desktop's session key holds it.
Path Parameters
@ before it is read past.Show child attributes
"website", "x", "instagram", "tiktok", "youtube", "linkedin", "github", "behance", "dribbble", "artstation", "vimeo", "threads", "bluesky".website anywhere. A URL.OK: your standing, with the profile.
"community".active, limited, suspended or banned.Show child attributes
Show child attributes
"website", "x", "instagram", "tiktok", "youtube", "linkedin", "github", "behance", "dribbble", "artstation", "vimeo", "threads", "bluesky".website anywhere. A URL."visible", "hidden".hidden on Change your profile).Show child attributes
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 -X POST https://api.auray.ai/v1/community/profiles/ada \
-H "Authorization: Bearer $AURAY_API_KEY" \
-H "content-type: application/json" \
-d '{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}'import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
const answer = await auray.platform.community.profiles.update("ada", { bio: "I make quiet pictures.", links: [{"kind":"github","url":"https://github.com/ada"}] });
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # reads AURAY_API_KEY
answer = auray.platform.community.profiles.update("ada", bio="I make quiet pictures.", links=[ { "kind": "github", "url": "https://github.com/ada" } ])
print(answer)const res = await fetch("https://api.auray.ai/v1/community/profiles/ada", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AURAY_API_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}),
});
console.log(await res.json());import os, requests
r = requests.post(
"https://api.auray.ai/v1/community/profiles/ada",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
json={
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
},
)
r.raise_for_status()
print(r.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}`)
req, err := http.NewRequest("POST", "https://api.auray.ai/v1/community/profiles/ada", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("AURAY_API_KEY"))
req.Header.Set("Content-Type", "application/json")
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/profiles/ada");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AURAY_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"bio" => "I make quiet pictures.",
"links" => [
[
"kind" => "github",
"url" => "https://github.com/ada",
],
],
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
require "json"
uri = URI("https://api.auray.ai/v1/community/profiles/ada")
req = Net::HTTP::Post.new(uri)
req["Authorization"] = "Bearer #{ENV.fetch("AURAY_API_KEY")}"
req["Content-Type"] = "application/json"
req.body = {
"bio" => "I make quiet pictures.",
"links" => [
{
"kind" => "github",
"url" => "https://github.com/ada"
}
]
}.to_json
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 {
String body = """
{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/community/profiles/ada"))
.header("Authorization", "Bearer " + System.getenv("AURAY_API_KEY"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("AURAY_API_KEY"));
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.auray.ai/v1/community/profiles/ada");
var body = """
{
"bio": "I make quiet pictures.",
"links": [
{
"kind": "github",
"url": "https://github.com/ada"
}
]
}
""";
request.Content = new StringContent(body, Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"standing": "<string>",
"creator": {
"id": "<string>",
"handle": "<string>",
"name": "<string>",
"headline": "<string>",
"bio": "<string>",
"links": [
{
"kind": "<string>",
"url": "<string>"
}
],
"avatar_url": "<string>",
"banner_url": "<string>",
"team": true,
"url": "<string>",
"moderation": "<string>",
"moderation_note": "<string>",
"followers": 123,
"following": 123,
"works": 123,
"handle_change_after": "<string>",
"created_at": "<string>",
"hidden": true,
"show_after": "<string>"
},
"can_publish": true,
"counts": {
"liked": 123,
"collections": 123,
"publications": {}
},
"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>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}