Invoke persona via API
Interacting with a persona or agent is often done through the Fabaio UI. Invoke persona via API adds a REST endpoint so you can send a prompt to a persona from curl without needing to use the UI.
The API accepts the persona name, message (prompt), and AI project name, and returns the response from the LLM (including any tool calls the persona runs).
Endpoint overview
| Item | Detail |
|---|---|
| Method | POST |
| Path | /api/portal/rdac/services/chat_request |
| Content-Type | application/json |
| Authentication | Authorization: Bearer <token> |
Request body
| Field | Description |
|---|---|
persona |
Name of the persona to invoke (for example Aiops). |
message |
User prompt sent to the persona (for example Get current time). |
ai_project_name |
AI project the persona belongs to (for example Legacy). |
Example: curl
Replace the host, bearer token, and field values with your environment.