API

SparkAgentIntegration

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/agents/{id}/spark/integrations create Organization accounts available to this V2 agent
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/integrations load Organization accounts available to this V2 agent

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

spark_agent_integration, err := client.SparkAgentIntegration(nil).Load(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(spark_agent_integration)
created, err := client.SparkAgentIntegration(nil).Create(map[string]any{"agent_id": "example", "organization_id": "example", "connection_id": "example", "enabled": true, "generation": 1}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local spark_agent_integration, err = client:SparkAgentIntegration():load({ agent_id = "example", organization_id = "example" })
local created, err = client:SparkAgentIntegration():create({ agent_id = "example", organization_id = "example", connection_id = "example", enabled = true, generation = 1 })

PHP

Construct client as shown in the PHP setup, then call the operations:

$spark_agent_integration = $client->SparkAgentIntegration()->load(["agent_id" => "example", "organization_id" => "example"]);
$created = $client->SparkAgentIntegration()->create(["agent_id" => "example", "organization_id" => "example", "connection_id" => "example", "enabled" => true, "generation" => 1]);

Python

Construct client as shown in the Python setup, then call the operations:

spark_agent_integration = client.SparkAgentIntegration().load({"agent_id": "example", "organization_id": "example"})
created = client.SparkAgentIntegration().create({ "agent_id": "example", "organization_id": "example", "connection_id": "example", "enabled": True, "generation": 1 })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

spark_agent_integration = client.SparkAgentIntegration.load({ "agent_id" => "example", "organization_id" => "example" })
created = client.SparkAgentIntegration.create({ "agent_id" => "example", "organization_id" => "example", "connection_id" => "example", "enabled" => true, "generation" => 1 })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const spark_agent_integration = await client.SparkAgentIntegration().load({ agent_id: "example", organization_id: "example" })
const created = await client.SparkAgentIntegration().create({ agent_id: "example", organization_id: "example", connection_id: "example", enabled: true, generation: 1 })

Fields

Field Type Required Description
account_counts object Yes Accounts the viewer can see per toolkit, across all account pages.
accounts_path string Yes Web path of the organization's Integrations page, where people reconnect and remove the accounts this agent lists.
added_toolkits array Yes Apps with a connected or connecting account the viewer can see.
can_manage boolean Yes Can Manage
can_manage_organization boolean Yes Can Manage Organization
catalog array Yes Catalog
connect_as one,string,null Yes The account Connect creates and switches on for this agent: the owner's own (personal) or, for an admin connecting someone else's agent, the team's (organization).
connect_as_by_toolkit object Yes Apps whose Connect differs from connect_as because their sign-in only makes team accounts.
connected_counts object Yes Signed-in accounts per toolkit, across all account pages.
connection_id string Yes Connection Id
connections array Yes Connections
email object Yes A native agent's own email address.
enabled boolean Yes Enabled
enabled_toolkits array Yes Apps with a signed-in account this agent uses now, across all account pages, sorted.
generation integer Yes Generation
pagination object Yes Pagination
pending_counts object Yes Accounts per toolkit whose sign-in was started but not finished, across all account pages.
personal_creation_key_supported boolean No The personal account creation endpoint honors a creation key.
private_agent boolean Yes Only the agent's owner can chat with it.
shared_agent_personal_accounts_enabled boolean Yes Whether the organization lets a shared agent use one person's account for everyone who chats with it.
slack object Yes Slack
webhook_connections array Yes Webhook Connections
webhooks_available boolean Yes Webhooks Available

create

POST /api/v1/organizations/{organization_id}/agents/{id}/spark/integrations

Operation ID: post_api_v1_organizations_organization_id_agents_id_spark_integrations.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
q query string No
toolkit query string No
cursor query string No
limit query integer No

Request body

application/json

Property Type Required Description
connection_id string Yes
enabled boolean Yes
generation integer Yes

Responses

200: Organization accounts available to this V2 agent

application/json

Property Type Required Description
account_counts object Yes Accounts the viewer can see per toolkit, across all account pages.
accounts_path string Yes Web path of the organization's Integrations page, where people reconnect and remove the accounts this agent lists. Add integrations_q to show one app.
added_toolkits array of string Yes Apps with a connected or connecting account the viewer can see. The Apps panel lists them among the agent's accounts rather than as apps to add.
can_manage boolean Yes
can_manage_organization boolean Yes
catalog array of object Yes
catalog[].actions array of object Yes
catalog[].actions[].allowed_arguments array of string Yes
catalog[].actions[].input_schema object Yes
catalog[].actions[].name string Yes
catalog[].actions[].resource_argument string Yes
catalog[].actions[].slug string Yes
catalog[].actions[].write boolean Yes
catalog[].agent_tools boolean No
catalog[].authentication enum: composio_connect_link, spacesheep_oauth, unipile_hosted_auth Yes
catalog[].can_create_account boolean No Whether another account can be created directly from this provider. Custom MCP endpoints use the MCP setup form.
catalog[].catalog_section enum: generative_media, ai_machine_learning, productivity_project_management, communication, crm_sales_support, marketing_social, ... No Server-owned grouping in the agent integration catalog.
catalog[].category string No Short product label, such as CRM or Email.
catalog[].certification enum: preview, unavailable Yes
catalog[].consent object Yes
catalog[].consent.branding_summary string Yes
catalog[].consent.checked_at string Yes
catalog[].consent.configured_scopes array of string Yes
catalog[].consent.effective_grants enum: unknown Yes
catalog[].consent.limitations string Yes
catalog[].consent.method enum: OAUTH2, DCR_OAUTH Yes
catalog[].consent.method_label string Yes
catalog[].consent.permission_model enum: oauth_scopes, shared_pages_and_capabilities, workspace_and_plan Yes
catalog[].consent.provenance string Yes
catalog[].consent.provider_app enum: composio_managed, dynamic_registration Yes
catalog[].consent.provider_consent_branding enum: unverified Yes
catalog[].consent.sources array of string Yes
catalog[].consent.summary string Yes
catalog[].consent.upstream_only_methods array of string Yes
catalog[].consent.verification_summary string Yes
catalog[].description string No One-line catalog description of the app.
catalog[].disabled_reason string,null No
catalog[].limits object Yes
catalog[].limits.resources_per_action integer Yes
catalog[].limits.response_bytes integer Yes
catalog[].name string Yes
catalog[].policy_digest string Yes
catalog[].schema_version enum: 2 Yes
catalog[].toolkit string Yes
catalog[].triggers array of object Yes
catalog[].triggers[].defaults object Yes
catalog[].triggers[].delivery string Yes
catalog[].triggers[].latency string Yes
catalog[].triggers[].name string Yes
catalog[].triggers[].schema object Yes
catalog[].triggers[].slug string Yes
catalog[].triggers[].status string Yes
catalog[].triggers[].toolkit string Yes
catalog[].triggers[].version string Yes
catalog[].version string Yes
connect_as enum: personal, organization, null Yes The account Connect creates and switches on for this agent: the owner's own (personal) or, for an admin connecting someone else's agent, the team's (organization). Null when the viewer cannot connect apps here.
connect_as_by_toolkit object Yes Apps whose Connect differs from connect_as because their sign-in only makes team accounts.
connected_counts object Yes Signed-in accounts per toolkit, across all account pages. Only these make an app read as connected.
connections array of object Yes
connections[].access enum: automatic, on, off, paused, not_allowed Yes How this agent reaches the account: automatically while private to its holder, chosen on or off, paused by an admin, or not allowed because it is not a team account and the organization only allows team accounts on shared agents.
connections[].automatic boolean Yes True when the agent uses this account because it is private to its owner and the owner holds the account. It cannot be turned off while the agent stays private.
connections[].can_cancel_sign_in boolean No The viewer can cancel the unfinished authorization attempt.
connections[].can_delete boolean Yes
connections[].can_disconnect boolean Yes
connections[].can_enable boolean Yes
connections[].can_manage_sharing boolean Yes
connections[].can_reconnect boolean Yes
connections[].can_sync boolean Yes The viewer's own sign-in is waiting; their app may ask Rails whether the browser finished.
connections[].connected_by string,null Yes Name of the person whose sign-in this account is.
connections[].connected_by_you boolean Yes True when the viewer is the person whose sign-in this account is.
connections[].creation_key_digest string,null No SHA-256 of the unfinished setup key for its original creator.
connections[].enabled boolean Yes
connections[].generation integer Yes
connections[].id string Yes
connections[].keepable_on_share boolean Yes True when the agent uses this account only because it is private, and its owner may keep it for the team when sharing the agent.
connections[].name string Yes
connections[].ownership enum: personal, organization Yes Personal accounts are listed only to the agent's owner.
connections[].provider_disabled_reason string,null Yes
connections[].provider_identity object Yes
connections[].provider_identity.account_label string Yes
connections[].provider_identity.checked_at string (date-time) Yes
connections[].provider_identity.status enum: verified, unavailable Yes
connections[].provider_identity.workspace_label string Yes
connections[].reference string Yes
connections[].sharing_status enum: team, private, personal, paused No Agent account audience, including legacy personal and paused access.
connections[].slack_as_you boolean Yes True for the owner's Slack account the agent posts as. It is chosen and removed in the agent's Slack settings, not switched here.
connections[].status enum: pending, active, expired, revoked, error Yes
connections[].team_sharing_enabled boolean Yes
connections[].team_sharing_version integer Yes
connections[].toolkit string Yes
email object Yes A native agent's own email address. address is null while it is still being created; can_read_inbox is true for its owner and people granted manager.
email.address string,null Yes
email.can_read_inbox boolean Yes
enabled_toolkits array of string Yes Apps with a signed-in account this agent uses now, across all account pages, sorted.
pagination object Yes
pagination.limit integer Yes
pagination.next string,null Yes
pending_counts object Yes Accounts per toolkit whose sign-in was started but not finished, across all account pages.
personal_creation_key_supported boolean No The personal account creation endpoint honors a creation key.
private_agent boolean Yes Only the agent's owner can chat with it.
shared_agent_personal_accounts_enabled boolean Yes Whether the organization lets a shared agent use one person's account for everyone who chats with it. When false, only team accounts work once the agent is shared.
slack object Yes
slack.account_connected boolean Yes
slack.app object Yes
slack.app.bot_name string,null Yes The bot's name in Slack, as setup created it, once the app is configured
slack.app.can_configure boolean Yes
slack.app.can_disconnect boolean Yes
slack.app.character_url string,null Yes
slack.app.configured boolean Yes
slack.app.connected boolean Yes
slack.app.event_url string,null Yes
slack.app.prepared boolean Yes
slack.app.settings_url string,null Yes
slack.app.setup_url string,null Yes
slack.app.version integer Yes
slack.as_you object Yes The agent posting to Slack as its owner, with the owner's own Slack account through Composio.
slack.as_you.account object,null Yes
slack.as_you.account.connection_id string Yes
slack.as_you.account.name string Yes
slack.as_you.account.status string Yes
slack.as_you.account.workspace string,null Yes
slack.as_you.available boolean Yes
slack.as_you.can_manage boolean Yes Only the owner may connect, configure or disconnect it.
slack.as_you.confirm_before_sending boolean Yes
slack.as_you.mode enum: bot, you, null Yes Which way the agent posts once the owner connected: as the owner (you) or with its own bot (bot). While it is you, the bot's Slack tools are not used. Null before the owner connects.
slack.as_you.owner_name string,null Yes
slack.as_you.posting boolean Yes Whether the agent posts as the owner now: mode is you, the organization allows the account here, and it is still saved. The bot cannot send while this is true, even when the account needs reconnecting.
slack.as_you.show_sent_using boolean Yes
slack.available boolean Yes
slack.can_change_reply_places boolean Yes
slack.can_edit_handle boolean Yes
slack.can_manage boolean Yes
slack.can_publish boolean Yes
slack.channel_setup_available boolean Yes
slack.channels array of object Yes
slack.channels[].allow_slack_connect boolean Yes
slack.channels[].enabled boolean Yes
slack.channels[].id string Yes
slack.channels[].name string,null Yes The channel's name in Slack, without #; null when Slack cannot say.
slack.connect_url string Yes
slack.disabled_reason string,null Yes
slack.display_name string Yes
slack.handle string Yes
slack.icon_emoji string Yes
slack.mention_id string,null Yes
slack.reply_place_choices array of enum: direct_messages, public_channels, private_channels, all_channels Yes The reply places this agent's bot can offer; direct messages and all channels need its own bot.
slack.reply_places array of enum: direct_messages, public_channels, private_channels, all_channels Yes Where the bot replies; any mix may be on. all_channels replies in every channel of an allowed kind the bot is in, without publishing each one.
slack.workspace_name string,null Yes
webhook_connections array of object Yes
webhook_connections[].actions array of enum: pause, resume, rotate, remove Yes
webhook_connections[].event_types array of string Yes
webhook_connections[].generation integer Yes
webhook_connections[].last_received_at string (date-time) Yes
webhook_connections[].locator string Yes
webhook_connections[].max_events_per_day integer Yes
webhook_connections[].name string Yes
webhook_connections[].path string Yes
webhook_connections[].paused_at string (date-time) Yes
webhook_connections[].purpose string Yes
webhook_connections[].receiver_path string Yes Generic JSON receiver URL path containing a secret token; available only to current bot managers.
webhook_connections[].revoked_at string (date-time) Yes
webhooks_available boolean Yes
401: Unauthorized
403: Not allowed
404: Not found or disabled
409: Configuration changed; reload before retrying
422: Invalid connection selection
502: Bad gateway

load

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/integrations

Operation ID: spark_integrations_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
catalog_q query string No Search addable providers across the agent's authorized catalog, independently of account filters and pages. An empty string lists all addable providers.
q query string No
toolkit query string No
cursor query string No
limit query integer No

Responses

200: Organization accounts available to this V2 agent

application/json

Property Type Required Description
account_counts object Yes Accounts the viewer can see per toolkit, across all account pages.
accounts_path string Yes Web path of the organization's Integrations page, where people reconnect and remove the accounts this agent lists. Add integrations_q to show one app.
added_toolkits array of string Yes Apps with a connected or connecting account the viewer can see. The Apps panel lists them among the agent's accounts rather than as apps to add.
can_manage boolean Yes
can_manage_organization boolean Yes
catalog array of object Yes
catalog[].actions array of object Yes
catalog[].actions[].allowed_arguments array of string Yes
catalog[].actions[].input_schema object Yes
catalog[].actions[].name string Yes
catalog[].actions[].resource_argument string Yes
catalog[].actions[].slug string Yes
catalog[].actions[].write boolean Yes
catalog[].agent_tools boolean No
catalog[].authentication enum: composio_connect_link, spacesheep_oauth, unipile_hosted_auth Yes
catalog[].can_create_account boolean No Whether another account can be created directly from this provider. Custom MCP endpoints use the MCP setup form.
catalog[].catalog_section enum: generative_media, ai_machine_learning, productivity_project_management, communication, crm_sales_support, marketing_social, ... No Server-owned grouping in the agent integration catalog.
catalog[].category string No Short product label, such as CRM or Email.
catalog[].certification enum: preview, unavailable Yes
catalog[].consent object Yes
catalog[].consent.branding_summary string Yes
catalog[].consent.checked_at string Yes
catalog[].consent.configured_scopes array of string Yes
catalog[].consent.effective_grants enum: unknown Yes
catalog[].consent.limitations string Yes
catalog[].consent.method enum: OAUTH2, DCR_OAUTH Yes
catalog[].consent.method_label string Yes
catalog[].consent.permission_model enum: oauth_scopes, shared_pages_and_capabilities, workspace_and_plan Yes
catalog[].consent.provenance string Yes
catalog[].consent.provider_app enum: composio_managed, dynamic_registration Yes
catalog[].consent.provider_consent_branding enum: unverified Yes
catalog[].consent.sources array of string Yes
catalog[].consent.summary string Yes
catalog[].consent.upstream_only_methods array of string Yes
catalog[].consent.verification_summary string Yes
catalog[].description string No One-line catalog description of the app.
catalog[].disabled_reason string,null No
catalog[].limits object Yes
catalog[].limits.resources_per_action integer Yes
catalog[].limits.response_bytes integer Yes
catalog[].name string Yes
catalog[].policy_digest string Yes
catalog[].schema_version enum: 2 Yes
catalog[].toolkit string Yes
catalog[].triggers array of object Yes
catalog[].triggers[].defaults object Yes
catalog[].triggers[].delivery string Yes
catalog[].triggers[].latency string Yes
catalog[].triggers[].name string Yes
catalog[].triggers[].schema object Yes
catalog[].triggers[].slug string Yes
catalog[].triggers[].status string Yes
catalog[].triggers[].toolkit string Yes
catalog[].triggers[].version string Yes
catalog[].version string Yes
connect_as enum: personal, organization, null Yes The account Connect creates and switches on for this agent: the owner's own (personal) or, for an admin connecting someone else's agent, the team's (organization). Null when the viewer cannot connect apps here.
connect_as_by_toolkit object Yes Apps whose Connect differs from connect_as because their sign-in only makes team accounts.
connected_counts object Yes Signed-in accounts per toolkit, across all account pages. Only these make an app read as connected.
connections array of object Yes
connections[].access enum: automatic, on, off, paused, not_allowed Yes How this agent reaches the account: automatically while private to its holder, chosen on or off, paused by an admin, or not allowed because it is not a team account and the organization only allows team accounts on shared agents.
connections[].automatic boolean Yes True when the agent uses this account because it is private to its owner and the owner holds the account. It cannot be turned off while the agent stays private.
connections[].can_cancel_sign_in boolean No The viewer can cancel the unfinished authorization attempt.
connections[].can_delete boolean Yes
connections[].can_disconnect boolean Yes
connections[].can_enable boolean Yes
connections[].can_manage_sharing boolean Yes
connections[].can_reconnect boolean Yes
connections[].can_sync boolean Yes The viewer's own sign-in is waiting; their app may ask Rails whether the browser finished.
connections[].connected_by string,null Yes Name of the person whose sign-in this account is.
connections[].connected_by_you boolean Yes True when the viewer is the person whose sign-in this account is.
connections[].creation_key_digest string,null No SHA-256 of the unfinished setup key for its original creator.
connections[].enabled boolean Yes
connections[].generation integer Yes
connections[].id string Yes
connections[].keepable_on_share boolean Yes True when the agent uses this account only because it is private, and its owner may keep it for the team when sharing the agent.
connections[].name string Yes
connections[].ownership enum: personal, organization Yes Personal accounts are listed only to the agent's owner.
connections[].provider_disabled_reason string,null Yes
connections[].provider_identity object Yes
connections[].provider_identity.account_label string Yes
connections[].provider_identity.checked_at string (date-time) Yes
connections[].provider_identity.status enum: verified, unavailable Yes
connections[].provider_identity.workspace_label string Yes
connections[].reference string Yes
connections[].sharing_status enum: team, private, personal, paused No Agent account audience, including legacy personal and paused access.
connections[].slack_as_you boolean Yes True for the owner's Slack account the agent posts as. It is chosen and removed in the agent's Slack settings, not switched here.
connections[].status enum: pending, active, expired, revoked, error Yes
connections[].team_sharing_enabled boolean Yes
connections[].team_sharing_version integer Yes
connections[].toolkit string Yes
email object Yes A native agent's own email address. address is null while it is still being created; can_read_inbox is true for its owner and people granted manager.
email.address string,null Yes
email.can_read_inbox boolean Yes
enabled_toolkits array of string Yes Apps with a signed-in account this agent uses now, across all account pages, sorted.
pagination object Yes
pagination.limit integer Yes
pagination.next string,null Yes
pending_counts object Yes Accounts per toolkit whose sign-in was started but not finished, across all account pages.
personal_creation_key_supported boolean No The personal account creation endpoint honors a creation key.
private_agent boolean Yes Only the agent's owner can chat with it.
shared_agent_personal_accounts_enabled boolean Yes Whether the organization lets a shared agent use one person's account for everyone who chats with it. When false, only team accounts work once the agent is shared.
slack object Yes
slack.account_connected boolean Yes
slack.app object Yes
slack.app.bot_name string,null Yes The bot's name in Slack, as setup created it, once the app is configured
slack.app.can_configure boolean Yes
slack.app.can_disconnect boolean Yes
slack.app.character_url string,null Yes
slack.app.configured boolean Yes
slack.app.connected boolean Yes
slack.app.event_url string,null Yes
slack.app.prepared boolean Yes
slack.app.settings_url string,null Yes
slack.app.setup_url string,null Yes
slack.app.version integer Yes
slack.as_you object Yes The agent posting to Slack as its owner, with the owner's own Slack account through Composio.
slack.as_you.account object,null Yes
slack.as_you.account.connection_id string Yes
slack.as_you.account.name string Yes
slack.as_you.account.status string Yes
slack.as_you.account.workspace string,null Yes
slack.as_you.available boolean Yes
slack.as_you.can_manage boolean Yes Only the owner may connect, configure or disconnect it.
slack.as_you.confirm_before_sending boolean Yes
slack.as_you.mode enum: bot, you, null Yes Which way the agent posts once the owner connected: as the owner (you) or with its own bot (bot). While it is you, the bot's Slack tools are not used. Null before the owner connects.
slack.as_you.owner_name string,null Yes
slack.as_you.posting boolean Yes Whether the agent posts as the owner now: mode is you, the organization allows the account here, and it is still saved. The bot cannot send while this is true, even when the account needs reconnecting.
slack.as_you.show_sent_using boolean Yes
slack.available boolean Yes
slack.can_change_reply_places boolean Yes
slack.can_edit_handle boolean Yes
slack.can_manage boolean Yes
slack.can_publish boolean Yes
slack.channel_setup_available boolean Yes
slack.channels array of object Yes
slack.channels[].allow_slack_connect boolean Yes
slack.channels[].enabled boolean Yes
slack.channels[].id string Yes
slack.channels[].name string,null Yes The channel's name in Slack, without #; null when Slack cannot say.
slack.connect_url string Yes
slack.disabled_reason string,null Yes
slack.display_name string Yes
slack.handle string Yes
slack.icon_emoji string Yes
slack.mention_id string,null Yes
slack.reply_place_choices array of enum: direct_messages, public_channels, private_channels, all_channels Yes The reply places this agent's bot can offer; direct messages and all channels need its own bot.
slack.reply_places array of enum: direct_messages, public_channels, private_channels, all_channels Yes Where the bot replies; any mix may be on. all_channels replies in every channel of an allowed kind the bot is in, without publishing each one.
slack.workspace_name string,null Yes
webhook_connections array of object Yes
webhook_connections[].actions array of enum: pause, resume, rotate, remove Yes
webhook_connections[].event_types array of string Yes
webhook_connections[].generation integer Yes
webhook_connections[].last_received_at string (date-time) Yes
webhook_connections[].locator string Yes
webhook_connections[].max_events_per_day integer Yes
webhook_connections[].name string Yes
webhook_connections[].path string Yes
webhook_connections[].paused_at string (date-time) Yes
webhook_connections[].purpose string Yes
webhook_connections[].receiver_path string Yes Generic JSON receiver URL path containing a secret token; available only to current bot managers.
webhook_connections[].revoked_at string (date-time) Yes
webhooks_available boolean Yes
401: Unauthorized
403: Not allowed
404: Not found or disabled
409: Configuration changed; reload before retrying
422: Invalid connection selection
502: Bad gateway