> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/get-started/ids.md).

# Ids and prefixes

Every Norbix id starts with a short prefix that tells you what kind of thing it is.

Norbix gives every project, user, template, trigger and file an id. When you read an id in Cloud, in a log or in an API answer, you should know at once what it points to — and Norbix should refuse an id of the wrong kind before it does anything with it.

## How Norbix models it

An id has two parts joined by an underscore: a **prefix** for the kind of thing, and a 22-character **base62** value (letters and digits).

```
pr_4BFbYsfzveJpmKmpYHgLpd
└┘ └────────────────────┘
prefix   value (base62)
```

* The prefix is lower case and fixed per kind. `pr_` is always a project, `usr_` is always a user.
* Ids are case-sensitive. Copy them exactly.
* An id with the wrong prefix is refused with the error code `CM-ERRORS-GENERIC-003` and the message `Id is in wrong format. Expected prefix: pr_` (the prefix the call expected).
* Norbix creates the ids. You never build one yourself — you take it from Cloud, from an API answer, or from the SDK / CLI.

### The prefixes

| Prefix    | What it is                                                   | Where you meet it                                                                         |
| --------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------- |
| `acc_`    | Account — you, the owner of projects                         | Cloud → Account                                                                           |
| `pr_`     | Project                                                      | Project settings, every SDK / CLI / API call                                              |
| `usr_`    | User (project member or end user)                            | Membership → Users                                                                        |
| `ct_`     | Contact                                                      | Membership contacts, campaigns                                                            |
| `cti_`    | Contact identity (one email, phone or device of a contact)   | Contact details                                                                           |
| `nr_`     | Role                                                         | Membership → Roles                                                                        |
| `pol_`    | Policy (the id you see and send)                             | Membership → Policies                                                                     |
| `np_`     | Policy part of a stored id (`pr_…_np_…`)                     | logs only                                                                                 |
| `sch_`    | Database schema                                              | Database → Collections                                                                    |
| `maggr_`  | Database aggregate                                           | Database → Aggregates                                                                     |
| `txn_`    | Taxonomy                                                     | Database → Taxonomies                                                                     |
| `imp_`    | Database import run (CSV)                                    | Database → Imports                                                                        |
| `nbfl_`   | File                                                         | Files                                                                                     |
| `nbpf_`   | Public file or folder link                                   | Files → public links                                                                      |
| `tmpl_`   | Message template (email, SMS, push)                          | Email / SMS / Push → Templates                                                            |
| `emlsgn_` | Email signature                                              | Email → Signatures                                                                        |
| `emlftr_` | Email footer                                                 | Email → Footers                                                                           |
| `cmp_`    | Campaign                                                     | Email / SMS / Push → Campaigns                                                            |
| `cmpb_`   | Campaign batch                                               | Campaign details                                                                          |
| `ntf_`    | Notification (one sent message)                              | Campaign message log, preview link                                                        |
| `pnd_`    | Push device                                                  | Push → Devices                                                                            |
| `trg_`    | Trigger                                                      | Triggers of every module                                                                  |
| `int_`    | Integration (a connected provider)                           | Integrations of every module                                                              |
| `whd_`    | Webhook destination                                          | Webhooks                                                                                  |
| `tsk_`    | Scheduler task                                               | Tasks (Scheduler)                                                                         |
| `cf_`     | Code function                                                | Code → Functions                                                                          |
| `func_`   | Installed marketplace function                               | Code → Marketplace                                                                        |
| `ml_`     | Marketplace listing                                          | Code → Marketplace                                                                        |
| `fdfn_`   | Marketplace function definition                              | Code → Marketplace                                                                        |
| `osch_`   | Order schema                                                 | Payments                                                                                  |
| `sub_`    | Subscription (your end user's)                               | Payments                                                                                  |
| `disc_`   | Discount                                                     | Payments                                                                                  |
| `cmsub_`  | Your Norbix subscription                                     | Cloud → Account                                                                           |
| `ast_`    | AI assistant                                                 | AI settings                                                                               |
| `aip_`    | AI plan                                                      | AI settings                                                                               |
| `aics_`   | AI chat session                                              | AI chat                                                                                   |
| `ent_`    | AI chat entry                                                | AI chat                                                                                   |
| `aiat_`   | AI chat attachment                                           | AI chat                                                                                   |
| `aimn_`   | AI memory note                                               | AI chat                                                                                   |
| `aisn_`   | AI chat snapshot                                             | AI chat                                                                                   |
| `aibe_`   | AI project brief event                                       | AI chat                                                                                   |
| `wi_`     | AI work item                                                 | AI chat                                                                                   |
| `aisu_`   | AI service user (the identity an AI agent or script acts as) | API answers — see [Keys and environments](/codemash/get-started/keys-and-environments.md) |
| `aisk_`   | One key of an AI service user (the id, not the key itself)   | API answers                                                                               |
| `sup_`    | Support case                                                 | Support                                                                                   |
| `supa_`   | Support case activity                                        | Support                                                                                   |
| `supm_`   | Support case message                                         | Support                                                                                   |

Two ids are used only inside Norbix and never shown to you: `aops_` (operations case) and `stf_` (Norbix staff member).

### Project id in a host name

A host name cannot hold `_` or mixed case, so a project id in a host name uses a second form: `pr-` and 32 lower-case hex characters, for example `pr-4c0e7b1a8f9d4e2aa1b3c5d7e9f0a1b2.api.<your domain>`. It is the same project as its `pr_…` id. See [Base URLs](/codemash/api-reference/guides/base-urls.md).

## Where you use it

* Cloud: the project id is on the project settings screen — see [Keys and environments](/codemash/get-started/keys-and-environments.md).
* SDK: [Install the SDK](/codemash/sdks/install.md) · CLI: [CLI](/codemash/cli/cli.md) · API: [Authentication](/codemash/api-reference/guides/authentication.md).
* Errors: [Errors](/codemash/cloud/concepts/errors.md).
