curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/users/{id}?token='import requests
url = "https://sandbox.circularo.com/api/v1/users/{id}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/users/{id}?token=', 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://sandbox.circularo.com/api/v1/users/{id}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://sandbox.circularo.com/api/v1/users/{id}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/users/{id}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users/{id}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"activeSessions": [
{
"authentication": [
{
"address": "*****89",
"attemptsLeft": 2,
"factor": "sms",
"unlocked": false,
"validUntil": "2023-11-07T05:31:56Z"
}
],
"connection": {
"browser": "Chrome",
"browserVersion": "130.0.0.0",
"ip": "203.0.113.42",
"location": {
"city": "Prague",
"country": "Czechia",
"countryCode": "CZ",
"region": "Prague"
},
"os": "Windows 10.0",
"platform": "Microsoft Windows",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
},
"created": "2023-11-07T05:31:56Z",
"lastUsed": "2023-11-07T05:31:56Z",
"system": false,
"username": "john.doe@example.com",
"validForMilliseconds": 2592000000
}
],
"allowBiometricSignature": false,
"authenticationFactors": [
"totp"
],
"autoTimezone": true,
"backgroundJobs": [
{
"fileHash": "<string>",
"finishedOn": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"queuedOn": "2023-11-07T05:31:56Z",
"result": "<string>",
"startedOn": "2023-11-07T05:31:56Z",
"status": "success"
}
],
"company": "Example Ltd.",
"config": {
"delegation": {
"activationNotificationSent": false,
"deactivationNotificationSent": false,
"time": {
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z"
},
"user": "jane.doe@example.com"
},
"initials": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"language": "en",
"navigationOpen": true,
"notifications": {
"enableAlerts": true,
"inApp": [
"shareForSign"
],
"mail": [
"shareForSign"
],
"push": [
"shareForSign"
]
},
"photo": {
"big": "<string>",
"medium": "<string>",
"nano": "<string>",
"small": "<string>"
},
"scheduler": true,
"signature": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"view": "tableView"
},
"createType": "internal",
"customFields": {
"department": "Legal"
},
"dateformat": "dd/MM/yyyy",
"defaultStamp": "<string>",
"disabledIntros": [
"<string>"
],
"filters": [
{
"iconClass": "filter",
"name": "Recent contracts",
"q": "{\"documentCategory\":[\"Contract\"],\"multifieldDateItems\":[{\"date\":{\"startDate\":\"now-90d/d\",\"endDate\":\"now\",\"predefined\":\"last_90_days\"},\"queryType\":\"created\"}]}"
}
],
"firstActivityOn": "2023-11-07T05:31:56Z",
"firstDayOfWeek": 1,
"fullname": "John Doe",
"group": [
"<string>"
],
"hasActiveDelegation": false,
"hiddenStorageServices": [
"<string>"
],
"id": "john.doe@example.com",
"identities": [
{
"data": {
"id": "<string>",
"userType": "<string>"
},
"name": "uaePass"
}
],
"image": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"language": "en",
"lastActivity": "2023-11-07T05:31:56Z",
"lastReleaseAnnouncementSeen": "26.1.0",
"mail": "john.doe@example.com",
"marketing": false,
"name": "john.doe@example.com",
"organization": "<string>",
"phone": "+420123456789",
"providers": [
{
"connectedOn": "2023-11-07T05:31:56Z",
"name": "google",
"subName": "<string>"
}
],
"recordType": "internal",
"registeredOn": "2023-11-07T05:31:56Z",
"role": "Head of Legal",
"status": null,
"statusChangedOn": "2023-11-07T05:31:56Z",
"templateUsage": [
{
"count": 12,
"custom": true,
"lastUsed": "2023-11-07T05:31:56Z",
"template": "<string>"
}
],
"termsAccepted": true,
"termsAcceptedOn": "2023-11-07T05:31:56Z",
"timeformat": "h:mm a",
"timezone": "Europe/Prague",
"version": 7
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Retrieve a single user
GET /users/{id}
Returns one account with everything kept about it: who the person is and how to reach them, the groups and organization they belong to, the state of the account and when it changed, the way they have the application set up, and the certificates, linked identities and connected providers on it. Secrets - the password, the one-time-password seed, recovery codes and provider tokens - are never part of the answer.
Which accounts can be reached at all depends on the caller’s standing. A member of an organization reaches the accounts of that organization; outside an organization it is decided by the rights held - every account, the accounts of the caller’s own visibility groups, or only the caller’s own. An account beyond that reach is answered exactly like one that does not exist. For the short form of somebody’s profile - the name, the photo, the way to contact them - use GET /users/username/{user} instead.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: view_users
Required user role: admin or organization_admin
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/users/{id}?token='import requests
url = "https://sandbox.circularo.com/api/v1/users/{id}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/users/{id}?token=', 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://sandbox.circularo.com/api/v1/users/{id}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://sandbox.circularo.com/api/v1/users/{id}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/users/{id}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users/{id}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"activeSessions": [
{
"authentication": [
{
"address": "*****89",
"attemptsLeft": 2,
"factor": "sms",
"unlocked": false,
"validUntil": "2023-11-07T05:31:56Z"
}
],
"connection": {
"browser": "Chrome",
"browserVersion": "130.0.0.0",
"ip": "203.0.113.42",
"location": {
"city": "Prague",
"country": "Czechia",
"countryCode": "CZ",
"region": "Prague"
},
"os": "Windows 10.0",
"platform": "Microsoft Windows",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
},
"created": "2023-11-07T05:31:56Z",
"lastUsed": "2023-11-07T05:31:56Z",
"system": false,
"username": "john.doe@example.com",
"validForMilliseconds": 2592000000
}
],
"allowBiometricSignature": false,
"authenticationFactors": [
"totp"
],
"autoTimezone": true,
"backgroundJobs": [
{
"fileHash": "<string>",
"finishedOn": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"queuedOn": "2023-11-07T05:31:56Z",
"result": "<string>",
"startedOn": "2023-11-07T05:31:56Z",
"status": "success"
}
],
"company": "Example Ltd.",
"config": {
"delegation": {
"activationNotificationSent": false,
"deactivationNotificationSent": false,
"time": {
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z"
},
"user": "jane.doe@example.com"
},
"initials": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"language": "en",
"navigationOpen": true,
"notifications": {
"enableAlerts": true,
"inApp": [
"shareForSign"
],
"mail": [
"shareForSign"
],
"push": [
"shareForSign"
]
},
"photo": {
"big": "<string>",
"medium": "<string>",
"nano": "<string>",
"small": "<string>"
},
"scheduler": true,
"signature": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"view": "tableView"
},
"createType": "internal",
"customFields": {
"department": "Legal"
},
"dateformat": "dd/MM/yyyy",
"defaultStamp": "<string>",
"disabledIntros": [
"<string>"
],
"filters": [
{
"iconClass": "filter",
"name": "Recent contracts",
"q": "{\"documentCategory\":[\"Contract\"],\"multifieldDateItems\":[{\"date\":{\"startDate\":\"now-90d/d\",\"endDate\":\"now\",\"predefined\":\"last_90_days\"},\"queryType\":\"created\"}]}"
}
],
"firstActivityOn": "2023-11-07T05:31:56Z",
"firstDayOfWeek": 1,
"fullname": "John Doe",
"group": [
"<string>"
],
"hasActiveDelegation": false,
"hiddenStorageServices": [
"<string>"
],
"id": "john.doe@example.com",
"identities": [
{
"data": {
"id": "<string>",
"userType": "<string>"
},
"name": "uaePass"
}
],
"image": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"language": "en",
"lastActivity": "2023-11-07T05:31:56Z",
"lastReleaseAnnouncementSeen": "26.1.0",
"mail": "john.doe@example.com",
"marketing": false,
"name": "john.doe@example.com",
"organization": "<string>",
"phone": "+420123456789",
"providers": [
{
"connectedOn": "2023-11-07T05:31:56Z",
"name": "google",
"subName": "<string>"
}
],
"recordType": "internal",
"registeredOn": "2023-11-07T05:31:56Z",
"role": "Head of Legal",
"status": null,
"statusChangedOn": "2023-11-07T05:31:56Z",
"templateUsage": [
{
"count": 12,
"custom": true,
"lastUsed": "2023-11-07T05:31:56Z",
"template": "<string>"
}
],
"termsAccepted": true,
"termsAcceptedOn": "2023-11-07T05:31:56Z",
"timeformat": "h:mm a",
"timezone": "Europe/Prague",
"version": 7
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Response
Returns the user account.
How the account came to exist - created by an administrator (internal), registered by the person themselves (register), brought in by a first sign-in through an identity provider (oauth, saml, loginhub), or kept in step with an outside directory (scim). The last one is the load-bearing case: such an account refuses changes made through the API.
"internal"
State of the account, which decides whether it can be used at all. A deleted account is kept only as a record of who acted in the past.
active: The account is active and can be used.deleted: The account has been deleted.newly_created: The account has been created but not yet activated.password_change_requested: The account must set a new password before it can be used.suspended: The account has been suspended and cannot be used until it is reactivated.
null, active, deleted, newly_created, password_change_requested, suspended