WhagonsDocs
AI and agents

User claim flow

What users and agents should expect during delegated agent approval.

The claim ceremony keeps a human in control of the first connection between an external agent and a Whagons tenant.

Agent-side sequence

  1. Ask the user which Whagons email address should approve access.
  2. Register a service_auth identity with only the necessary scopes.
  3. Show the six-digit code exactly as returned.
  4. Open or present verification_uri_complete.
  5. Explain that the agent will act with the user's current Whagons permissions.
  6. Poll no faster than the returned interval.
  7. Stop polling on expiry, rejection, or another terminal error.
  8. Store the resulting credential in a secret store, never in conversation history or logs.

User-side sequence

  1. Open the verification link supplied by the agent.
  2. Sign in to Whagons with the same email address the agent used as login_hint.
  3. Compare the six-digit code on the page with the code shown by the agent.
  4. Select the tenant if the account belongs to more than one.
  5. Review the agent's purpose and requested access.
  6. Choose Approve agent only when the agent and request are expected.

After approval, the page confirms that the agent may request an access token for the selected tenant.

What approval means

Approval does not create a new Whagons user and does not grant tenant-wide administrator access. The agent is linked to the approving user and selected tenant. Every API operation remains subject to:

  • the issued agent scopes;
  • the user's current role permissions;
  • team membership;
  • workspace and task visibility;
  • field, status-transition, approval, and lifecycle policy.

Common errors

Message or codeCauseRecovery
authorization_pendingThe user has not completed approval.Wait for the advertised interval and poll again.
Claim expiredThe ten-minute claim window ended.Start a new identity registration.
Invalid codeThe entered code does not match the claim.Compare the six digits and retry before expiry.
This claim was started for …The signed-in email differs from login_hint.Sign in with the intended account or restart with the correct email.
Choose a tenant before claiming this agentThe user belongs to multiple matching tenants.Select one tenant on the approval screen.
No Whagons tenant user matched this claimNo active user matches the email and tenant.Verify membership or ask a tenant admin.
invalid_grantA token, assertion, claim, or registration is invalid or no longer active.Stop retrying the same value and restart discovery or registration.

Safety guidance for users

  • Do not approve an agent you did not initiate.
  • Verify the code through the original agent conversation.
  • Choose the narrowest tenant and scope set.
  • Revoke agent access when the tool is no longer used.
  • Report unexpected agent activity to a tenant administrator.

For request examples after approval, see Agent API access.

On this page