The identifier of the organization.
When not set the user's flows are returned.
Otherwise if the user is an admin of the provided organization then the flows associated with that organization are returned.
GET
/user/v1/flowsLists flows.
curl https://api.userhub.com/user/v1/flows \
-H "UserHub-Api-Key: $USERHUB_USER_KEY" \
-H "Authorization: Bearer $USER_ACCESS_TOKEN"
const res = await userApi.flows.list();
res, err := userApi.Flows().List(
context.Background(),
nil,
)
$res = $userApi->flows->list();
res = user_api.flows.list()
{
"flows": [
{
"id": "flow_3on5rHNG5aMGao",
"state": "START_PENDING",
"type": "JOIN_ORGANIZATION",
"organization": {
"id": "org_28seyVGVL1got6",
"displayName": "Acme Inc",
"email": "[email protected]",
"emailVerified": true,
"imageUrl": "https://example.com/acme.jpg",
"memberCount": 0
},
"user": {
"id": "usr_MKFxzgJaAH8JQ4",
"displayName": "Jane Doe",
"email": "[email protected]",
"emailVerified": true,
"imageUrl": "https://example.com/jane.jpg"
},
"creator": {
"id": "usr_EHTXpuz9rs8TCU",
"displayName": "John Doe",
"email": "[email protected]",
"emailVerified": false,
"imageUrl": "https://example.com/john.jpg"
},
"joinOrganization": {
"role": null
},
"expireTime": "2024-11-15T13:00:00Z",
"createTime": "2024-11-15T13:00:00Z"
}
],
"nextPageToken": ""
}