Skip to navigation

Connect a hosted agent integration

Saves a token-based integration. For a messaging channel, the Hosted Agents guide lists each channel’s runtimes and the secret and config it takes; a channel paired by QR code is connected from the dashboard instead. openrouter_api_key connects your OpenRouter account and switches the agent to it; the key is checked with OpenRouter first and is never returned.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Path parameters

instance_idstringRequired
Hosted agent id.

Request

This endpoint expects an object.
kindenumRequired
Integration to save.
secretstringOptional
Integration secret, API key, token, or webhook credential.
configobjectOptional
Settings for the integration.

Response

Integration saved.