Skip to content

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

Addresses
WhatAddress
Issuerhttps://iac.manage.iacompa.com/api/agent-auth
Server metadatahttps://iac.manage.iacompa.com/api/agent-auth/.well-known/oauth-authorization-server
Authorizationhttps://iac.manage.iacompa.com/api/agent-auth/auth
Tokenhttps://iac.manage.iacompa.com/api/agent-auth/token
Revocationhttps://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.

Scopes offered on the live site
ScopeWhat it allowsTools
workspace:readSee which account the app is connected to and your role there.workspace_get, help_guides_list, help_guide_get
crm:readRead contacts, companies, opportunities, notes and tasks.CRM searches and gets, tasks_list, email_template_preview
crm:writeAdd and change contacts, companies, opportunities, notes, tasks and tags.CRM writes and stage proposals
automations:draftInspect unpublished automation drafts and their steps, propose drafts and ask to send a saved email.Automation draft tools, email templates, email_send_request
setup:readSee 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:draftSave voice agent drafts for a person to review and publish.voice_agent_draft_save
setup:writeCreate 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.

  1. The app opens IA Compa in the browser. Sign in if asked.
  2. Check Connect <app> and where your browser goes back to afterwards. Only continue if you just clicked Connect in that app yourself.
  3. Choose the Account to connect: one account where you are an owner or admin.
  4. Review What <app> may do. Clear any permission you don't want; select the ones that change records only if you want them.
  5. 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.

Lifetimes
WhatLifetime
Authorization code60 seconds
Access token10 minutes
Connect link (consent page)10 minutes, one use
Refresh token7 days unused, never past the connection's end
ConnectionAt 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.