Levain LabsLevain Labs
API ReferenceAgents

Attach Agent Integration

Attach a workspace integration to an agent.

Idempotent: re-attaching an already-linked integration is a no-op and returns the existing link. The integration must belong to the same workspace as the agent.

POST
/api/v1/agents/{agent_id}/integrations/{integration_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

agent_id*Agent Id
integration_id*Integration Id
Formatuuid

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X POST "https://api.levainlabs.com/api/v1/agents/string/integrations/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "integration_id": "string",
  "provider": "string",
  "kind": "string",
  "display_name": "string",
  "status": "string",
  "scopes": [
    "string"
  ],
  "tool_allowlist": [
    "string"
  ],
  "attached_at": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}