Integration credentials and scopes

An integration call combines credentials that come from different owners. Use this guide to decide which credential a task needs, how to set up a connector that does not use OAuth consent, and which scope a connection belongs to.

Platform login and provider authorization

Signing in to Veryfront and authorizing a provider are separate steps. Neither one performs the other.

StepProvesHow
Platform loginWho you are in Veryfrontveryfront login, a Veryfront API key in VERYFRONT_API_TOKEN, or a Studio session
Provider authorizationWhich provider account Veryfront may useOAuth consent through veryfront integration connect, a connectUrl, or Studio's connect card
Project credentialsWhich provider key a project usesProject environment variables named by the connector catalog

veryfront integration connect requires an existing platform credential, either a login session or VERYFRONT_API_TOKEN, and never starts a platform login. Signing in to Veryfront with Google does not connect Gmail; the Gmail connection is a separate consent with its own scopes, even for the same Google account. A Veryfront API token never reaches the provider, and a provider token never authenticates you to Veryfront.

Credentials versus grants

Four independent controls decide whether a call runs. No integration policy setup is required.

  1. Platform credential: A Veryfront API key or login token. It identifies the caller and is limited by its own scopes.
  2. Project access: The caller's role in the project. Reading status and calling read-only tools needs viewer access. Starting a personal connection needs viewer access and a credential allowed to write integrations; starting a shared project connection needs editor access.
  3. Provider credential: An OAuth connection in inventory, or project credentials in environment variables. It decides which provider account the call uses and what that account can do.
  4. Capability grant: For agents, the tool list in agent source, optionally narrowed by integrations.allow in source configuration. It decides which tools an agent can call. It never selects a credential.

A connection is not a grant: connecting Gmail does not add Gmail tools to an agent, and adding a tool does not create a connection. The selected account and its connection_generation_id describe a connection; they do not authorize a later call on their own.

Set up each credential type

The connector catalog tells you which setup a connector needs. Read credential_requirement from GET /integrations/<NAME>, veryfront integration get "<NAME>" --project "<PROJECT_SLUG>" --json, or client.getIntegration("<NAME>"):

  • mode: "oauth_connection": connect an account through OAuth consent.
  • mode: "project_credentials": set the variables in mandatory_env_vars as project environment variables in the matching Veryfront environment.

veryfront integration connect returns setup_required with the same catalog details for a project-credentials connector instead of opening a browser.

Credential typeCatalog auth.typeSetupHosted executionLocal execution
OAuth consent, managed appoauth2 with authorization_urlConnect an account. No project variables.Yes, per connectionNo
OAuth consent, your own appoauth2 with authorization_urlSet the variables named in byo_oauth_app_override, then connect.Yes, per connectionNo
API keyapi-keySet the key variables, for example STRIPE_SECRET_KEY.Yes, project credentials onlyYes, when the key is sent in a header
Basic authenticationbasicSet the user and secret variables, for example TWILIO_AUTH_TOKEN.Yes, project credentials onlyYes
OAuth client credentialsoauth2 with token_url onlySet the client ID and secret variables, for example PERSONIO_CLIENT_ID.Yes, project credentials onlyYes
Salesforce service accountSee Set up SalesforceSet the three SALESFORCE_SERVICE_ACCOUNT_* variables.YesYes
Outlook app-only accessNone, catalog outlook is delegatedSet the four OUTLOOK_SERVICE_ACCOUNT_* variables.YesYes

Keep provider secrets in your approved secret manager and in project environment variables. Never place them in agent prompts, tool arguments, project files, logs, or URLs.

Hosted execution limits

  • Project credentials belong to the project, not to a user. A call cannot select them with connection_id; the API rejects that combination with validation-failed.
  • A call to a project-credentials connector whose variables are missing returns isError: true with structuredContent.error set to missing_credentials and the missing variable names in missingEnvVars. No provider request is sent.
  • Which connectors each environment publishes, and which have been qualified against a real provider, is listed in Hosted and local limits.

Local execution limits

createLocalIntegrationToolSource runs connectors in your own process with credentials from the host environment or a credentialProvider. The host must set VERYFRONT_HOST_ALLOW_LOCAL_INTEGRATION_CREDENTIALS=1. It supports fixed HTTPS REST endpoints with header API keys, Basic authentication, OAuth client credentials, and the Salesforce service account. It rejects authorization-code OAuth, query-string credentials, GraphQL connectors, and tools outside the exact grant. Use hosted execution for any connector that needs OAuth consent. See Run account-free local integration tools.

For Outlook app-only access, use createOutlookServiceAccountToolSource. See Run Outlook integration tools locally.

Connection scope

ScopeOwnerWho can use itCreate it with
userOne user inside one projectThat user's calls and runs in the projectveryfront integration connect "<NAME>" --project "<PROJECT_SLUG>" (default scope)
projectThe projectShared with the project and its resourcesveryfront integration connect "<NAME>" --project "<PROJECT_SLUG>" --scope project (editor)

The default scope is always user; Veryfront never creates a shared connection unless you ask for project. The REST API still accepts the legacy value endUser as user, and responses always use user. The CLI and the TypeScript client accept only user and project.

Selection and schema reference

SurfaceProjectConnection selectorGeneration preconditionTool input schema
RESTx-veryfront-project-slug header or /projects/<ref> pathconnection_id in the bodyexpected_connection_generation_id in the bodyGET /integration-tools?integration=<NAME>
GraphQLprojectReferenceconnectionIdexpectedConnectionGenerationIdintegrationTools inputSchema
MCP/projects/<PROJECT_SLUG>/mcp_meta.connection_id_meta.expected_connection_generation_idtools/list inputSchema
TypeScriptprojectReference in createIntegrationClientconnectionId optionexpectedConnectionGenerationId optionclient.listTools("<NAME>")
CLI--project--connection--expected-generationveryfront integration tools "<NAME>" --project "<PROJECT_SLUG>"

Tool arguments are provider input and are never read as selectors. REST also accepts x-veryfront-expected-project-id, which rejects a request when the slug resolves to a different project UUID. The TypeScript client sends it for you.

Connection rows from GET /projects/<ref>/connections?integration=<NAME>, client.listConnections, and veryfront integration connections contain:

FieldMeaning
idStable connection identifier to select.
integrationConnector name.
scopeuser or project.
statusconnected, expired, or disconnected. Only connected rows can run.
connection_generation_idChanges on every reconnect. Pin it to refuse a replaced account.

Verify it worked

  1. veryfront integration get "<NAME>" --project "<PROJECT_SLUG>" --json reports the credential_requirement.mode you set up for.
  2. For an OAuth connector, veryfront integration connections "<NAME>" --project "<PROJECT_SLUG>" lists a connected row in the scope you chose.
  3. For a project-credentials connector, a read-only call no longer returns missing_credentials.