# Persona

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

> A Persona is a named type of person with a job to do, such as a buyer, a seller, or an admin of an App.

A Persona is a named type of person with a job to do, such as a buyer, a seller, or an admin of an [App](/business/nouns/app).

## Properties
| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `job` | `text` | Yes | What they come to get done. |
| `from` | `string` | No | Lineage: the slot it compiles from, as `Hypothesis#<slot>@v<version>`. |

## Object
```json
{
  "$id": "https://api.sb/tutorloop.com/personas/persona_1",
  "$type": "Persona",
  "job": "Example job",
  "from": "Hypothesis#approach@v1"
}
```

## Relationships
- <a id="rel-belongs-to"></a>A Persona **belongs to** one [ICP](/business/nouns/icp): a Persona is one named role inside an [ICP](/business/nouns/icp), such as its buyer or its admin. `belongsTo`, inverse [`personas`](/business/nouns/icp#rel-personas).
- <a id="rel-holds"></a>A Persona **holds** one [Role](/business/nouns/role): the [Role](/business/nouns/role) whose [Permissions](/business/nouns/permission) a Persona signs in with, so an [App](/business/nouns/app) compiles its [Dashboards](/business/nouns/dashboard) and [Verbs](/business/nouns/verb) from one record. `holds`, inverse [`personas`](/business/nouns/role#rel-personas).
- <a id="rel-targeted-by"></a>A Persona **is targeted by** many [Offers](/business/nouns/offer): an [Offer](/business/nouns/offer) speaks to and is priced for named Personas. `targetedBy`, inverse [`targets`](/business/nouns/offer#rel-targets).

## Verbs
| Verb | Description | Subject | Event | Class |
| --- | --- | --- | --- | --- |
| <a id="create"></a>[Persona.create](/business/nouns/persona/create) | Creates a Persona. Inherited from [Noun](/business/nouns/noun). | None. | `Persona.created` | Two-way: `try`, `send`, `do` |
| <a id="get"></a>[Persona.get](/business/nouns/persona/get) | Returns one Persona by id. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="list"></a>[Persona.list](/business/nouns/persona/list) | Returns Personas, newest first, one page at a time. Inherited from [Noun](/business/nouns/noun). | None. | None. | Read: `try`, `do` |
| <a id="update"></a>[Persona.update](/business/nouns/persona/update) | Changes the given properties of a Persona. Inherited from [Noun](/business/nouns/noun). | None. | `Persona.updated` | Two-way: `try`, `send`, `do` |
| <a id="delete"></a>[Persona.delete](/business/nouns/persona/delete) | Deletes a Persona; its history is kept. Inherited from [Noun](/business/nouns/noun). | None. | `Persona.deleted` | One-way: `send`, `do` |

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

| Operation | `owner` | `admin` | `member` | `viewer` |
| --- | --- | --- | --- | --- |
| `Persona.create` | Yes | Yes | Yes | No |
| `Persona.get` | Yes | Yes | Yes | Yes |
| `Persona.list` | Yes | Yes | Yes | Yes |
| `Persona.update` | Yes | Yes | Yes | No |
| `Persona.delete` | Yes | Yes | Yes | No |

## Call it

**Ask**

```text
Add a persona to QuietCopy.
```

**API**

```bash
curl -X POST https://api.sb/quietcopy.com/personas \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job":"Example job"}'
```

```json
{
  "api": "https://api.sb/quietcopy.com",
  "persona": {
    "$id": "https://api.sb/quietcopy.com/personas/persona_1",
    "$type": "Persona",
    "job": "Example job"
  },
  "action": {
    "$id": "https://api.sb/quietcopy.com/actions/action_1",
    "operation": "Persona.create",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/quietcopy.com/actions/action_1"
  }
}
```

**SDK**

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

const persona = await $.Persona.create({ job: 'Example job' })
```

**CLI**

```bash
npx startup-builder do Persona.create --json '{"job":"Example job"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Persona.create({ job: 'Example job' })"
  }
}
```

## Example
The App of a tutoring marketplace serves three Personas: the parent who books sessions, the tutor who sets hours, and the admin who settles disputes.