GET/admin/v1/flows/{flowId}

Get a flow

Retrieves specified flow.

path parameters

  • flowId

    string

    Required

    The identifier of the flow.

Returns

  • id

    string

    The system-assigned identifier of the flow.

  • state

    enum

    The current state of the flow.

    Possible values:
    START_PENDINGSTARTEDCOMPLETEDCANCELEDEXPIRED
  • stateReason

    string

    The code that best describes the reason for the state.

  • type

    enum

    The flow type.

    Possible values:
    JOIN_ORGANIZATIONSIGNUP
  • organization

    Organization

    The target organization for the flow.

  • user

    User

    The target user for the flow.

  • creator

    User

    The user who created the flow.

    This will not be set if the invitation was created by an admin.

  • startTime

    date-time

    The start time of the flow.

  • expireTime

    date-time

    The time the flow will expire.

  • ttl

    string

    The expire duration of the flow.

  • secret

    string

    The flow secret.

    This is only populated on create.

  • createTime

    date-time

    The creation time of the flow.

  • updateTime

    date-time

    The last update time of the flow.

  • joinOrganization

    JoinOrganizationFlow

    The join organization flow type specific data.

  • signup

    SignupFlow

    The signup flow type specific data

curl https://api.userhub.com/admin/v1/flows/flow_3on5rHNG5aMGao \
  -H "Authorization: Bearer $ADMIN_API_KEY"
Response bodyJSON
{
  "id": "flow_3on5rHNG5aMGao",
  "state": "START_PENDING",
  "type": "JOIN_ORGANIZATION",
  "organization": {
    "id": "org_28seyVGVL1got6",
    "state": "ACTIVE",
    "displayName": "Acme Inc",
    "email": "[email protected]",
    "emailVerified": true,
    "imageUrl": "https://example.com/acme.jpg",
    "address": null,
    "accountConnections": [],
    "subscription": null,
    "signupTime": "2024-06-15T13:00:00Z",
    "memberCount": 0,
    "createTime": "2024-06-15T13:00:00Z",
    "updateTime": "2024-06-15T13:00:00Z"
  },
  "user": {
    "id": "usr_MKFxzgJaAH8JQ4",
    "state": "ACTIVE",
    "displayName": "Jane Doe",
    "email": "[email protected]",
    "emailVerified": true,
    "phoneNumber": "+12125550123",
    "phoneNumberVerified": false,
    "imageUrl": "https://example.com/jane.jpg",
    "currencyCode": "USD",
    "languageCode": "en",
    "regionCode": "US",
    "timeZone": "America/New_York",
    "address": {
      "lines": [
        "42 West St"
      ],
      "city": "Brooklyn",
      "state": "New York",
      "postalCode": "11222",
      "country": "US"
    },
    "accountConnections": [],
    "subscription": null,
    "memberships": [],
    "signupTime": "2024-06-15T13:00:00Z",
    "createTime": "2024-06-15T13:00:00Z",
    "updateTime": "2024-06-15T13:00:00Z"
  },
  "creator": {
    "id": "usr_EHTXpuz9rs8TCU",
    "state": "ACTIVE",
    "displayName": "John Doe",
    "email": "[email protected]",
    "emailVerified": false,
    "phoneNumber": "+12345678901",
    "phoneNumberVerified": false,
    "imageUrl": "https://example.com/john.jpg",
    "address": null,
    "accountConnections": [],
    "subscription": null,
    "memberships": [],
    "signupTime": "2024-06-15T13:00:00Z",
    "createTime": "2024-06-15T13:00:00Z",
    "updateTime": "2024-06-15T13:00:00Z"
  },
  "startTime": null,
  "expireTime": "2024-06-15T13:00:00Z",
  "createTime": "2024-06-15T13:00:00Z",
  "updateTime": "2024-06-15T13:00:00Z",
  "joinOrganization": {
    "email": "[email protected]",
    "role": null
  }
}
PreviousSend a signup invitation
NextCancel a flow

Turn users intorevenue
$

Subscribe to monthly product updates

© 2024 UserHub

Integrations

    UserHub & Auth0UserHub & Stripe BillingUserHub & Google CloudUserHub & FirebaseUserHub & custom auth