API 参考Connector events

创建 Connector 事件订阅

POST/api/v1/connector-triggers

认证与授权

认证与授权Bearer <token>

工作空间 API 密钥(a13n_...)

传递位置: header

请求头参数

Idempotency-Key*Idempotency-Key
匹配规则^[!-~]+$
长度1 <= length <= 512
X-Workspace-ID?|

登录会话作用的工作空间 ID,登录会话必须提供。API 密钥作用于自身工作空间,无需提供;禁止指定其他工作空间。

请求体

application/json

TypeScript 类型定义

在 TypeScript 中使用 request body 类型。

响应体

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/connector-triggers" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "connection_id": "string",    "event_type": "string",    "name": "string"  }'
{  "connection_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "definition": {    "app": "string",    "config_schema": {      "property1": null,      "property2": null    },    "description": "",    "instructions": "",    "key": "string",    "name": "string",    "payload_schema": {      "property1": null,      "property2": null    },    "requires_provider_setup": false,    "version": "string"  },  "event_type": "string",  "failure": "string",  "id": "string",  "name": "string",  "operation_kind": "string",  "parameters": {    "property1": null,    "property2": null  },  "provider_id": "string",  "remote_id": "string",  "retryable": false,  "state": "enabled",  "target": {    "mode": "store_only"  },  "updated_at": "2019-08-24T14:15:22Z",  "version": 0,  "workspace_id": "string"}