curl --request GET \
--url https://scribe.skeptrune.com/api/me \
--cookie scribe_session=import requests
url = "https://scribe.skeptrune.com/api/me"
headers = {"cookie": "scribe_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'scribe_session='}};
fetch('https://scribe.skeptrune.com/api/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://scribe.skeptrune.com/api/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "scribe_session=",
]);
$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://scribe.skeptrune.com/api/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "scribe_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scribe.skeptrune.com/api/me")
.header("cookie", "scribe_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe.skeptrune.com/api/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'scribe_session='
response = http.request(request)
puts response.read_body{
"user": {
"id": "usr_V1StGXR8_Z5jdHi6BmyT",
"email": "[email protected]",
"name": "Ada Lovelace",
"handle": "ada",
"avatarUrl": "/api/uploads/users/usr_V1StGXR8_Z5jdHi6BmyT/avatar",
"createdAt": 1752624000000,
"updatedAt": 1752624000000
},
"orgs": [
{
"id": "org_4kBnQpR7sT2vWxYz01ab",
"name": "Acme Inc.",
"slug": "acme",
"iconUrl": "/api/uploads/orgs/org_4kBnQpR7sT2vWxYz01ab/icon",
"role": "member"
}
],
"currentOrgId": "org_4kBnQpR7sT2vWxYz01ab",
"defaultOrgId": "org_4kBnQpR7sT2vWxYz01ab"
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}Get my profile
Returns the authenticated user, every organization they belong to (with role), and the organization the request is scoped to. Works without an organization selection, so multi-org clients can call it first to pick one (X-Org-Id). Requires a user session — API keys have no profile and are rejected.
curl --request GET \
--url https://scribe.skeptrune.com/api/me \
--cookie scribe_session=import requests
url = "https://scribe.skeptrune.com/api/me"
headers = {"cookie": "scribe_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'scribe_session='}};
fetch('https://scribe.skeptrune.com/api/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://scribe.skeptrune.com/api/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "scribe_session=",
]);
$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://scribe.skeptrune.com/api/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "scribe_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scribe.skeptrune.com/api/me")
.header("cookie", "scribe_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe.skeptrune.com/api/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'scribe_session='
response = http.request(request)
puts response.read_body{
"user": {
"id": "usr_V1StGXR8_Z5jdHi6BmyT",
"email": "[email protected]",
"name": "Ada Lovelace",
"handle": "ada",
"avatarUrl": "/api/uploads/users/usr_V1StGXR8_Z5jdHi6BmyT/avatar",
"createdAt": 1752624000000,
"updatedAt": 1752624000000
},
"orgs": [
{
"id": "org_4kBnQpR7sT2vWxYz01ab",
"name": "Acme Inc.",
"slug": "acme",
"iconUrl": "/api/uploads/orgs/org_4kBnQpR7sT2vWxYz01ab/icon",
"role": "member"
}
],
"currentOrgId": "org_4kBnQpR7sT2vWxYz01ab",
"defaultOrgId": "org_4kBnQpR7sT2vWxYz01ab"
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}{
"error": {
"code": "not_found",
"message": "No such document."
}
}Authorizations
Browser session cookie set by the WorkOS sign-in flow.
Response
The current user profile.
Profile of the authenticated user plus their organization memberships.
A Scribe user profile.
Show child attributes
Show child attributes
{
"id": "usr_V1StGXR8_Z5jdHi6BmyT",
"email": "[email protected]",
"name": "Ada Lovelace",
"handle": "ada",
"avatarUrl": "/api/uploads/users/usr_V1StGXR8_Z5jdHi6BmyT/avatar",
"createdAt": 1752624000000,
"updatedAt": 1752624000000
}
All organizations the user belongs to.
Show child attributes
Show child attributes
[
{
"id": "org_4kBnQpR7sT2vWxYz01ab",
"name": "Acme Inc.",
"slug": "acme",
"iconUrl": "/api/uploads/orgs/org_4kBnQpR7sT2vWxYz01ab/icon",
"role": "member"
}
]
Id of the organization the request is scoped to (via the X-Org-Id header or ?orgId). Without an explicit selection it falls back to the default organization, then to the first membership; empty for accounts without an organization.
"org_4kBnQpR7sT2vWxYz01ab"
Id of the organization sessions fall back to when no X-Org-Id selection is sent (set via PUT /api/me/default-org). Null only when the user belongs to no organization or their default organization was just deleted.
"org_4kBnQpR7sT2vWxYz01ab"