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

# Test Your Personal Agent Protocol Setup

> Check your configuration with the Auth0 CLI doctor, run the full agent journey with the Poppy Playground, and fix common problems.

> [!WARNING]
>
> **The Support for Personal Agent Protocol (Poppy) feature is in [Beta](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages.md).**
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

Test in two steps: check the configuration with the Auth0 CLI doctor, then run the agent journey against your live website.

## Check the configuration

Run the doctor against your deployed website:

```bash theme={null}
auth0 poppy doctor shop.example
```

It checks your website files, your OpenAPI document, Auth0's metadata, your tenant, API, and web app, and each registered agent. Fix every failure before you test with an agent: agents skip a company whose discovery files don't match without saying why. To learn more, read [Check your setup](https://auth0.com/docs/ai-agents-mcp/personal-agents/set-up-with-auth0-cli.md#check-your-setup).

## Test with the Poppy Playground

The [Poppy Playground](https://poppyplayground.dev/) is a hosted personal agent you can point at your company domain. To test with it:

1. Register the playground's agent in your tenant with `auth0 agents register https://poppyplayground.dev/agent.json`, granting it your API scopes and `poppy:browser-sign-in`.
2. Open the playground and enter your company domain.
3. Run the journey below, and follow the requests it shows.

## Run the agent journey

Run each step in order. The first column is what the agent does, and the last is what to check on your side.

| Step | What the agent does | Check |
| - | - | - |
| 1. Discovery | Reads your `poppy.json`, your protected resource metadata, and Auth0's metadata | The agent accepts your company |
| 2. Signed-out API call | Calls a public operation with only the `Poppy-Session` header | Your API answers. An operation that needs the account answers `401` with the `scope` it needs |
| 3. Signed-out browsing | Joins its browser without a token | Your web app sees an agent guest, and no user |
| 4. Sign-in | Opens your login page, and the user consents | The consent page names the agent and the scopes. The agent receives an access token and a refresh token |
| 5. Signed-in API call | Calls an account operation with the access token and the `Poppy-Session` header | Your API acts for the user. An operation that needs another scope answers `403` with `insufficient_scope` |
| 6. Signed-in browsing | Joins its browser again with the access token | Your web app sees the user, with the agent in `act` and the approved scopes. The guest's state carries over |
| 7. Sign-out | Revokes its refresh token | API calls continue signed out. The website session ends when the agent logs out of your web app, or when it expires within 2 hours |

## Troubleshoot

| Problem | What to check |
| - | - |
| The agent ignores your company | Run the doctor. Most often the issuer in `oauth-protected-resource` lacks its trailing slash, `organization.domain` isn't the serving host, or Auth0's `protected_resources` doesn't list your domain |
| Your preview deployment fails the domain checks | Test on your production domain. `organization.domain` must be the host that serves `poppy.json` |
| The agent has no refresh token | Add the [refresh token Action](https://auth0.com/docs/ai-agents-mcp/personal-agents/set-up-with-auth0-cli.md#add-the-refresh-token-action), and check that your API allows offline access |
| `invalid_client` at the token endpoint | The agent's assertion must be signed with a key Auth0 stored for it, and its `aud` must be your issuer. Run `auth0 agents show` to check the agent's keys |
| The agent can't register, or its keys aren't found | The agent's `jwks_uri` must serve a key with the algorithm its metadata document declares in `token_endpoint_auth_signing_alg` (ES256, PS384, or RS256). After it rotates its keys, select **Refresh Client Metadata** on its application |
| The signed-in join fails | The agent's access token must include `poppy:browser-sign-in`, and the agent must be granted it |
| The login after a join fails | Your web app must log in with the API audience the agent's token is for, and no prompt, such as MFA, can run |
| A second join in the same browser fails | During the beta, a join over an existing session fails, except a guest that signs in. Use a fresh browser profile to sign out or switch accounts |
| `invalid_session` at your API | Check the API's public origin in the SDK. The agent signs the request's URL, and the SDK compares it with that origin, not the `Host` header |

## Learn more

* [Beta Limitations](https://auth0.com/docs/ai-agents-mcp/personal-agents/beta-limitations.md)
* [Sample apps](https://auth0.com/docs/ai-agents-mcp/personal-agents/sample-apps.md)
