Fetch User
curl --request GET \
--url https://api.sublay.io/api/v6/:projectId/api/v7/users/:userIdimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"foreignId": {},
"projectId": "<string>",
"name": {},
"username": {},
"avatar": {},
"bio": {},
"metadata": {},
"reputation": 123,
"avatarFile": {},
"bannerFile": {},
"createdAt": "<string>"
}User Endpoints
Fetch User
Get a user’s public profile by ID
GET
/
:projectId
/
api
/
v7
/
users
/
:userId
Fetch User
curl --request GET \
--url https://api.sublay.io/api/v6/:projectId/api/v7/users/:userIdimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"foreignId": {},
"projectId": "<string>",
"name": {},
"username": {},
"avatar": {},
"bio": {},
"metadata": {},
"reputation": 123,
"avatarFile": {},
"bannerFile": {},
"createdAt": "<string>"
}Returns a user’s public profile by their Sublay user ID. Optionally includes associated file records for the avatar and banner.
Path Parameters
string
required
The Sublay user ID (UUID).
Query Parameters
string
Comma-separated list of associations to include. Pass
"files" to include
the processed avatarFile and bannerFile objects.Space-scoped reputation
This endpoint has no space in context, sospaceReputationId accepts a space <uuid> or none only — context is rejected (400). It adds a spaceReputation field to each returned user, alongside the always-present reputation total. Requires the reputation bundle. See the Reputation data model.
string
Adds
spaceReputation to each returned user. Either a space <uuid> (that space’s bucket) or none (the project-general bucket). context, the empty string, and the legacy general / null aliases are rejected (400). Missing buckets read as 0.boolean
Only honored with an explicit space
<uuid>. When true, spaceReputation is the subtree sum — the space plus all of its descendants. Ignored for none.Response
On success, returns HTTP200 with the user object:
string
Unique user ID (UUID).
string | null
External identifier linking this user to your system.
string
Project this user belongs to.
string | null
Display name.
string | null
Unique username within the project.
string | null
Avatar image URL.
string | null
Short bio text.
object | null
Public custom key-value data.
number
The user’s overall reputation total (the sum of all their reputation buckets).
This is a global lookup with no space in context, so it returns the total only —
see Reputation for space-scoped reads.
object | null
Processed avatar image with variants. Only present when
include=files is
requested.object | null
Processed banner image with variants. Only present when
include=files is
requested.string
ISO timestamp of account creation.
Error Responses
User Not Found — 404
User Not Found — 404
{
"error": "User not found",
"code": "user/not-found"
}
Invalid Params — 400
Invalid Params — 400
{
"error": "...",
"code": "user/invalid-params"
}

