# Projects

An account can hold several **projects** — separate CRMs with their own
people, lists and settings. An API call works in your **Default** project
unless it names another.

## List your projects

```bash
curl -s $CRM/projects -H "Authorization: Bearer $KEY"
```

## Name a project on a call

Send its `id` in the `X-Entayo-Project` header:

```bash
curl -s "$CRM/master/people?limit=10" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Entayo-Project: 7"
```

- Not a number → `400` `bad_project`.
- Not one of your projects → `404` `project_not_found`.
- A Zocton key made for chosen projects: the header is needed on **every** call
  (`400` `project_required` without it), and a project the key was not given is
  `403` `project_not_allowed`. `GET /key-projects` lists the projects the key may use.

## Empty answers?

Without the header every call works in **Default**. If your people are in
another project, Default answers with an empty list — add `X-Entayo-Project`.

In the API reference, fill the `X-Entayo-Project` box on the endpoint (and
Authorize with your key) before **Send**.

A call is **never** quietly sent to Default when the project is wrong, so a
typo cannot write into the wrong CRM.

<section aria-labelledby="faq" class="faq">

## FAQ

<details>
<summary>Why does the API answer with an empty list?</summary>

Without `X-Entayo-Project` every call works in your Default project. If your people are elsewhere, name that project.

</details>
<details>
<summary>How do I find my project ids?</summary>

Call `GET /projects` with your key.

</details>
<details>
<summary>Could a typo write into the wrong CRM?</summary>

No. A call is never quietly sent to Default when the project is wrong; it is refused.

</details>

</section>
