Get the current user profile
curl --request GET \
--url https://api.flare.io/firework/v2/me/profile \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.flare.io/firework/v2/me/profile"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.flare.io/firework/v2/me/profile', 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.flare.io/firework/v2/me/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.flare.io/firework/v2/me/profile"
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.flare.io/firework/v2/me/profile")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flare.io/firework/v2/me/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"profile": {
"name": "<string>",
"email": "<string>",
"language": "<string>",
"color_scheme": "auto",
"id": 123,
"surname": "<string>",
"organization_id": 123,
"settings": {
"default_search": "<string>",
"permissions": [
"<string>"
],
"organization_member_permissions": [
"<string>"
]
},
"is_disabled": true,
"feature_flags": {},
"registered_at": "2023-11-07T05:31:56Z",
"urn": "<string>",
"organization_member_permissions": {},
"flare_role": "<string>",
"tenants": [
{
"id": 123,
"name": "<string>",
"type": "<string>",
"description": "<string>",
"organization_id": 123,
"urn": "<string>",
"number_of_employees": 123,
"industry": "<string>",
"is_disabled": true,
"is_archived": true,
"feed_id": 123,
"permissions": [
"<string>"
],
"prevent_global_search": true
}
],
"is_sso_mandatory": true,
"has_password": true,
"needs_eusa": true,
"domain": "<string>",
"should_provide_signup_intent": true
}
}Current User
Retrieve User Profile
Return the profile of the authenticated user, wrapped in a profile object: identity, settings, language, color scheme, feature flags, organization and tenants. tenants holds up to 50 tenants of the user’s organization that the user can read, plus the tenant the caller is acting in. Use PUT /me/profile to update the profile and GET /me/tenants to list only the tenants.
GET
/
firework
/
v2
/
me
/
profile
Get the current user profile
curl --request GET \
--url https://api.flare.io/firework/v2/me/profile \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.flare.io/firework/v2/me/profile"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.flare.io/firework/v2/me/profile', 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.flare.io/firework/v2/me/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.flare.io/firework/v2/me/profile"
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.flare.io/firework/v2/me/profile")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flare.io/firework/v2/me/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"profile": {
"name": "<string>",
"email": "<string>",
"language": "<string>",
"color_scheme": "auto",
"id": 123,
"surname": "<string>",
"organization_id": 123,
"settings": {
"default_search": "<string>",
"permissions": [
"<string>"
],
"organization_member_permissions": [
"<string>"
]
},
"is_disabled": true,
"feature_flags": {},
"registered_at": "2023-11-07T05:31:56Z",
"urn": "<string>",
"organization_member_permissions": {},
"flare_role": "<string>",
"tenants": [
{
"id": 123,
"name": "<string>",
"type": "<string>",
"description": "<string>",
"organization_id": 123,
"urn": "<string>",
"number_of_employees": 123,
"industry": "<string>",
"is_disabled": true,
"is_archived": true,
"feed_id": 123,
"permissions": [
"<string>"
],
"prevent_global_search": true
}
],
"is_sso_mandatory": true,
"has_password": true,
"needs_eusa": true,
"domain": "<string>",
"should_provide_signup_intent": true
}
}Was this page helpful?