# get

URL: /business/nouns/resource/get · Id: `verb:Resource.get` · Call: `await $.Resource.get({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Returns one Resource by id.

Get returns one [Resource](/business/nouns/resource) by id. It is inherited: every [Noun](/business/nouns/noun) has `get`, `list`, `create`, `update` and `delete`.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Resource. |
| `at` | `string` | No | A time or Version name: the record as it stood then. Unset: as it stands now. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `resource` | [Resource](/business/nouns/resource) | Yes | The Resource. |

## Effects
| Fact | Value |
| --- | --- |
| Action class | None: a read |
| Modes | `try`, `do` (default): a read runs at once |
| Idempotent | Yes: a read changes nothing |
| Undo | Nothing to undo: a read changes nothing |
| Emits | No Event: a read changes nothing |

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

## When it waits
Never: a read runs at once.

## Example

**Ask**

```text
Show me the latest resource.
```

**API**

```bash
curl https://api.sb/ratebook.dev/resources/resource_hIVWDprAyZ \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/ratebook.dev",
  "$type": "Resource",
  "$id": "https://api.sb/ratebook.dev/resources/resource_hIVWDprAyZ",
  "resource": {
    "$id": "https://api.sb/ratebook.dev/resources/resource_hIVWDprAyZ",
    "$type": "Resource",
    "source": "source_DIdhfB6mF5",
    "mode": "upstream",
    "noun": "noun_iXkcYZtTJh"
  },
  "links": {
    "self": "https://api.sb/ratebook.dev/resources/resource_hIVWDprAyZ",
    "up": "https://api.sb/ratebook.dev/resources"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const resource = await $.Resource.get({ id: 'resource_hIVWDprAyZ' })
```

**CLI**

```bash
npx startup-builder do Resource.get --json '{"id":"resource_hIVWDprAyZ"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Resource.get({ id: 'resource_hIVWDprAyZ' })"
  }
}
```