> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entire.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Regions and routing

> Find the Core or repository API host for your own account or a plugin installation.

Entire has two kinds of services. A **Core** is the control plane for accounts, organizations, projects, repository discovery and plugin installations. A **region API** holds repository data. Choose the host for the operation, then use a credential listed in its **Accepted credentials** details.

| Host in these examples | Purpose |
| :- | :- |
| `https://us.console.entire.io` | US Core API requests with your own account, such as listing repositories. |
| `https://us.auth.entire.io` | US Core origin used by the plugin authentication and installation guides. |
| `https://aws-us-east-2.api.entire.io` | Example region API host; discover the actual host from the repository's placement. |

## Cores

Entire's Cores are `https://us.auth.entire.io`, `https://eu.auth.entire.io`, `https://au.auth.entire.io`, `https://in.auth.entire.io`, `https://uk.auth.entire.io`, `https://sg.auth.entire.io` and `https://br.auth.entire.io`.

Any Core serves any installation. Call the Core nearest your service.

Entire adds Cores as it opens jurisdictions, so don't hardcode the list. Every Core is named `https://{jurisdiction}.auth.entire.io`, and nothing else lives under `auth.entire.io`. Accept install receipts from any issuer of that form: `https`, no port, and a single label before `.auth.entire.io`. The Go SDK does this from v0.3.0. It also accepts the same form under `auth.entire.com`, ready for Entire's move from `entire.io` to `entire.com`.

To discover a Core's configured federation peer authentication hosts, read its `/.well-known/entire-federation`. This is configuration, not a live health inventory; the list excludes the responding Core and may be empty:

```http theme={null}
GET https://us.auth.entire.io/.well-known/entire-federation

{"peer_auth_hosts": ["https://eu.auth.entire.io", "https://au.auth.entire.io", ...]}
```

The US console and authentication hosts above route to the same US Core service. Their roles in authentication still matter: the US plugin JWT audience is `https://us.auth.entire.io/api/authz/sts`, even when another hostname reaches that service. Do not substitute a console or region hostname into a JWT audience or OAuth issuer.

For [plugin OAuth](https://docs.entire.com/guides/api/plugins/user-oauth-flow.md), begin at `auth.entire.io` and redeem the code at the issuer returned in `iss`. Verify [install receipts](https://docs.entire.com/guides/api/plugins/install-flow.md) against a trusted Core issuer using the rule above.

A hostname alone does not tell you which credential an endpoint accepts. Core has operations for User tokens, plugin JWTs, Plugin installation tokens and Plugin OAuth user tokens; each has its own accepted credentials and permissions. See [Authentication](https://docs.entire.com/guides/api/authentication.md).

## Repository calls go to the region

Discover the repository's processing placement before making repository API calls. The account directory and plugin installation list have different response shapes.

### With a User token

Call the Core [repository directory](https://docs.entire.com/api-reference/control-plane/repos/list-the-callers-readable-repositories-placement-index.md) with your own-account bearer:

```bash theme={null}
curl -H "Authorization: Bearer $(entire auth token)" \
  "https://us.console.entire.io/api/v1/repos"
```

The response uses `repos`, with `placements` and `primaries` on each repository. Relevant fields from an example response are shown here; other fields are omitted:

```json theme={null}
{
  "repos": [{
    "full_name": "acme/api",
    "placements": [{
      "id": "01M3QSHT...",
      "clusterSlug": "aws-us-east-2",
      "apiBaseUrl": "https://aws-us-east-2.api.entire.io",
      "status": "ready"
    }],
    "primaries": {"processing": "01M3QSHT..."}
  }],
  "nextPageToken": ""
}
```

Match `repos[].primaries.processing` to an entry's `placements[].id`, then use that placement's `apiBaseUrl`. The primary can have `status: "ready"`; selecting a placement by `status: "processing"` is not equivalent. If there is no processing primary, no matching placement or no `apiBaseUrl`, do not guess another host; refresh the directory before retrying.

For an endpoint that accepts a placement ID, such as `GET /api/v1/repos/{repo_id}`, use that matching placement's `id` with your User token at its region API host. Follow each operation's repository-ID requirements.

When `nextPageToken` is nonempty, pass it as the next request's `pageToken`; `pageSize` controls the requested page size. The account directory mixes casings: `full_name` is snake\_case, while `apiBaseUrl`, `clusterSlug` and `nextPageToken` are camelCase. Copy field names exactly, and don't confuse them with the plugin list's snake\_case fields below.

### With a plugin installation

Each repository in the [installation repository list](https://docs.entire.com/guides/api/plugins/act-for-an-installation.md#list-repositories) has an `id` and `placements`. Select the placement with `role: "processing_primary"` and use its `api_base_url`. This response uses `repositories` and `next_cursor`, not the account directory's `repos` and `nextPageToken`.

Send repository calls under `/api/v1` with a Plugin installation token that has the required permissions:

```http theme={null}
GET {api_base_url}/api/v1/repos/{repo_id}
Authorization: Bearer {Plugin installation token}
```

Here `{repo_id}` is the repository's public `id` from the installation list, such as `repo_01M3...`. You do not need to replace it with a local ID returned by this request. Use the ID form required by each endpoint; the [access guide](https://docs.entire.com/guides/api/plugins/act-for-an-installation.md) shows repository contents calls using this public ID.

[Creating a repository](https://docs.entire.com/guides/api/plugins/act-for-an-installation.md#create-a-repository) is a Core operation. Do not infer credential acceptance from the host or assume all other Core operations reject installation tokens; read the operation's accepted credentials.

Names and hosts can change, so refresh the appropriate repository list rather than caching placements for long.

**Cloning:** for a plugin, clone through `git-remote-entire` with the Plugin installation token in `ENTIRE_TOKEN`. See [Clone a repository](https://docs.entire.com/guides/api/plugins/act-for-an-installation.md#clone-a-repository).

## Allowed hosts

Use the Core origins documented for your flow and the region API URL returned by Entire's repository discovery. Keep OAuth issuer and plugin JWT audience validation separate from API routing. Before sending a credential, check the endpoint's [accepted credentials and permissions](https://docs.entire.com/guides/api/authentication.md#read-endpoint-labels); a shared hostname or an `entire.io` suffix does not make credentials interchangeable.
