List flows.
List flows
GET
/user/v1/flowsquery parameters
Returns
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()
Response bodyJSON
{
"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": {},
"expireTime": "2025-05-15T13:00:00Z",
"createTime": "2025-05-15T13:00:00Z"
}
]
}