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.

Autenticación

AuthorizationBearer

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

Parámetros de ruta

instance_idstringRequerido

Solicitud

This endpoint expects an object.
modeenumRequerido
Valores permitidos:
kindenumOpcional
Optional connected channel kind to update when sent in the JSON body.
allowobjectOpcional

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

Respuesta

Access policy updated.