Integrations

Create an integration and optional launcher

Changed on
post/orgs/{orgID}/projects/{projectID}/integrations

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_...).

Request body

CreateIntegrationRequest required

Creates a disconnected integration. Name and integration_kind are immutable. Configure credentials through this integration's setup endpoints.

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.

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.

Response

Create an integration and optional launcher.

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