v1
latestOpenAPI 3.0.02026-08-04891301.4 MBCreate an installation
Creates a new installation for an agent, connecting it to an external service or enablement channel via the specified kind. The installation begins in a pending state unless an integration is supplied at creation time, in which case it is activated immediately.
Supply shared_integration to bind an existing org- or app-level integration, or supply integration to create a new integration inline and activate the installation in a single request. Supplying both fields returns 422.
Use lookup_key to assign a stable identifier you can reference later in knowledge search source_refs. The key must be unique within the app, org, and sandbox combination. The caller must have app scope for the app that owns the agent.
Path parameters
Agent ID (agt_...) that will own this installation.
Request body
Example request
{
"config": {},
"integration": {
"access_token": "string",
"installation_id": "string",
"metadata": {
"key": "value"
},
"refresh_token": "string",
"workspace_key": "example-slug"
},
"kind": "string",
"lookup_key": "string",
"shared_integration": "string"
}Response
Successful response
Example response
{
"agent": "agi_0aBcDeFgHiJkLmNoPqRsTu",
"config": {},
"created_at": "2024-01-01T00:00:00Z",
"id": "cin_0aBcDeFgHiJkLmNoPqRsTu",
"kind": "enablement/github_app",
"lookup_key": "string",
"shared_integration": "int_0aBcDeFgHiJkLmNoPqRsTu",
"state": "active",
"status_payload": {},
"updated_at": "2024-01-01T00:00:00Z"
}