# create

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

> Creates a Credential.

Create makes a new [Credential](/business/nouns/credential) from the inputs below. It is inherited: every [Noun](/business/nouns/noun) has `get`, `list`, `create`, `update` and `delete`.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `issuer` | `string` | Yes | The regulator or registry that grants it. |
| `jurisdiction` | `string` | Yes | Where it applies. |
| `standing` | `string` | No | Whether it is in good standing, read fresh on every use. |
| `supplier` | [Supplier](/business/nouns/supplier) | No | The Credentials a Supplier holds decide which Reserved Acts it may perform; standing is read fresh on every use. |
| `worker` | [Worker](/business/nouns/worker) | No | A Worker performs a Reserved Act only while it holds the Credential that authorizes it, in good standing. |

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

## Effects
- Emits `Credential.created`.
- Two-way: `try`, `send`, `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. | [Credential.create](/business/nouns/credential/create) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Add a credential to ShiftNote.
```

**API**

```bash
curl -X POST https://api.sb/shiftnote.app/credentials \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"issuer":"Example issuer","jurisdiction":"US-DE"}'
```

```json
{
  "api": "https://api.sb/shiftnote.app",
  "credential": {
    "$id": "https://api.sb/shiftnote.app/credentials/credential_1",
    "$type": "Credential",
    "issuer": "Example issuer",
    "jurisdiction": "US-DE"
  },
  "action": {
    "$id": "https://api.sb/shiftnote.app/actions/action_1",
    "operation": "Credential.create",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/shiftnote.app/actions/action_1"
  }
}
```

**SDK**

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

const credential = await $.Credential.create({ issuer: 'Example issuer', jurisdiction: 'US-DE' })
```

**CLI**

```bash
npx startup-builder do Credential.create --json '{"issuer":"Example issuer","jurisdiction":"US-DE"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Credential.create({ issuer: 'Example issuer', jurisdiction: 'US-DE' })"
  }
}
```