# GTA 6 Zoom agent authentication

The public catalog and guides allow anonymous access. Use the sandbox to obtain a short-lived, read-only OAuth credential.

## Discover the server

Open [/agent/auth/](/agent/auth/) and follow `resource_metadata` from the `WWW-Authenticate` header. You can also start at the [protected resource metadata](/.well-known/oauth-protected-resource). Read `authorization_servers` and fetch `/.well-known/oauth-authorization-server` at the issuer for `agent_auth` and `token_endpoint`.

## Choose a method

Read `agent_auth.identity_types_supported`. The sandbox supports anonymous registration for `guides:read`. Account-linked `identity_assertion` (ID-JAG, `urn:ietf:params:oauth:token-type:id-jag`) and `service_auth` are unavailable.

## Register

Send `POST` with `{"type":"anonymous"}` as `application/json` to `identity_endpoint`. Keep the returned `identity_assertion` in memory until exchange. It expires in five minutes.

## Permission

Skip the `claim` step. Anonymous registration grants `guides:read` immediately and does not link accounts.

## Exchange the credential

Send `POST` as `application/x-www-form-urlencoded` to `token_endpoint`. Use the issuer’s `grant_type` and provide the URL-encoded `identity_assertion` as `assertion`. If your client sends a `resource` indicator, set it to the sandbox URL.

## Use the token

Send `GET` to the [/api/v1/agent/sandbox.json?lang=en](/api/v1/agent/sandbox.json?lang=en) with `Authorization: Bearer <access_token>` to retrieve the catalog. Tokens expire after 600 seconds.

## Errors and expiry

For `invalid_grant`, register again and exchange a fresh credential. HTTP 401 includes `WWW-Authenticate` and a JSON error code. For HTTP 503, use the public catalog. Discard the token when done. It expires automatically and grants only `guides:read`. There is no persistent consent or per-token revocation.

Protocol reference · [WorkOS auth.md](https://github.com/workos/auth.md)
