Skip to main content
PUT
/
api
/
v1
/
agents
/
{uuid}
/
intents
/
{intentUuid}
/
event
Set the intent's action (event)
curl --request PUT \
  --url https://{subdomain}.mihu.ai/api/v1/agents/{uuid}/intents/{intentUuid}/event \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_type": "app",
  "app_uid": "1f0a…",
  "action_key": "ai_query",
  "config": {
    "table_uuid": "…",
    "max_results": 10,
    "query_description": "Order tracking table. durum = status."
  }
}
'
{
  "success": true,
  "message": "Intent event updated successfully",
  "data": {
    "event_type": "app",
    "status": "draft",
    "app": {
      "uid": "1f0a…",
      "name": "Tables",
      "is_builtin": true
    },
    "action": {
      "key": "ai_query",
      "name": "AI Query"
    },
    "app_connection_uuid": null,
    "config": {
      "table_uuid": "…",
      "max_results": 10,
      "query_description": "…"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mihu.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required
intentUuid
string<uuid>
required

Body

application/json

The body is of type any.

Response

Intent event set (created as draft — call /event/publish to make it live)