GET
/
api
/
workflows
/
{workflowName}
/
invitations
列出项目邀请
curl --request GET \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/invitations \
  --header 'Authorization: Bearer <token>'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": [
    {
      "id": "<string>",
      "workflowId": "<string>",
      "token": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "expiresAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "acceptedBy": "<string>",
      "acceptedAt": "2023-11-07T05:31:56Z",
      "revokedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。

Path Parameters

workflowName
string
required

Response

项目下全部邀请记录,包含 pending / accepted / revoked / expired。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object[]
required