---
title: "List a tenant's subjects"
method: GET
path: "/v1/workspaces/{workspaceId}/tenants/{tenantId}/subjects"
tags: ["TenantService", "Tenants"]
---

# List a tenant's subjects

`GET /v1/workspaces/{workspaceId}/tenants/{tenantId}/subjects`

Lists the subjects asserted under a tenant. Subjects are only listable through their tenant: a subject's external_id is unique within its tenant, not across the workspace, so the same key can name different people under different tenants.

## Path parameters

- `workspaceId` string, required
- `tenantId` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `query` string
- `sortOrder` string
- `includeInfo` boolean

## Response `200`

OK

- ListTenantSubjectsResponse — List tenant subjects response.
  - `items` Subject[]
    - `metadata` ResourceMetadata, required — Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
      - `id` string, required — Unique identifier for the resource (prefixed ULID, e.g., "agent_01HXK...")
      - `accountId` string, required — Account this resource belongs to for multi-tenant isolation (prefixed ULID)
      - `workspaceId` string, required — Workspace this resource belongs to for organizational grouping (prefixed ULID)
      - `name` string, required — Human-readable name for the resource (e.g., "Customer Support Agent", "Email Tool") Required for resources that users interact with directly
      - `externalId` string — External ID for the resource (e.g., a workflow ID from an external system)
      - `labels` object — Key-value pairs for categorization and filtering. Values are 0-63 alphanumeric characters with "-", "_", or "." allowed between; keys follow the same shape and additionally accept an optional DNS-subdomain prefix (e.g. "cadenya.com/") of at most 253 characters. Examples: {"environment": "production", "team": "platform", "version": "v2"}
      - `profileId` string, required — ID of the actor (user or service account) that created this resource
      - `createdAt` string, date-time, required — Timestamp when this resource was created
      - `updatedAt` string, date-time — Timestamp when this resource was last updated
    - `info` SubjectInfo — SubjectInfo provides read-only server-derived data about a subject.
      - `tenant` TenantReference — TenantReference is the read-only echo of a resource's tenant association, carrying both Cadenya's canonical id and the customer's own key.
        - `id` string, required — Cadenya's canonical tenant id.
        - `externalId` string, required — The tenant identifier in the customer's namespace, as asserted.
        - `name` string — Human-readable name of the tenant, when one has been asserted.
      - `objectiveCount` integer — Number of objectives associated with this subject.
  - `pagination` Page — Page carries cursor-based pagination state. There is no total: the cursor walks the result set without ever counting it, and a count would cost a second query on every list.
    - `nextCursor` string

## Other responses

- `default` — Default error response

---

[API](https://skmtc.net/cadenya/apis/cadenya-api.md) · [All operations](https://skmtc.net/cadenya/apis/cadenya-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cadenya/cadenya-api/revisions/ac1a7f084068/schema)
