# Attestation

URL: /business/nouns/attestation · Id: `noun:attestation`

> An Attestation is the signed, frozen act by which a credentialed Worker performs or declines a Reserved Act.

An Attestation is the signed, frozen act by which a credentialed [Worker](/business/nouns/worker) performs or declines a [Reserved Act](/business/nouns/reserved-act).

## Properties
| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `outcome` | `string` | Yes | One of `performed` or `declined`. |
| `signedAt` | `datetime` | Yes | When the Worker signed it. |

## Object
```json
{
  "$id": "https://api.sb/kilnbakery.com/attestations/attestation_1",
  "$type": "Attestation",
  "outcome": "performed",
  "signedAt": "2026-10-22T12:00:00Z"
}
```

## Relationships
- <a id="rel-performs"></a>An Attestation **performs** one [Reserved Act](/business/nouns/reserved-act): the [Reserved Act](/business/nouns/reserved-act) the Attestation records as performed or declined. `performs`, inverse [`attestations`](/business/nouns/reserved-act#rel-attestations).
- <a id="rel-signed-under"></a>An Attestation **is signed under** one [Credential](/business/nouns/credential): the [Credential](/business/nouns/credential) the signing [Worker](/business/nouns/worker) held when it signed. `signedUnder`, inverse [`attestations`](/business/nouns/credential#rel-attestations).

## Verbs
| Verb | Description | Subject | Event | Class |
| --- | --- | --- | --- | --- |
| <a id="create"></a>[Attestation.create](/business/nouns/attestation/create) | Creates an Attestation. Inherited from [Noun](/business/nouns/noun). | None. | `Attestation.created` | Two-way: `try`, `send`, `do` |
| <a id="get"></a>[Attestation.get](/business/nouns/attestation/get) | Returns one Attestation by id. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="list"></a>[Attestation.list](/business/nouns/attestation/list) | Returns Attestations, newest first, one page at a time. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |

An Attestation is kept forever and never edited: it has no `update` or `delete`.

## Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.

| Operation | `owner` | `admin` | `member` | `viewer` |
| --- | --- | --- | --- | --- |
| `Attestation.create` | Yes | Yes | Yes | No |
| `Attestation.get` | Yes | Yes | Yes | Yes |
| `Attestation.list` | Yes | Yes | Yes | Yes |

## Call it

**Ask**

```text
Add an attestation to PetPantry.
```

**API**

```bash
curl -X POST https://api.sb/petpantry.shop/attestations \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"outcome":"performed","signedAt":"2026-10-22T12:00:00Z"}'
```

```json
{
  "api": "https://api.sb/petpantry.shop",
  "attestation": {
    "$id": "https://api.sb/petpantry.shop/attestations/attestation_1",
    "$type": "Attestation",
    "outcome": "performed",
    "signedAt": "2026-10-22T12:00:00Z"
  },
  "action": {
    "$id": "https://api.sb/petpantry.shop/actions/action_1",
    "operation": "Attestation.create",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/petpantry.shop/actions/action_1"
  }
}
```

**SDK**

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

const attestation = await $.Attestation.create({ outcome: 'performed', signedAt: '2026-10-22T12:00:00Z' })
```

**CLI**

```bash
npx startup-builder do Attestation.create --json '{"outcome":"performed","signedAt":"2026-10-22T12:00:00Z"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Attestation.create({ outcome: 'performed', signedAt: '2026-10-22T12:00:00Z' })"
  }
}
```

## Example
A licensed appraiser reviews a valuation report, finds no conflict, and signs. The Attestation freezes the report, the signature, and the appraiser's standing at that moment.