Skip to navigation

Message a hosted agent

Sends messages to a running hosted agent and returns its reply in result.

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.
messageslist of objectsRequired

Messages to send, as role and content objects.

Response

The agent's reply.
resultobject

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
502
Bad Gateway Error