Describe user
curl --request GET \
--url https://api.omnistrate.cloud/2022-09-01-00/user \
--header 'Cookie: <cookie>'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/user"
headers = {"Cookie": "<cookie>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<cookie>'}};
fetch('https://api.omnistrate.cloud/2022-09-01-00/user', 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.omnistrate.cloud/2022-09-01-00/user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <cookie>"
],
]);
$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.omnistrate.cloud/2022-09-01-00/user"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<cookie>")
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.omnistrate.cloud/2022-09-01-00/user")
.header("Cookie", "<cookie>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<cookie>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"roleType": "<string>",
"status": "<string>",
"enabled": true,
"orgId": "<string>",
"orgName": "<string>",
"orgURL": "<string>",
"orgSupportEmail": "<string>",
"planName": "<string>",
"address": {},
"attributes": {},
"createdAt": "<string>",
"lastModifiedAt": "<string>"
}Account management
Describe user
Retrieve the profile of the signed-in user.
GET
/
2022-09-01-00
/
user
Describe user
curl --request GET \
--url https://api.omnistrate.cloud/2022-09-01-00/user \
--header 'Cookie: <cookie>'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/user"
headers = {"Cookie": "<cookie>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<cookie>'}};
fetch('https://api.omnistrate.cloud/2022-09-01-00/user', 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.omnistrate.cloud/2022-09-01-00/user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <cookie>"
],
]);
$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.omnistrate.cloud/2022-09-01-00/user"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<cookie>")
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.omnistrate.cloud/2022-09-01-00/user")
.header("Cookie", "<cookie>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<cookie>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"roleType": "<string>",
"status": "<string>",
"enabled": true,
"orgId": "<string>",
"orgName": "<string>",
"orgURL": "<string>",
"orgSupportEmail": "<string>",
"planName": "<string>",
"address": {},
"attributes": {},
"createdAt": "<string>",
"lastModifiedAt": "<string>"
}Returns the profile of the user identified by the session cookie.
Authorization
Response
string
required
ID of the user.
string
Name of the user.
string
Email of the user.
string
Role of the user.
string
Status of the user.
boolean
Whether the user is enabled.
string
ID of the organization the user owns.
string
Name of the organization the user owns.
string
URL of the organization.
string
Support email of the organization.
string
Product plan associated with the user.
object
Postal address of the user.
object
Additional attributes of the user, as string key-value pairs.
string
Time the user was created.
string
Time the user was last updated.
Errors
See Error for the error response shape.Was this page helpful?