curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/users/username/{user}?token='import requests
url = "https://sandbox.circularo.com/api/v1/users/username/{user}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/users/username/{user}?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/username/{user}?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/username/{user}?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/username/{user}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users/username/{user}?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
}
],
"customFields": {
"department": "Legal"
},
"fullname": "John Doe",
"hasActiveDelegation": false,
"image": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"language": "en",
"lastActivity": "2023-11-07T05:31:56Z",
"mail": "john.doe@example.com",
"name": "john.doe@example.com",
"phone": "+420123456789",
"recordType": "internal",
"role": "Head of Legal"
}{
"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"
}Look up short information about a user
GET /users/username/{user}
Returns the essentials about one account - the name it is known by, the e-mail address and phone, the profile picture in the size asked for, the chosen language, the custom fields and whether the person currently has their work delegated to somebody else. It is what fills an avatar, a mention or a recipient chip without pulling the whole account record; for that use GET /users/{id}.
Only an account that can be used answers here: one that is suspended, deleted or not yet activated is treated as absent, as is an account outside what the caller may see - inside an organization that is the organization’s own accounts, outside one it follows from the rights held.
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
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/users/username/{user}?token='import requests
url = "https://sandbox.circularo.com/api/v1/users/username/{user}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/users/username/{user}?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/username/{user}?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/username/{user}?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/username/{user}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users/username/{user}?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
}
],
"customFields": {
"department": "Legal"
},
"fullname": "John Doe",
"hasActiveDelegation": false,
"image": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"language": "en",
"lastActivity": "2023-11-07T05:31:56Z",
"mail": "john.doe@example.com",
"name": "john.doe@example.com",
"phone": "+420123456789",
"recordType": "internal",
"role": "Head of Legal"
}{
"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
Query Parameters
Response
Returns the short form of the account.