Skip to main content
Choose a credential for the operation you want to call. User token means a bearer for your own account, including supported service accounts. An Authorization: Bearer field alone does not tell you which tokens the endpoint accepts.

Use your own account

Log in with the CLI, then use entire api to make authenticated requests. For an HTTP client, entire auth token prints the bearer for your active login context:
Treat the output as a secret. If ENTIRE_TOKEN is set, entire auth token uses that bearer override after validation and trimming; check that it is the credential you intend to use. The Go SDK also accepts this bearer. Use endpoints documented to accept an own-account bearer. Where available, the Users badge identifies this calling context. Service accounts are included where supported; the badge does not grant permissions or promise access to every resource.

Run as a service account

A service account lets a script call the API without acting as you. To call the API as one, create a secret and exchange it for a service account token. Send the secret to the auth URL for its region as the subject of an RFC 8693 token exchange, with the service account ID as the resource. A us secret goes to https://us.auth.entire.io:
A secret has this layout. The <region> part shows which auth URL to use:
The service account token lives at most 10 minutes, and never past the secret’s own expiry. Read its lifetime from expires_in rather than assuming one, and exchange the secret again when the token is close to expiry or after a 401. Never send the secret itself as a bearer. The Go SDK does this exchange for you. To manage service accounts over the API instead of in entire.com or the CLI, call these endpoints with your own login token:

Read endpoint labels

Audience labels and Accepted credentials details are being added to the service specifications. Use the operation and workflow guidance when those details are absent. When labels are available, read them as follows: An endpoint that accepts both account and plugin credentials shows both badges below its title. Each context may have different permissions and restrictions. The Accepted credentials details list alternatives, not tokens you must send together. These documentation labels are independent of the JWT aud claim and the Experimental marker. Older specifications may not have labels yet: an absent label does not imply access. Public, share-link and internal flows need their own documented rules. An audience badge describes accepted credentials, not authorization success. Read the operation’s permissions, repository or project scope, ownership rules and placement requirements. Plugin permissions such as contents:read, discussions:write and repositories:create are capabilities granted to the installation; they are distinct from OAuth sign-in scopes. Even a GET may require a write capability.

Plugin management and runtime

A user managing a plugin installation still acts with their own account and its management permissions. Installing a plugin does not turn that user’s bearer into a plugin credential. Your service signs a plugin JWT to obtain an installation token, then uses that Entire-issued token for repository work. Do not send the plugin JWT directly to the region API. Building a Plugin covers registration, customer installation and runtime requests. Plugins remain available to selected partners only.

Plugin JWTs

Sign a fresh JWT for each call, or reuse one for a few minutes: Header: "alg": "EdDSA", and "kid" when you registered a JWKS URL.

Access tokens

An installation access token is separate from both an own-account bearer and a plugin OAuth user access token. Mint one with the access-tokens endpoint. What the token can reach depends on what you ask for: Requested repository and project capabilities must be covered by the plugin’s registered permissions and the installation’s accepted permissions. The built-in installations:read permission is available to every installation. A newly registered capability awaiting customer acceptance returns 403 permission_not_accepted; registration alone does not upgrade existing grants. 409 coverage_changed instead describes a coverage or grant race during minting. Hand only a token scoped to one repository to code you trust less than your service, such as a customer’s build job. Cache tokens until shortly before they expire. Entire limits how many tokens one installation can mint, and answers 429 rate_limited with a Retry-After header, in seconds, when you exceed it. Send credentials only to trusted Core origins or a repository api_base_url returned by Entire, with the validation appropriate to your flow. See Regions and routing.

Plugin OAuth user access tokens

Use the user OAuth flow when your service needs to discover a user’s accessible installations and repositories. Its access token has audience entire:plugin-api and is accepted on the two plugin user routes documented there. It cannot read repository contents or mint installation tokens. For runtime work, use your plugin JWT to mint an installation token. Recheck the user’s access before later actions performed for that user. OAuth client assertions, ID tokens, refresh tokens and install receipts each have their own protocol role; none substitutes for an endpoint’s accepted bearer.