> ## 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 real thing your agent owns: identities, inboxes, domains, numbers, brokerage, computers, browsers, phones, characters, apps and more.

A **resource** is something your agent owns and keeps between calls: an inbox it reads, a domain it bought, a brokerage
account it trades in, a computer it runs commands on. Most resources belong to an [identity](https://vetta.sh/docs/developers/identities.md);
a few (domains, computers, browsers, mobile sandboxes, characters, vaults and hosted apps) belong to the workspace.

In the console, **Identities** has two tabs: **Identities** (each identity and what it owns) and **Resources**: every
resource in the workspace in one table, the workspace's own (apps, domains, computers, browsers, mobile sandboxes,
characters, vaults) and each identity's
(inboxes, numbers, cards, brokerage, wallets, browser profiles, companies, social and connected apps). Filter it by
type and by owner (the workspace or one identity); each row opens that resource's page.

There is one **read** API across all of them, and each type keeps its existing, documented **write** routes. Nothing
about those routes changed.

## List resources

`GET /v1/resources` — scope `resources:read` (a key with `agents:read` also works).

**type** `string`

One of the types below, e.g. `inbox`, `domain`, `brokerage`.

**identity** `string`

An `idn_…` id, or `workspace` for resources no identity owns.

**q** `string`

Matches the display name (an address, a number, a domain).

**counts** `string`

`1` adds `counts` (per type) and `by_identity` (per identity, per type) to the page.

**limit** `integer`

Default 20, max 100. Page with `after`.

```bash theme={"system"}
curl "https://api.vetta.sh/v1/resources?type=inbox&counts=1" \
  -H "Authorization: Bearer $NAIVE_API_KEY"
```

## Get one resource

`GET /v1/resources/{rid}` — scope `resources:read`. The id's prefix picks the type (`eml_…` is an inbox, `dom_…` a
domain). An unknown prefix answers `404 not_found`.

## Resources of one identity

`GET /v1/identities/{id}/resources` — scope `resources:read`. Everything the identity owns, in one list.

## The resource object

Every type is wrapped in the same envelope. `data` is the type's own object, unchanged, exactly as its existing route
returns it.

**object** `string`

Always `resource`.

**type** `string`

The resource type.

**id** `string`

The type's own id (`eml_…`, `dom_…`, `brw_…`, `mob_…`, `chr_…`). Brokerage, browser profile and social ids are derived (`brk_…`, `bpr_…`, `soc_…`) and are only meaningful to this API.

**identity\_id** `string | null`

The owning identity, or `null` for a workspace resource.

**name** `string`

A display value: the address, the number, the domain, a card's last four, `AAPL paper`.

**status** `string`

The type's own status.

**live** `boolean | null`

Brokerage only: `true` for a live account, `false` for paper.

**monthly\_cost\_micro\_usd** `integer | null`

The recurring cost, where there is one.

**created\_at** `string | null`

Creation time.

**data** `object`

The existing object for this type.

```json theme={"system"}
{
  "object": "resource",
  "type": "inbox",
  "id": "eml_01JD7Q3S8W2N4V6X8Z0B2C4D6F",
  "identity_id": "idn_01JD7Q2R5T7V9X1Z3B5D7F9H1K",
  "name": "support@acme.example.com",
  "status": "active",
  "live": null,
  "monthly_cost_micro_usd": null,
  "created_at": "2026-12-01T09:12:00Z",
  "data": { "object": "email_inbox", "id": "eml_01JD7Q3S8W2N4V6X8Z0B2C4D6F" }
}
```

## Every resource type

**Asks first** names the [approval rule](https://vetta.sh/docs/developers/identities.md#approval-rules) a call is checked against. **Funded**
means the call needs a funded workspace (a top-up of \$10 or more).

| Type | Id | Owner | Status | Create | Other writes | Guide |
| - | - | - | - | - | - | - |
| `identity` | `idn_` | workspace | Live | `POST /v1/identities` | `PATCH /v1/identities/{id}`, `DELETE /v1/identities/{id}` | [Identities](https://vetta.sh/docs/developers/identities.md) |
| `inbox` | `eml_` | identity | Live | `POST /v1/identities/{id}/emails` | `POST /v1/identities/{id}/emails/{eid}/send` (asks first: Send email; funded unless sent to your own email), `PATCH /v1/identities/{id}/emails/{eid}`, `DELETE /v1/identities/{id}/emails/{eid}` | [Email](https://vetta.sh/docs/identity/email.md) |
| `domain` | `dom_` | workspace | Live | `POST /v1/domains` (connect your own, or `{"kind":"system"}`) | `POST /v1/domains/quote`, `POST /v1/domains/purchase` (asks first: Buy a domain; funded), `POST /v1/domains/{id}/verify`, `DELETE /v1/domains/{id}` | [Domains](https://vetta.sh/docs/identity/domains.md) |
| `phone` | `pho_` | identity | Live (receive texts; send once the carrier approves) | `POST /v1/identities/{id}/phones` (asks first: Buy a phone number; funded) | `PATCH /v1/identities/{id}/phones/{pid}`, `DELETE /v1/identities/{id}/phones/{pid}` | [Phone](https://vetta.sh/docs/identity/phone.md) |
| `card` | `vcd_` | identity | Early access | `POST /v1/identities/{id}/cards` (asks first: Issue / fund a card) | `POST /v1/identities/{id}/cards/{cid}/cancel` | [Cards](https://vetta.sh/docs/identity/cards.md) |
| `brokerage` | `brk_` | identity | Live (paper by default) | `POST /v1/identities/{id}/trading/connect` | `POST /v1/identities/{id}/trading/orders` (live orders ask first: Place a live trade; paper never asks), `POST /v1/identities/{id}/trading/positions/{symbol}/close`, `DELETE /v1/identities/{id}/trading/orders/{order_id}`, `DELETE /v1/identities/{id}/trading/connections/{env}` | [Trading](https://vetta.sh/docs/identity/trading.md) |
| `wallet` | `wlt_` | identity | Early access | `POST /v1/identities/{id}/wallet` | `POST /v1/identities/{id}/wallet/pay`, `/transfer`, `/fund`, `/sweep` (asks first: Move money out), `/freeze`, `/unfreeze` | [Wallet](https://vetta.sh/docs/identity/wallet.md) |
| `computer` | `cmp_` | either | Live | `POST /v1/computers` (funded) | `POST /v1/computers/{id}/exec`, `POST /v1/computers/{id}/browser/actions`, `POST /v1/computers/{id}/pause`, `POST /v1/computers/{id}/resume`, `DELETE /v1/computers/{id}` | [Computer](https://vetta.sh/docs/computer/index.md) |
| `browser` | `brw_` | workspace | Live | first `POST /v1/computers/{id}/browser/actions` (opens one on a computer created with `browser` options; funded) | `POST /v1/computers/{id}/browser/actions` (funded), `GET /v1/computers/{id}/browser/live-view`, `POST /v1/computers/{id}/browser/context` (save the sign-ins as a profile), `POST /v1/computers/{id}/browser/login` and `/signup` (funded), `POST /v1/browser/credentials`, `POST /v1/browser/contexts/{name}/grants`, `DELETE /v1/browser/contexts/{name}`, `DELETE /v1/computers/{id}/browser` | [Browser](https://vetta.sh/docs/computer/browser.md) |
| `browser_profile` | `bpr_` | identity | Live (part of Browser) | `POST /v1/computers/{id}/browser/context` | `POST /v1/computers/{id}/browser/login`, `DELETE /v1/browser/contexts/{name}` | [Browser](https://vetta.sh/docs/computer/browser.md) |
| `mobile_device` | `mob_` | workspace | Live | `POST /v1/mobile_devices` (funded) | `POST /v1/mobile_devices/{id}/act` (funded), `POST /v1/mobile_devices/{id}/live_view`, `PATCH /v1/mobile_devices/{id}`, `DELETE /v1/mobile_devices/{id}` | [Mobile sandboxes](https://vetta.sh/docs/api/mobile-devices.md) |
| `character` | `chr_` | workspace | Live | `POST /v1/characters` (funded; needs `consent`) | `PATCH /v1/characters/{id}`, `DELETE /v1/characters/{id}` | [Characters](https://vetta.sh/docs/api/characters.md) |
| `vault` | `vlt_` | workspace | Live (read; create from the console) | `POST /v1/vaults` | `POST /v1/vaults/{id}/credentials`, `DELETE /v1/vaults/{id}/credentials/{cid}`, `DELETE /v1/vaults/{id}` | [Vault](https://vetta.sh/docs/identity/vault.md) |
| `app` | `app_` | workspace | Live | `POST /v1/apps` (funded; $0.01 a day, plus $0.33 a day with a database) | `POST /v1/apps/{id}/deployments` (funded; \$0.10 each), `PATCH /v1/apps/{id}`, `POST /v1/apps/{id}/secrets`, `POST /v1/apps/{id}/domains`, `POST /v1/apps/{id}/db/query`, `POST /v1/apps/{id}/storage/buckets`, `DELETE /v1/apps/{id}` | [Apps](https://vetta.sh/docs/api/apps.md#on-the-developer-platform) |
| `company` | `lgc_` | identity | Early access | `POST /v1/identities/{id}/legal/companies` | `POST /v1/identities/{id}/legal/verifications` (identity verification; funded), `POST /v1/identities/{id}/legal/verifications/{vid}/members/{mid}/resend` (funded), `POST /v1/identities/{id}/legal/companies/{cid}/submit` (asks first: Form a company) | [Legal](https://vetta.sh/docs/identity/legal.md) |
| `social` | `soc_` | identity | Early access unless activated | `POST /v1/identities/{id}/social/activate` | `POST /v1/identities/{id}/social/posts` (asks first: Publish a social post), `DELETE /v1/identities/{id}/social/posts/{post}` | [Social](https://vetta.sh/docs/identity/social.md) |
| `connection` (connected app) | `ca_` | identity | Live | `POST /v1/connections` with `identity` and `app` (funded; \$0.10 once) | `POST /v1/connections/{id}/execute` (funded; per call), `DELETE /v1/connections/{id}` | [Connected apps](https://vetta.sh/docs/identity/connections.md#on-the-developer-platform) |

### Browsers

A browser runs on one of your [computers](https://vetta.sh/docs/computer/index.md), created with `browser` options (for example
`{"browser": {"allow_writes": true}}` so it may click and type). The first `POST /v1/computers/{id}/browser/actions` opens
it (send an `Idempotency-Key`); `GET /v1/computers/{id}/browser` reads the open one. Drive it with the same actions route (go to a page, click, type, act from a plain-language step, read the
page, screenshot). Watch it with the live view. Save its sign-ins as a profile the next browser reuses, and store a
login sealed so the agent signs in without seeing the password. Browser profiles are part of the Browser resource; the
API still lists them as `browser_profile`. Billed $0.10 an hour while open, plus $0.01 per plain-language action.
Developer workspaces open browsers without a proxy.

### Mobile sandboxes

A cloud Android phone or iPhone the workspace owns: `POST /v1/mobile_devices` starts one (Android 13, 14 or 15, or iOS),
`POST /v1/mobile_devices/{id}/act` taps, types, scrolls, opens a URL, installs or opens an app, or takes a screenshot,
and `POST /v1/mobile_devices/{id}/live_view` gives a page to watch it. It stops on its own after its idle timeout.
Billed $0.05 a minute for Android and $0.08 for iPhone, in one charge when it ends; starting one needs a funded
workspace with enough balance for its runway. See [Mobile devices](https://vetta.sh/docs/api/mobile-devices.md).

### Characters

A face your images keep the same. Train one from 1 to 16 photos of one person with `POST /v1/characters` (\$2.50 per
training), wait for `status: "ready"`, then pass its name or `chr_…` id as `character` to the
[Image generation](https://vetta.sh/docs/developers/tools.md#image-generation) tool or `POST /v1/media/images`. Training requires
`consent: { "attested": true }`: the person in the photos is you, or agreed to an AI likeness, and is not a public
figure. Photos of a public figure are refused. See [Characters](https://vetta.sh/docs/api/characters.md).

### Verify the people behind a company (KYC)

Before a company is filed, each owner proves who they are. `POST /v1/identities/{id}/legal/verifications` starts a
verification for the identity's company members and sends each one a secure link; `GET
/v1/identities/{id}/legal/verifications/{vid}` shows each person's status; `POST
/v1/identities/{id}/legal/verifications/{vid}/members/{mid}/resend` sends a person's link again. Starting and resending
need a funded workspace and a key with `billing:write` (the **Full** preset). Each link sent costs $2.00 (a
verification with two owners is $4.00; a resend is \$2.00). The person completes the check on the secure page; your code never sees their documents. See
[Legal](https://vetta.sh/docs/api/legal.md#identity-verification).

### What "not available yet" and "early access" mean

* **Phone numbers** are live and billed in credits: $1.15 per number every 30 days (charged at purchase), $0.0114 per
  received SMS segment, $0.03 per received picture message, $0.0129 per sent SMS segment. Every text sent to a number
  reaches the identity's agent; sending is refused with `compliance_pending` until the carrier approves the messaging
  registration. See [Phone](https://vetta.sh/docs/identity/phone.md).
* **Cards, wallets and companies** need business verification and are early access. Their approval rules already exist,
  so an identity's rules screen is complete on the day they open.
* **Social accounts** work once activated for the identity.
* **Apps** are hosted web apps the workspace owns: a site, or a fullstack app with its own database and storage.
  They are billed per day and per deploy; see [Apps](https://vetta.sh/docs/api/apps.md#on-the-developer-platform).
* **Connected apps** (Gmail, Slack, HubSpot and over a thousand more) are listed by `GET /v1/connections?identity=`,
  not by `GET /v1/resources`: the connection lives with the connections provider and is read live from it. Connecting
  costs $0.10 once and each action $0.0009 to \$0.0104, by app. See
  [Connected apps](https://vetta.sh/docs/identity/connections.md#on-the-developer-platform).

## Writing with a narrow key

A key made with the **Tools + resources** preset holds `resources:write`, which is accepted on the write routes above,
except money and business-verification routes, which still need `billing:write`. See [Keys](https://vetta.sh/docs/developers/keys.md#presets).

## SDK and CLI

```ts theme={"system"}
const inboxes = await client.resources.list({ type: "inbox" });
const one = await client.resources.get("dom_01JD7Q4T9X3P5R7T9V1X3Z5B7D");
const all = await client.resources.forIdentity("idn_01JD7Q2R5T7V9X1Z3B5D7F9H1K");
```

```bash theme={"system"}
naive resources list --type inbox
naive resources show dom_01JD7Q4T9X3P5R7T9V1X3Z5B7D
```


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