Agents

View as Markdown

List Workflows

GET/api/v1/agents/workflows

List all workflows for the current brand.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/agents/workflows" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Create Workflow

POST/api/v1/agents/workflows

Create a new workflow.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/agents/workflows" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Get Workflow

GET/api/v1/agents/workflows/{workflow_id}

Get a single workflow with full canvas state.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/agents/workflows/{workflow_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Update Workflow

PATCH/api/v1/agents/workflows/{workflow_id}

Update a workflow (name, description, canvas state, status, etc.).

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X PATCH "https://app.opvs.ai/api/v1/agents/workflows/{workflow_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Delete Workflow

DELETE/api/v1/agents/workflows/{workflow_id}

Delete a workflow.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X DELETE "https://app.opvs.ai/api/v1/agents/workflows/{workflow_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Deploy Workflow

POST/api/v1/agents/workflows/{workflow_id}/deploy

Deploy a workflow — activates it and (in the future) syncs to the Management API to create/update the OpenClaw agent.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/agents/workflows/{workflow_id}/deploy" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

List Personas

GET/api/v1/agents/personas

List all personas for the current brand.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/agents/personas" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Create Persona

POST/api/v1/agents/personas

Create a new persona.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/agents/personas" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Get Persona

GET/api/v1/agents/personas/{persona_id}

Get a single persona with full details, visuals, and voice.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/agents/personas/{persona_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Update Persona

PATCH/api/v1/agents/personas/{persona_id}

Auto-save update for a persona. JSONB fields are merged (not replaced) — only provided keys are updated. If an own persona is deployed, syncs workspace files to the gateway as a background task. A live hire's vendor files are never regenerated by customer edits.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X PATCH "https://app.opvs.ai/api/v1/agents/personas/{persona_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Delete Persona

DELETE/api/v1/agents/personas/{persona_id}

Delete a persona, unless a live hire still depends on it.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X DELETE "https://app.opvs.ai/api/v1/agents/personas/{persona_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get Persona Skills

GET/api/v1/agents/personas/{persona_id}/skills

Return the configured skills of one own persona in this brand.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/agents/personas/{persona_id}/skills" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Retire Personas Bulk

POST/api/v1/agents/personas/retire

Clear agents out of all five stores at once — reversibly, or for good.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/agents/personas/retire" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Deploy Persona

POST/api/v1/agents/personas/{persona_id}/deploy

Deploy a persona to the OpenClaw gateway.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/agents/personas/{persona_id}/deploy" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Undeploy Persona

POST/api/v1/agents/personas/{persona_id}/undeploy

Remove a persona's agent from the OpenClaw gateway.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/agents/personas/{persona_id}/undeploy" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Get Agent Canvas

GET/api/v1/agents/canvas

Return saved organigram canvas state for the current brand.

Request
curl "https://app.opvs.ai/api/v1/agents/canvas" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Save Agent Canvas

PUT/api/v1/agents/canvas

Upsert organigram canvas state (node positions + edges + viewport).

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X PUT "https://app.opvs.ai/api/v1/agents/canvas" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Did this answer your question?