Authorization and scopes
How AI apps sign in: OAuth 2.1 with PKCE, registered clients, the consent page, scopes, token lifetimes and revocation.
- Who can do this
- An Account Owner or Account Admin of the account approves each connection, with AI agents turned on for them and a fresh two-step code.
On this page
IA Compa runs its own OAuth 2.1 authorization server for AI apps. There is no client secret and no password in the app: the app opens IA Compa's page, the person signs in and approves, and the app receives short-lived tokens for one account.
Authorization server
| What | Address |
|---|---|
| Issuer | https://iac.manage.iacompa.com/api/agent-auth |
| Server metadata | https://iac.manage.iacompa.com/api/agent-auth/.well-known/oauth-authorization-server |
| Authorization | https://iac.manage.iacompa.com/api/agent-auth/auth |
| Token | https://iac.manage.iacompa.com/api/agent-auth/token |
| Revocation | https://iac.manage.iacompa.com/api/agent-auth/token/revocation |
| Keys (JWKS) | https://iac.manage.iacompa.com/api/agent-auth/jwks |
| Protected resource metadata (RFC 9728) | https://iac.manage.iacompa.com/.well-known/oauth-protected-resource/api/mcp |
- Authorization code flow with PKCE (
S256). Public clients: no client secret (token_endpoint_auth_method: none). - The resource is the MCP endpoint (RFC 8707 resource indicator).
- No open dynamic client registration. Only the apps IA Compa lists can connect. Client ID Metadata Documents (CIMD) are supported for listed apps that publish one.
- Loopback redirects (
http://127.0.0.1/callback, any port) for apps on your computer; exact redirects for cloud apps.
Scopes
The 401 challenge and the metadata list the full set, so every app asks for the same thing the first time; the person trims it on the consent page. Read scopes start selected; anything that changes data must be selected on purpose.
| Scope | What it allows | Tools |
|---|---|---|
workspace:read | See which account the app is connected to and your role there. | workspace_get, help_guides_list, help_guide_get |
crm:read | Read contacts, companies, opportunities, notes and tasks. | CRM searches and gets, tasks_list, email_template_preview |
crm:write | Add and change contacts, companies, opportunities, notes, tasks and tags. | CRM writes and stage proposals |
automations:draft | Inspect unpublished automation drafts and their steps, propose drafts and ask to send a saved email. | Automation draft tools, email templates, email_send_request |
setup:read | See the account's AI model options, voice agent setup, booking types and phone numbers to choose from. | ai_models_get, voice_agent_get, booking_types_list, phone_numbers_search, texting_setup_get, review_settings_get |
setup:draft | Save voice agent drafts for a person to review and publish. | voice_agent_draft_save |
setup:write | Create booking types and ask to buy a phone number. Nothing goes live and nothing is bought without a person. | booking_type_create, phone_number_purchase_request |
Preview scopes exist for tools still in testing and aren't offered on the live site: integrations:setup, payments:read, payments:draft, payments:revise, contracts:draft, projects:draft. offline_access is never required: refresh tokens follow the connection's own limits.
The consent page
- The app opens IA Compa in the browser. Sign in if asked.
- Check Connect <app> and where your browser goes back to afterwards. Only continue if you just clicked Connect in that app yourself.
- Choose the Account to connect: one account where you are an owner or admin.
- Review What <app> may do. Clear any permission you don't want; select the ones that change records only if you want them.
- Enter a new six-digit code from your authenticator app and choose Connect, or Don't connect (the app gets nothing).
Connections and token lifetimes
One connection is one person, one account and one app. Connecting the same app to the same account again replaces the earlier connection.
| What | Lifetime |
|---|---|
| Authorization code | 60 seconds |
| Access token | 10 minutes |
| Connect link (consent page) | 10 minutes, one use |
| Refresh token | 7 days unused, never past the connection's end |
| Connection | At most 30 days from consent |
A connection also ends when the person signs out of IA Compa in the browser they approved it in, when its two-step method is removed, or when someone turns it off.
Revocation and disconnecting
- In IA Compa: Settings › Integrations › Connected AI tools lists each app, who connected it, what it may do, when it ends, when it was last used and today's reads and changes. Turn off ends it at once: the next call is refused and renewal fails. The person who connected it or the account owner can turn it off.
- Apps can revoke their own tokens at the revocation endpoint.
- Removing the connector inside the app stops it from trying, but turning it off in IA Compa is what ends access.
Related articles
- Hosted MCP serverIA Compa's MCP endpoint: transport, protocol versions, discovery, requests and what an AI app can see.
- Connect apps on your computerConnect Claude Code or Codex to one IA Compa account with a single command and a browser approval.
- Connect cloud AI appsRolling outClaude on claude.ai (with Claude Cowork and Claude Duet), ChatGPT and its dots and Grok Bot (rolling out): client IDs and steps. Meta Muse comes once Meta lists the connector.
- Security and limits for agentsLeast privilege, per-person switches, approvals, logging, rate limits, per-plan connection limits and what agents can never do.