Set who can message a hosted agent

mode is open (anyone) or restricted (only allowed messaging IDs). With restricted and no IDs, the first person to message becomes the owner.

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

Request

This endpoint expects an object.
modeenumRequired
Allowed values:
kindenumOptional
Optional connected channel kind to update when sent in the JSON body.
allowobjectOptional

Per-channel allowlist of messaging IDs, e.g. { “telegram”: [“123456”] }.

Response

Access policy updated.