Token lifetimes
- Access token — valid for 1 hour. Used as the
Authorization: Bearer …header on every MCP request. Your client refreshes it automatically. - Refresh token — valid for 30 days from last use. Single-use. Each refresh issues a new pair and invalidates the previous one.
Revocation
Removing the Botdog connector from your AI client revokes its tokens when the client supports OAuth token revocation (POST https://api.botdog.co/oauth/revoke).
You can also disconnect an app from Botdog under Settings → Integrations → AI apps. Members can disconnect their own connections; team owners and admins can disconnect anyone’s. The app loses access on its next request.
Refresh token replay detection
If a refresh token is presented twice (which only happens when it’s been copied to a second machine), we revoke every token for that app + team and force a full re-authorization. AnMCP_OAUTH_REVOKED activity entry is recorded with reason refresh-replay.