Get current user
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.factify.com/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.factify.com/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.factify.com/v1/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.factify.com/v1/me")
.header("Authorization", "Bearer <token>")
.asString();curl --request GET \
--url https://api.factify.com/v1/me \
--header 'Authorization: Bearer <token>'{
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"email": "alice@factify.com",
"display_name": "Alice Chen",
"given_name": "Alice",
"family_name": "Chen"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Missing or invalid authentication credentials."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "You do not have permission to perform this action on this resource."
}{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "Rate limit exceeded. Retry after the period indicated by the Retry-After header."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An unexpected error occurred. Retry, and contact support if the issue persists."
}Users
Get current user
Returns the authenticated user’s profile.
Only available to user accounts (Cognito session, OAuth, or dev JWT). API-key callers have no user identity and receive 403.
GET
/
v1
/
me
Get current user
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.factify.com/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.factify.com/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.factify.com/v1/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.factify.com/v1/me")
.header("Authorization", "Bearer <token>")
.asString();curl --request GET \
--url https://api.factify.com/v1/me \
--header 'Authorization: Bearer <token>'{
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"email": "alice@factify.com",
"display_name": "Alice Chen",
"given_name": "Alice",
"family_name": "Chen"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Missing or invalid authentication credentials."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "You do not have permission to perform this action on this resource."
}{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"detail": "Rate limit exceeded. Retry after the period indicated by the Retry-After header."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An unexpected error occurred. Retry, and contact support if the issue persists."
}Authorizations
Bearer authentication using a factapi-issued API key
(ffy_<env>_<base32_uuid><base62_random>). Cookie-based
sessions are accepted automatically by user-facing endpoints
but are not surfaced as an OpenAPI auth scheme.
Response
OK
Profile of the authenticated user. Returned by GET /v1/me and PATCH /v1/me.
TypedID of the user.
Example:
"usr_01h2xcejqtf2nbrexx3vqjhp41"
User's email address.
Example:
"alice@factify.com"
Display name shown in the UI. Always present.
Example:
"Alice Chen"
Given (first) name. Null when unknown.
Example:
"Alice"
Family (last) name. Null when unknown.
Example:
"Chen"
⌘I