The projects that use this workflow (team or official): the slot it fills, its triggers and the revision each project pins, ordered by project name. Only projects the caller can read workflows of are listed (PERMISSIONS §5 project visibility, cut to a token's project scope); `meta.totalCount` counts the same set. The route takes the point of the workflow it names (`workflow:read` team-wide, as `GET {id}` does).
GET
/v1/workflow-definitions/{id}/usagescurl -X GET 'https://api.embodiflow.io/v1/workflow-definitions/{id}/usages' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- idstring必填
查询参数
- pageSizenumber
Page size (default 25, maximum 100). Over-maximum is refused.
- pageTokenstring
Opaque page token from the previous response.
响应
Success
- dataarray<WorkflowUsageView>必填
- projectobject必填
- purposestring必填可选值exportprocessingcurate
- triggersobject | null必填
- revisionobject必填
- updatedAtstring必填
- nextPageTokenstring
Opaque AIP-158 page token. Omitted when the collection is exhausted.
- metaobject必填
- pageSizenumber必填
- totalCountnumber
- truncatedone of
- requestIdstring
响应示例
{
"data": [
{
"project": {
"id": "string",
"slug": "string",
"name": "string",
"dataKind": "string"
},
"purpose": "export",
"triggers": {},
"revision": {
"id": "string",
"revision": 0,
"publishedAt": "string"
},
"updatedAt": "string"
}
],
"nextPageToken": "string",
"meta": {
"pageSize": 0,
"totalCount": 0,
"truncated": false,
"requestId": "string"
}
}服务器https://api.embodiflow.io/v1