curl --request GET \
--url https://app.trelica.com/api/apps/v1/{appId}/users \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trelica.com/api/apps/v1/{appId}/users"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trelica.com/api/apps/v1/{appId}/users', 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://app.trelica.com/api/apps/v1/{appId}/users",
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://app.trelica.com/api/apps/v1/{appId}/users"
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://app.trelica.com/api/apps/v1/{appId}/users")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trelica.com/api/apps/v1/{appId}/users")
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{
"next": "https://app.trelica.com/api/apps/v1/9425963fcd38ed972d209b49/users?after=eyJpZCI6IjY0NjlmMGIzZTJhMWM0ZDVmNmE3YjgwMSJ9&limit=100",
"results": [
{
"id": "6469f0b3e2a1c4d5f6a7b801",
"name": "John Doe",
"email": "john.doe@example.com",
"status": "Active",
"lastLoginDtm": "2024-05-24T09:12:33Z",
"deleted": false,
"lastModifiedDtm": "2024-05-26T01:03:26Z"
},
{
"id": "6469f0b3e2a1c4d5f6a7b802",
"name": "Jane Smith",
"email": "jane.smith@example.com",
"status": "Active",
"lastLoginDtm": "2024-05-25T16:45:02Z",
"deleted": false,
"lastModifiedDtm": "2024-05-25T16:45:02Z"
}
]
}{
"type": "about:blank",
"title": "One or more validation errors occurred.",
"status": 400,
"detail": "The request body failed validation. See errors for the offending fields.",
"errors": {
"email": [
"The email field is required."
]
},
"traceId": "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01"
}List application accounts
Returns a paginated list of the accounts (users) on a given application. Follow the
next link to page through large result sets.
Required scope: Apps.Users.Read (Read-only access to application accounts)
curl --request GET \
--url https://app.trelica.com/api/apps/v1/{appId}/users \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trelica.com/api/apps/v1/{appId}/users"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trelica.com/api/apps/v1/{appId}/users', 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://app.trelica.com/api/apps/v1/{appId}/users",
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://app.trelica.com/api/apps/v1/{appId}/users"
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://app.trelica.com/api/apps/v1/{appId}/users")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trelica.com/api/apps/v1/{appId}/users")
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{
"next": "https://app.trelica.com/api/apps/v1/9425963fcd38ed972d209b49/users?after=eyJpZCI6IjY0NjlmMGIzZTJhMWM0ZDVmNmE3YjgwMSJ9&limit=100",
"results": [
{
"id": "6469f0b3e2a1c4d5f6a7b801",
"name": "John Doe",
"email": "john.doe@example.com",
"status": "Active",
"lastLoginDtm": "2024-05-24T09:12:33Z",
"deleted": false,
"lastModifiedDtm": "2024-05-26T01:03:26Z"
},
{
"id": "6469f0b3e2a1c4d5f6a7b802",
"name": "Jane Smith",
"email": "jane.smith@example.com",
"status": "Active",
"lastLoginDtm": "2024-05-25T16:45:02Z",
"deleted": false,
"lastModifiedDtm": "2024-05-25T16:45:02Z"
}
]
}{
"type": "about:blank",
"title": "One or more validation errors occurred.",
"status": 400,
"detail": "The request body failed validation. See errors for the offending fields.",
"errors": {
"email": [
"The email field is required."
]
},
"traceId": "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01"
}Authorizations
OAuth 2.0. Obtain an access token via the Client Credentials or Authorization Code flow, then send it as Authorization: Bearer <token>.
Path Parameters
Query Parameters
A SCIM-style filter expression restricting the items returned. See the Filtering section of the introduction for the operators and syntax; the filterable fields are listed per resource.
Filterable fields
- string:
email,id,name,status - date:
lastLoginDtm,lastModifiedDtm - boolean:
deleted
Filter examples
status eq "Active"— Accounts that are currently activeemail co "@example.com"— Accounts with an example.com email addresslastLoginDtm ge "2024-01-01"— Accounts that logged in on or after 1 Jan 2024not (lastLoginDtm pr)— Accounts that have never logged indeleted eq true— Show deleted accounts (excluded by default)
Free-text search across the resource's displayable fields.
Only return items modified at or after this ISO-8601 timestamp.
Only return items modified at or before this ISO-8601 timestamp.
Opaque pagination cursor supplied by SaaS Manager via the link response header and the next field.
Maximum number of items to return per page (default 100, maximum 1000).
1 <= x <= 1000Was this page helpful?