Get identity detail with role assignments
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/identities/{id}/detailAuthentication
- Bearer Token
AuthorizationJWT access token
Path Parameters
| Name | Required | Type | Description |
|---|---|---|---|
id | string |
Code samples
curl -X GET "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/identities/value/detail" \
-H "Authorization: Bearer $CANOPY_TOKEN"const response = await fetch("https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/identities/value/detail", {
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}/identities/value/detail",
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}/identities/value/detail", nil)
req.Header.Set("Authorization", "Bearer $CANOPY_TOKEN")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
}Responses
200 Identity detail with roles and management flags returned
{
"id": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"name": "string",
"avatar_url": "string",
"external_id": "string",
"metadata": {},
"is_active": false,
"roles": [
{
"assignment_id": "string",
"id": "string",
"name": "string",
"node_id": "string",
"node_name": "string"
}
],
"can_manage": false,
"created_at": "2026-04-20T12:00:00.000Z",
"updated_at": "2026-04-20T12:00:00.000Z"
}application/json
id *stringemail *stringfirst_name *stringlast_name *stringname *stringavatar_urlstringexternal_idstringmetadataany objectis_active *booleanroles *IdentityRoleDto[]can_manage *booleancreated_at *string (date-time)updated_at *string (date-time)
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 Identity not found