# whoistyping.wtf agent authentication Only the user-claimed service_auth profile is supported. Anonymous and provider ID-JAGs are not supported. Discover https://whoistyping.wtf/.well-known/oauth-protected-resource and https://whoistyping.wtf/.well-known/oauth-authorization-server. POST JSON to https://whoistyping.wtf/agent/identity: {"type":"service_auth","login_hint":"human@example.com","agent_name":"Setup assistant","scopes":["api.read","api.write"]} Show claim.verification_uri and claim.user_code to the human. Do not enter the code or approve on their behalf. They sign up/sign in, confirm their email, enter the code, explicitly select an organization and approve or deny the listed scopes. No credential exists before approval. Claim expires in 600 seconds. Poll no faster than every 5 seconds. POST form-encoded to https://whoistyping.wtf/oauth2/token: grant_type=urn:workos:agent-auth:grant-type:claim&claim_token=&resource=https://whoistyping.wtf/api/v1 authorization_pending: keep waiting. slow_down: increase polling interval by 5 seconds (maximum 60). expired_token or access_denied: stop; obtain fresh explicit human approval with a new registration. The approved poll returns Bearer access_token, expires_in, scope, refresh_token, refresh_token_expires_in, identity_assertion and assertion_expires. Keep them private. The claim yields tokens once; later polls return invalid_grant. Access tokens expire in 60 minutes. To get a new one, POST form grant_type=refresh_token&refresh_token=&resource=https://whoistyping.wtf/api/v1 to https://whoistyping.wtf/oauth2/token. Every refresh returns a NEW refresh_token and invalidates the one you sent: store the new one before using the access token. Presenting a used refresh token again is treated as theft and revokes the whole delegation; a human must approve again. A refresh token expires after 30 days without a refresh. No refresh token is valid more than 90 days after approval; then a human must approve again. Optional scope on any token request may only narrow the granted permissions; a refresh token keeps its granted scopes when an access token is narrowed. resource picks the access token's audience: https://whoistyping.wtf/api/v1 (default) or https://whoistyping.wtf/mcp for the MCP server (https://whoistyping.wtf/mcp.md). A token works only at its audience. The identity_assertion is a 24-hour alternative: POST form grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=&resource=https://whoistyping.wtf/api/v1 for an access token without a refresh token. Call https://whoistyping.wtf/api/v1 with Authorization: Bearer . Scopes: api.read (organization/projects/documents/logs/usage), api.write (rename/configure/create projects). secrets.read permits reading project secrets. It is ALSO required, together with api.write, to set endpoint_url, webhook_format or webhook_auth (including at creation), or test a webhook: receivers may receive project credentials. secrets.rotate permits rotating project secrets and setting or removing the write-only Bubble API token. api.destroy permits archiving projects/deleting documents and is ALSO required, together with api.write, to enable auto_delete_on_quota (including at creation). Tokens cannot manage delegations, other tokens, account security, billing or onboarding. Other organizations remain inaccessible. POST form token= to https://whoistyping.wtf/oauth2/revoke. An access token revokes only itself. A refresh token revokes the whole delegation: every access token, refresh token and assertion exchange. A human owner/admin can also revoke the delegation from Settings → Agent access. Revocation, membership removal/demotion, unconfirmation/deactivation and organization blocking deny delegated access, refresh and assertion exchange immediately. MCP clients with OAuth support can connect to https://whoistyping.wtf/mcp directly (authorization code + PKCE); see https://whoistyping.wtf/mcp.md. Protocol: workos/auth.md service_auth profile, revision b53c9edfbfeea679b617727ebca9ba436bade794; no claim of broad agent-client compatibility.