Update the current user
curl --request PATCH \
--url https://api.abacuslabs.co/users/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fullName": "Jane Doe",
"teamId": "team-abc123",
"email": "jane.doe@acme.com",
"avatarUrl": "https://example.supabase.co/storage/v1/object/public/avatars/user.jpg",
"locale": "en-US",
"weekStartsOnMonday": true,
"timezone": "America/New_York",
"timezoneAutoSync": true,
"timeFormat": 24,
"dateFormat": "yyyy-MM-dd",
"jobTitle": "VP of Collections",
"department": "Underwriting",
"phone": "(555) 123-4567"
}
'import requests
url = "https://api.abacuslabs.co/users/me"
payload = {
"fullName": "Jane Doe",
"teamId": "team-abc123",
"email": "jane.doe@acme.com",
"avatarUrl": "https://example.supabase.co/storage/v1/object/public/avatars/user.jpg",
"locale": "en-US",
"weekStartsOnMonday": True,
"timezone": "America/New_York",
"timezoneAutoSync": True,
"timeFormat": 24,
"dateFormat": "yyyy-MM-dd",
"jobTitle": "VP of Collections",
"department": "Underwriting",
"phone": "(555) 123-4567"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fullName: 'Jane Doe',
teamId: 'team-abc123',
email: 'jane.doe@acme.com',
avatarUrl: 'https://example.supabase.co/storage/v1/object/public/avatars/user.jpg',
locale: 'en-US',
weekStartsOnMonday: true,
timezone: 'America/New_York',
timezoneAutoSync: true,
timeFormat: 24,
dateFormat: 'yyyy-MM-dd',
jobTitle: 'VP of Collections',
department: 'Underwriting',
phone: '(555) 123-4567'
})
};
fetch('https://api.abacuslabs.co/users/me', 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.abacuslabs.co/users/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'fullName' => 'Jane Doe',
'teamId' => 'team-abc123',
'email' => 'jane.doe@acme.com',
'avatarUrl' => 'https://example.supabase.co/storage/v1/object/public/avatars/user.jpg',
'locale' => 'en-US',
'weekStartsOnMonday' => true,
'timezone' => 'America/New_York',
'timezoneAutoSync' => true,
'timeFormat' => 24,
'dateFormat' => 'yyyy-MM-dd',
'jobTitle' => 'VP of Collections',
'department' => 'Underwriting',
'phone' => '(555) 123-4567'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.abacuslabs.co/users/me"
payload := strings.NewReader("{\n \"fullName\": \"Jane Doe\",\n \"teamId\": \"team-abc123\",\n \"email\": \"jane.doe@acme.com\",\n \"avatarUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg\",\n \"locale\": \"en-US\",\n \"weekStartsOnMonday\": true,\n \"timezone\": \"America/New_York\",\n \"timezoneAutoSync\": true,\n \"timeFormat\": 24,\n \"dateFormat\": \"yyyy-MM-dd\",\n \"jobTitle\": \"VP of Collections\",\n \"department\": \"Underwriting\",\n \"phone\": \"(555) 123-4567\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.abacuslabs.co/users/me")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fullName\": \"Jane Doe\",\n \"teamId\": \"team-abc123\",\n \"email\": \"jane.doe@acme.com\",\n \"avatarUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg\",\n \"locale\": \"en-US\",\n \"weekStartsOnMonday\": true,\n \"timezone\": \"America/New_York\",\n \"timezoneAutoSync\": true,\n \"timeFormat\": 24,\n \"dateFormat\": \"yyyy-MM-dd\",\n \"jobTitle\": \"VP of Collections\",\n \"department\": \"Underwriting\",\n \"phone\": \"(555) 123-4567\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fullName\": \"Jane Doe\",\n \"teamId\": \"team-abc123\",\n \"email\": \"jane.doe@acme.com\",\n \"avatarUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg\",\n \"locale\": \"en-US\",\n \"weekStartsOnMonday\": true,\n \"timezone\": \"America/New_York\",\n \"timezoneAutoSync\": true,\n \"timeFormat\": 24,\n \"dateFormat\": \"yyyy-MM-dd\",\n \"jobTitle\": \"VP of Collections\",\n \"department\": \"Underwriting\",\n \"phone\": \"(555) 123-4567\"\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"fullName": "Jane Doe",
"email": "jane.doe@acme.com",
"avatarUrl": "https://example.supabase.co/storage/v1/object/public/avatars/user.jpg",
"locale": "en-US",
"weekStartsOnMonday": true,
"timezone": "America/New_York",
"timezoneAutoSync": true,
"timeFormat": 24,
"dateFormat": "yyyy-MM-dd",
"fileKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature",
"team": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"plan": "pro"
}
}Users
Update the current user
Update the current user for the authenticated team.
PATCH
/
users
/
me
Update the current user
curl --request PATCH \
--url https://api.abacuslabs.co/users/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fullName": "Jane Doe",
"teamId": "team-abc123",
"email": "jane.doe@acme.com",
"avatarUrl": "https://example.supabase.co/storage/v1/object/public/avatars/user.jpg",
"locale": "en-US",
"weekStartsOnMonday": true,
"timezone": "America/New_York",
"timezoneAutoSync": true,
"timeFormat": 24,
"dateFormat": "yyyy-MM-dd",
"jobTitle": "VP of Collections",
"department": "Underwriting",
"phone": "(555) 123-4567"
}
'import requests
url = "https://api.abacuslabs.co/users/me"
payload = {
"fullName": "Jane Doe",
"teamId": "team-abc123",
"email": "jane.doe@acme.com",
"avatarUrl": "https://example.supabase.co/storage/v1/object/public/avatars/user.jpg",
"locale": "en-US",
"weekStartsOnMonday": True,
"timezone": "America/New_York",
"timezoneAutoSync": True,
"timeFormat": 24,
"dateFormat": "yyyy-MM-dd",
"jobTitle": "VP of Collections",
"department": "Underwriting",
"phone": "(555) 123-4567"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fullName: 'Jane Doe',
teamId: 'team-abc123',
email: 'jane.doe@acme.com',
avatarUrl: 'https://example.supabase.co/storage/v1/object/public/avatars/user.jpg',
locale: 'en-US',
weekStartsOnMonday: true,
timezone: 'America/New_York',
timezoneAutoSync: true,
timeFormat: 24,
dateFormat: 'yyyy-MM-dd',
jobTitle: 'VP of Collections',
department: 'Underwriting',
phone: '(555) 123-4567'
})
};
fetch('https://api.abacuslabs.co/users/me', 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.abacuslabs.co/users/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'fullName' => 'Jane Doe',
'teamId' => 'team-abc123',
'email' => 'jane.doe@acme.com',
'avatarUrl' => 'https://example.supabase.co/storage/v1/object/public/avatars/user.jpg',
'locale' => 'en-US',
'weekStartsOnMonday' => true,
'timezone' => 'America/New_York',
'timezoneAutoSync' => true,
'timeFormat' => 24,
'dateFormat' => 'yyyy-MM-dd',
'jobTitle' => 'VP of Collections',
'department' => 'Underwriting',
'phone' => '(555) 123-4567'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.abacuslabs.co/users/me"
payload := strings.NewReader("{\n \"fullName\": \"Jane Doe\",\n \"teamId\": \"team-abc123\",\n \"email\": \"jane.doe@acme.com\",\n \"avatarUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg\",\n \"locale\": \"en-US\",\n \"weekStartsOnMonday\": true,\n \"timezone\": \"America/New_York\",\n \"timezoneAutoSync\": true,\n \"timeFormat\": 24,\n \"dateFormat\": \"yyyy-MM-dd\",\n \"jobTitle\": \"VP of Collections\",\n \"department\": \"Underwriting\",\n \"phone\": \"(555) 123-4567\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.abacuslabs.co/users/me")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fullName\": \"Jane Doe\",\n \"teamId\": \"team-abc123\",\n \"email\": \"jane.doe@acme.com\",\n \"avatarUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg\",\n \"locale\": \"en-US\",\n \"weekStartsOnMonday\": true,\n \"timezone\": \"America/New_York\",\n \"timezoneAutoSync\": true,\n \"timeFormat\": 24,\n \"dateFormat\": \"yyyy-MM-dd\",\n \"jobTitle\": \"VP of Collections\",\n \"department\": \"Underwriting\",\n \"phone\": \"(555) 123-4567\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fullName\": \"Jane Doe\",\n \"teamId\": \"team-abc123\",\n \"email\": \"jane.doe@acme.com\",\n \"avatarUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg\",\n \"locale\": \"en-US\",\n \"weekStartsOnMonday\": true,\n \"timezone\": \"America/New_York\",\n \"timezoneAutoSync\": true,\n \"timeFormat\": 24,\n \"dateFormat\": \"yyyy-MM-dd\",\n \"jobTitle\": \"VP of Collections\",\n \"department\": \"Underwriting\",\n \"phone\": \"(555) 123-4567\"\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"fullName": "Jane Doe",
"email": "jane.doe@acme.com",
"avatarUrl": "https://example.supabase.co/storage/v1/object/public/avatars/user.jpg",
"locale": "en-US",
"weekStartsOnMonday": true,
"timezone": "America/New_York",
"timezoneAutoSync": true,
"timeFormat": 24,
"dateFormat": "yyyy-MM-dd",
"fileKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature",
"team": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"plan": "pro"
}
}Body
application/json
Response
200 - application/json
The updated user
Team file key (JWT token) for proxy/download access to team files. This compact JWT token contains the team ID and is shared by all team members. Use this token as the fk query parameter when accessing file endpoints (proxy, download). The token is team-scoped and provides access to files belonging to the user's team. Returns null if the user has no team.
Example:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature"