# auth.md

Gaius-Lex supports agent registration discovery for agents acting on behalf of legal professionals and organizations.

## Audience

Agents may use this file to discover how to register a user for Gaius-Lex and how to obtain credentials for API-backed legal research, document analysis, OCR, and file workflows.

## Discovery

- OAuth protected resource metadata: https://gaius-lex.pl/.well-known/oauth-protected-resource
- OAuth authorization server metadata: https://gaius-lex.pl/.well-known/oauth-authorization-server
- API catalog: https://gaius-lex.pl/.well-known/api-catalog
- Agent skills index: https://gaius-lex.pl/.well-known/agent-skills/index.json
- API documentation: https://docs.gaius-lex.pl/

## Registration

Use https://app.gaius-lex.pl/register to create a user account. B2B organizations can use https://app.gaius-lex.pl/b2b/register.

Agents should complete registration through the user-claimed flow unless they have a pre-arranged organization API credential.

## Supported Identity Types

- anonymous: agents can start registration without a prior identity assertion and ask the user to claim the account.
- service_auth: agents can direct the user through the Gaius-Lex hosted sign-up or login flow.

## Credential Types

- session_cookie for browser-based account access.
- organization_api_key for API integrations issued after user or organization approval.

## Credential Use

Use issued API credentials with the HTTP Authorization header when calling documented Gaius-Lex API endpoints.

## Claim and Revocation

- Claim URI: https://app.gaius-lex.pl/register
- Login URI: https://app.gaius-lex.pl/login
- Revocation URI: https://app.gaius-lex.pl/profile

Users can revoke or rotate credentials from their Gaius-Lex account settings or by contacting Gaius-Lex support.
