Integrations

Verify and configure integration credentials

Changed on

Requires a user principal with project management permission. Slack credentials are configured through OAuth. A stale expected_setup_revision or a credential changed during verification returns 409; reload the integration and retry setup. Setup preserves integration settings; verified provider identity scopes incoming events.

post/orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/setup

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Path parameters

orgID, string required

Organization ID (org_...).

projectID, string required

Project ID (proj_...).

integrationID, string required

Integration ID (itg_...).

Request body

ConfigureIntegrationRequest required

Verifies credentials for this saved integration. GitHub tenant/account are the numeric App ID and Installation ID; the secret is github_app_credentials. Discord tenant is the Application ID; its generic secret contains the bot token, from which the bot User ID is discovered automatically. Reconnect preserves the original verified provider identity. A concurrent setup change rejects this request. Credential payloads are never returned.

expected_setup_revision, integer required
provider_tenant_id, string required
provider_account_ref, string

Required GitHub Installation ID. Optional for Discord; an explicitly supplied bot User ID must match the token.

provider_agent_display_name, string

Optional display label. Discord credential verification defaults to the bot's current name when omitted; cached settings saves preserve the saved label.

credential_secret_id, string required

Secret ID (sec_...).

provider_config, IntegrationProviderConfig

Omit to preserve current provider settings. A supplied object replaces them; include every setting you intend to retain.

Response

Integration setup.

Integration required
id, string required
project_id, string required

Project ID (proj_...).

name, string required

Immutable, project-unique integration name used in config keys and qualified tool names.

integration_kind, 'slack_thread' | 'discord_thread' | 'github_pr' required

Registered integration implementation; independent of the saved integration's name and immutable ID.

state, 'active' | 'disconnected' required
setup_revision, integer required

Credential and transport revision. Launcher edits leave this value unchanged.

last_oauth_flow_id, string
runtime_failure, IntegrationRuntimeFailure

Most recent connection failure for the active integration's current setup and credential version. Returned only by Get integration, not list or mutation responses. Omission does not establish provider connectivity; a runtime lease is not a connection check.

settings, IntegrationSettings required

Integration-owned settings JSON. Validate against capabilities.settings.input_schema from the integration catalog. Public profile references use aprf_ IDs and resolve at runtime. GitHub integrations use GitHubIntegrationSettings; Slack and Discord integrations use ChatIntegrationSettings.

provider_tenant_id, string

Verified provider identity, omitted until first connection. Retained after disconnect.

provider_account_ref, string

Verified provider account, omitted until first connection. Retained after disconnect.

provider_agent_display_name, string required

Provider account display label, at most 512 UTF-8 bytes. Leading and trailing whitespace is trimmed on save. Empty means no label; an omitted or empty value clears the label on account-management updates.

bot_mention, string

GitHub App mention including the leading @, derived from the verified App slug. Omitted when the verified slug is unavailable or the integration is not GitHub. Retained after disconnect.

credential_secret_id, string

Secret ID (sec_...).

provider_config, IntegrationProviderConfig required

Non-secret provider configuration, validated for the selected provider. Slack and GitHub integrations require an empty object. Discord accepts only public_key (optional, a 32-byte hex-encoded Ed25519 verification key for interaction callbacks). Omnara manages one Gateway connection per Discord integration. Credentials and integration behavior are not accepted here.

capabilities, IntegrationCapabilities required
created_at, string date-time required
updated_at, string date-time required

Changes