API for processes and cases
Each workspace has its own API address:
https://<your-workspace>.saas.riogentix.comAuthentication
Section titled “Authentication”Every request needs a token in the header:
Authorization: Bearer <token>- API token (
rgx_pat_…): create it under Manage → Team and access → API tokens. It always belongs to a person, expires after 90 days at most and stops working as soon as that person is blocked or removed. - Agent token (
rgx_agt_…): found on the agent’s Kanäle (channels) page. It only works for/api/agents/….
Process runs and cases accept API tokens only. If the trial has expired and no plan is booked, the API answers 402.
Download the full description under API tokens, as Swagger 2.0 or OpenAPI 3.0.
Start a process
Section titled “Start a process”POST /api/prozesse/{process_id}/runContent-Type: application/json
{"input": "Text the process should handle"}input: up to 20,000 characters. Longer text is truncated.- The response contains the result (
result). If the result needs approval, thecasefield holds the new case with a link to the case inbox. - The process must be published, otherwise the API answers
409. Each call counts as a run.
Create a case
Section titled “Create a case”POST /api/casesContent-Type: application/json
{ "title": "Invoice 4711 for 7,200 euros", "proposal": "Approve the invoice for payment", "why": "Amount above 5,000 euros", "approver_role": "admin", "due_in_hours": 48, "external_ref": "invoice-4711"}| Field | Required | Meaning |
|---|---|---|
title |
yes | Short title, up to 200 characters |
proposal |
yes | What should happen after approval |
why, reason, goal |
Why a person decides, reasoning, goal | |
confidence |
hoch (high), mittel (medium) or niedrig (low) |
|
evidence |
List of evidence {"name": …, "src": …} |
|
approver_role |
Minimum role: builder (case worker and above), admin or owner |
|
assignee_email |
Only this person decides | |
four_eyes |
Whoever triggered the case may not decide it | |
due_in_hours |
Due date in hours | |
external_ref |
Your own reference. If you send it again, you get the existing case back instead of a new one. |
Response: id, number (for example F-0001), status (open, approved or rejected), decision, url.
Read a case
Section titled “Read a case”GET /api/cases/{case_id}Returns the status and, once decided, the decision with the approved proposal.
Request an agent action
Section titled “Request an agent action”POST /api/agents/{agent_id}/actionsAn agent asks before it acts. Required fields are tool and title. The response says whether the action is allowed (200), whether a person must approve (202, a case is created) or whether it’s denied (4xx, for example 403 not allowed, 402 budget used up, 423 emergency stop or agent inactive). For tools with a connection, include request with method and path, otherwise you get 422. Carry out an allowed or approved action with POST /api/agents/{agent_id}/actions/{action_id}/call. riogentix inserts the credentials for the target system; they are never returned.
