# Path authentication

## Discover

Public product guidance is readable without authentication. The [Path SDK API contract](https://path.dev/openapi.json) declares an HTTP Bearer security scheme for the Backend API at `https://api.path.dev`. This is an App integration contract, not an anonymous product API.

## Pick a method

A Path user signs in through the [platform web app](https://console.path.dev/login). Customer Apps use Path SDK sign-in and session handling. Server-side SDK calls use the App's configured credentials, such as `PATH_CLIENT_SECRET` or `PATH_APP_TOKEN`; read the [SDK authentication documentation](https://app.unpkg.com/@pathsystems/path@1/files/README.md) for the installed SDK version.

## Register and configure

[Create a Path account](https://console.path.dev/signup), join or create an Organization, and create an App with the appropriate access. Path-hosted Apps receive server configuration from Path. For self-hosted Apps, follow the [SDK self-hosting guide](https://app.unpkg.com/@pathsystems/path@1/files/docs/self-hosting.md). This page does not provide self-service generic agent API-key issuance or an agent registration endpoint.

## Use credentials

Prefer `createPathClient()` from `@pathsystems/path/client` on the server. If calling a documented HTTP operation directly, use `Authorization: Bearer <authorized App token>`. Never embed `PATH_APP_TOKEN` or `PATH_CLIENT_SECRET` in browser code, public prompts, repositories, or URLs.

Organization scope and operation permissions are enforced by the Backend API. The OpenAPI `x-required-permission` values describe existing Path permissions, not OAuth scopes. A token cannot select another Organization by supplying its ID in a path.

## Errors

A 401 means credentials are missing, invalid, or expired. A 403 means the caller lacks access or the operation's required permission. Confirm the App, Organization, and current access before retrying; never bypass a denial or repeat a write blindly.

## Revocation

Remove access through the owning Organization or App and replace compromised server credentials. For assistance with credential rotation or account access, contact [Path support](https://path.dev/support). Do not assume that signing out of a browser revokes an independent App credential.

## Agent protocol availability

This guide describes current Path authentication. It does not advertise `agent_auth`, an `identity_endpoint`, `identity_assertion`, `service_auth`, or an ID-JAG exchange. No OAuth protected-resource metadata or `WWW-Authenticate` discovery hint is claimed by this documentation. Those protocols require a supported authorization flow before they can be published.
