> ## Documentation Index
> Fetch the complete documentation index at: https://vetta.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# resources

> One read API over every resource type — client.resources.

Read-only. Writes stay on each type's own namespace (`client.emails`, `client.domains`, `client.trading`,
`client.computers`, `client.vaults` and so on). Scope `resources:read` (`agents:read` also accepted). Guide:
[Resources](https://vetta.sh/docs/developers/resources.md).

## list

```ts theme={"system"}
client.resources.list(query?: { type?: ResourceType; identity?: string; q?: string; counts?: boolean; limit?: number; after?: string }): Promise<ResourcePage>
```

`GET /v1/resources`. `identity` is an `idn_…` id or `"workspace"`. `counts: true` adds `counts` per type and
`by_identity`.

```ts theme={"system"}
const inboxes = await client.resources.list({ type: "inbox" });
```

## get

```ts theme={"system"}
client.resources.get(id: string): Promise<Resource>
```

`GET /v1/resources/{rid}`. Any resource by id; the prefix picks the type.

## forIdentity

```ts theme={"system"}
client.resources.forIdentity(identityId: string): Promise<{ data: Resource[] }>
```

`GET /v1/identities/{id}/resources`. Everything one identity owns, agentless inboxes included.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.