About me
curl --request GET \
--url https://rest.forestreet.com/v2/users/me \
--header 'x-api-key: <api-key>'import requests
url = "https://rest.forestreet.com/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('https://rest.forestreet.com/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_URL => "https://rest.forestreet.com/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 := "https://rest.forestreet.com/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("https://rest.forestreet.com/v2/users/me")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.forestreet.com/v2/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sub": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"identities": [
{
"userId": "<string>",
"providerName": "<string>",
"providerType": "<string>",
"issuer": "<string>",
"primary": true,
"dateCreated": 123
}
],
"customAttributes": {
"promoGroupName": "<string>",
"isNewUser": true,
"isTermsAgreed": true,
"theme": "<string>",
"ailsaPreferences": {
"activeWidgets": [
"<string>"
],
"isWidgetsHidden": true,
"tableShownColumns": [
"<string>"
]
},
"internalPermissions": []
}
}{
"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 https://rest.forestreet.com/v2/users/me \
--header 'x-api-key: <api-key>'import requests
url = "https://rest.forestreet.com/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('https://rest.forestreet.com/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_URL => "https://rest.forestreet.com/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 := "https://rest.forestreet.com/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("https://rest.forestreet.com/v2/users/me")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.forestreet.com/v2/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sub": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"identities": [
{
"userId": "<string>",
"providerName": "<string>",
"providerType": "<string>",
"issuer": "<string>",
"primary": true,
"dateCreated": 123
}
],
"customAttributes": {
"promoGroupName": "<string>",
"isNewUser": true,
"isTermsAgreed": true,
"theme": "<string>",
"ailsaPreferences": {
"activeWidgets": [
"<string>"
],
"isWidgetsHidden": true,
"tableShownColumns": [
"<string>"
]
},
"internalPermissions": []
}
}{
"success": false,
"errorCode": "FORBIDDEN",
"message": "User not authenticated"
}Authorizations
apiKeyAuthbearerAuthsessionIdQuery
Pass a static API key for every request, provided by your customer support.
Response
Current user information
Available options:
token, apiKey, specialToken Show child attributes
Show child attributes
Available options:
UNCONFIRMED, CONFIRMED, EXTERNAL_PROVIDER, RESET_REQUIRED, FORCE_CHANGE_PASSWORD Show child attributes
Show child attributes
⌘I