# get

URL: /business/nouns/credit-grant/get · Id: `verb:CreditGrant.get` · Call: `await $.CreditGrant.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 Credit Grant by id.

Get returns one [Credit Grant](/business/nouns/credit-grant) 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 Credit Grant. |
| `at` | `string` | No | A time or Version name: the record as it stood then. Unset: as it stands now. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `creditGrant` | [Credit Grant](/business/nouns/credit-grant) | Yes | The Credit Grant. |

## Effects
- Reads only: it emits no Event and changes nothing.
- Read: `try`, `do`.

## 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. | [CreditGrant.get](/business/nouns/credit-grant/get) |

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

## Example

**Ask**

```text
Show me the latest credit grant.
```

**API**

```bash
curl https://api.sb/patentpad.com/credit-grants/credit_grant_1 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/patentpad.com",
  "$type": "CreditGrant",
  "$id": "https://api.sb/patentpad.com/credit-grants/credit_grant_1",
  "creditGrant": {
    "$id": "https://api.sb/patentpad.com/credit-grants/credit_grant_1",
    "$type": "CreditGrant",
    "amount": {
      "amount": 499,
      "currency": "USD"
    },
    "category": "paid"
  },
  "links": {
    "self": "https://api.sb/patentpad.com/credit-grants/credit_grant_1",
    "up": "https://api.sb/patentpad.com/credit-grants"
  },
  "actions": {
    "void": "https://api.sb/patentpad.com/credit-grants/credit_grant_1/void"
  }
}
```

**SDK**

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

const creditGrant = await $.CreditGrant.get({ id: 'credit_grant_1' })
```

**CLI**

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

**MCP**

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