name: ivena-agent-api
description: Operate Ivena Meet AI-native backend routes (/agent/v1/context, /agent/v1/events, /agent/v1/commands) for external agents such as Claude/Claw. Use when building or running agent workflows for room monitoring, session recovery, message delivery, or invite automation without changing existing room/auth/chat endpoints.
Ivena Agent API
Overview
Use this skill to run agent workflows against the control plane's agent/v1 integration surface.
Keep existing product logic untouched and drive automation through additive routes only.
Workflow
- Read
references/endpoints.mdto confirm auth mode and request/response contract. - Call
GET /agent/v1/contextfirst and cachenext_event_cursor. - Call
GET /agent/v1/eventswithafter_seqto get incremental updates. - Build decision from context+events before issuing any command.
- Call
POST /agent/v1/commandswithmode=simulatefirst for risky branches (dry_runremains fallback compatibility). - For retries or network uncertainty, include
idempotency_key. - Write operational logs with
room_id,command,status, andidempotency_key.
Guardrails
- Do not call legacy routes directly when equivalent command exists in
/agent/v1/commands. - Use app-session bearer token for
refresh_sessionandsend_message. - Use control bearer token (host session/admin) for
issue_invite. - Reject plans that require elevated commands not exposed by
agent/v1. - Treat
status=duplicateas successful dedupe, not failure.
Output Contract
When reporting execution, include:
observed_state: key context fields used for decision.actions_taken: commands executed and whethersimulateorexecute.result: command status and returned payload summary.next_step: polling cursor or human escalation suggestion.