List identities at a node
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/nodes/{id}/identitiesAuthentication
- Bearer Token
AuthorizationJWT access token
Path Parameters
| Name | Required | Type | Description |
|---|---|---|---|
id | string |
Query Parameters
| Name | Required | Type | Description |
|---|---|---|---|
page | number | Page number (1-based) | |
take | number | Items per page (1-100, default 20) | |
q | string | Search term | |
sort_by | enum: "name" | "role" | "access_type" | "created_at" | Sort field | |
order | enum: "asc" | "desc" | Sort order | |
role_id | string | Filter by role ID | |
access_type | enum: "direct" | "inherited" | Filter by access type | |
status | enum: "active" | "scheduled" | "expired" | Filter by assignment status | |
source_node_id | string | Filter by source node ID |
Code samples
curl -X GET "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/nodes/value/identities?page=0&take=0&q=value&sort_by=name&order=asc&role_id=value&access_type=direct&status=active&source_node_id=value" \
-H "Authorization: Bearer $CANOPY_TOKEN"const response = await fetch("https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/nodes/value/identities?page=0&take=0&q=value&sort_by=name&order=asc&role_id=value&access_type=direct&status=active&source_node_id=value", {
method: "GET",
headers: {
"Authorization": "Bearer $CANOPY_TOKEN"
},
});
const data = await response.json();import requests
response = requests.get(
"https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/nodes/value/identities?page=0&take=0&q=value&sort_by=name&order=asc&role_id=value&access_type=direct&status=active&source_node_id=value",
headers={
"Authorization": "Bearer $CANOPY_TOKEN"
},
)
data = response.json()package main
import (
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/nodes/value/identities?page=0&take=0&q=value&sort_by=name&order=asc&role_id=value&access_type=direct&status=active&source_node_id=value", nil)
req.Header.Set("Authorization", "Bearer $CANOPY_TOKEN")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
}Responses
200 Paginated list
{
"items": [
{
"identity": {
"id": "string",
"first_name": "string",
"last_name": "string",
"name": "string",
"email": "string",
"avatar_url": "string"
},
"role": {
"id": "string",
"name": "string"
},
"assignment": {
"id": "string",
"source_node_id": "string",
"source_node_name": "string",
"access_type": "direct",
"effective_from": "2026-04-20T12:00:00.000Z",
"effective_to": "2026-04-20T12:00:00.000Z",
"status": "active",
"created_at": "2026-04-20T12:00:00.000Z"
}
}
],
"pagination": {
"page": 0,
"take": 0,
"item_count": 0,
"page_count": 0,
"has_previous_page": false,
"has_next_page": false
}
}application/json
items *IdentityAssignmentRowDto[]pagination *PageMetaDto
401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)
404 Node not found
Pagination
This endpoint returns a paginated collection. Use the query parameters below to page through results.
page- Page number (1-indexed). Defaults to 1.
take- Items per page (1–100). Defaults to 20.
Each response includes an items array alongside a pagination object with item_count, page_count, has_previous_page, and has_next_page fields.