About me
curl --request GET \
--url http://localhost:4000/v2/users/me \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/users/me"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('http://localhost:4000/v2/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_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v2/users/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "http://localhost:4000/v2/users/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:4000/v2/users/me")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/users/me")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sub": "<string>",
"authenticationMethod": "token",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"identities": [
{
"userId": "<string>",
"providerName": "<string>",
"providerType": "<string>",
"issuer": "<string>",
"primary": true,
"dateCreated": 123
}
],
"userStatus": "UNCONFIRMED",
"customAttributes": {
"promoGroupName": "<string>",
"isNewUser": true,
"isTermsAgreed": true,
"theme": "<string>",
"ailsaPreferences": {
"activeWidgets": [
"<string>"
],
"isWidgetsHidden": true,
"tableShownColumns": [
"<string>"
]
},
"internalPermissions": [
"user.admin"
]
}
}{
"success": false,
"errorCode": "FORBIDDEN",
"message": "User not authenticated"
}User Operations
About me
Get the current user’s information and their access to teams and collections.
This endpoint returns the user’s authentication metadata, including their ID and email, as well as the IDs of teams and collections they have access to.
GET
/
v2
/
users
/
me
About me
curl --request GET \
--url http://localhost:4000/v2/users/me \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/users/me"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('http://localhost:4000/v2/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_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v2/users/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "http://localhost:4000/v2/users/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:4000/v2/users/me")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/users/me")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sub": "<string>",
"authenticationMethod": "token",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"identities": [
{
"userId": "<string>",
"providerName": "<string>",
"providerType": "<string>",
"issuer": "<string>",
"primary": true,
"dateCreated": 123
}
],
"userStatus": "UNCONFIRMED",
"customAttributes": {
"promoGroupName": "<string>",
"isNewUser": true,
"isTermsAgreed": true,
"theme": "<string>",
"ailsaPreferences": {
"activeWidgets": [
"<string>"
],
"isWidgetsHidden": true,
"tableShownColumns": [
"<string>"
]
},
"internalPermissions": [
"user.admin"
]
}
}{
"success": false,
"errorCode": "FORBIDDEN",
"message": "User not authenticated"
}Authorizations
apiKeyAuthbearerAuthsessionIdQuery
Response
Current user information