VirtuousAI
ReferenceActions

Create Action

POST
/api/v1/actions

Header Parameters

authorization?|
X-API-Key?|
vai_token?|

Request Body

application/json

connectionId?|
definition?
kind*string

Types of actions that can be executed.

Value in"dlt_extract" | "web_search" | "fetch_page" | "duckdb_transform" | "insight_delegate" | "silver_query" | "silver_schema_discover"
name*string
Lengthlength <= 255
slug?|
templateId?|

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/actions" \  -H "Content-Type: application/json" \  -d '{    "kind": "dlt_extract",    "name": "string"  }'
{
  "connectionId": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "definition": {},
  "id": "string",
  "kind": "dlt_extract",
  "latestRun": {
    "completedAt": "2019-08-24T14:15:22Z",
    "startedAt": "2019-08-24T14:15:22Z",
    "status": "pending"
  },
  "name": "string",
  "slug": "string",
  "status": "active",
  "templateId": "string",
  "updatedAt": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}