Docs/User API/Pricing/Get

Get pricing

Preview
GET/user/v1/pricing

Get pricing.

query parameters

  • accountType

    enum

    Whether to get pricing for users or organizations.

    This is not required if organization ID is specified and will default to user if no options are specified.

    Possible values:
    ORGANIZATIONUSER
  • organizationId

    string

    Show pricing for specified organization.

    If this and account type are not specified, it will default to the requesting user for authenticated requests.

  • public

    boolean

    Always get the current public pricing.

    For unauthenticated requests, this is always true.

Returns

  • plans

    Plan[]

    The list of plans.

curl https://api.userhub.com/user/v1/pricing?organizationId=org_28seyVGVL1got6 \
  -H "UserHub-Api-Key: $USERHUB_USER_KEY" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN"
Response bodyJSON
{
  "plans": [
    {
      "id": "plan_2wnGzPMSrDBYK5:ukfHizos:monthly:usd",
      "state": "AVAILABLE",
      "uniqueId": "pro:ukfHizos:monthly:usd",
      "displayName": "Pro",
      "description": "The pro plan.",
      "tier": "TIER1",
      "currencyCode": "USD",
      "interval": {
        "quantity": 1,
        "unit": "MONTH"
      },
      "revision": {
        "id": "plan_2wnGzPMSrDBYK5:ukfHizos"
      },
      "default": true,
      "trial": {
        "days": 7
      },
      "items": [
        {
          "type": "SEAT",
          "product": {
            "id": "pd_3fNK5BXs9C1Fdc",
            "uniqueId": "pro-seat",
            "displayName": "Pro seat"
          },
          "price": {
            "id": "pr_HFULbg4GRQEkV6",
            "currencyCode": "USD",
            "billingMode": "FIXED_TERM",
            "interval": {
              "quantity": 1,
              "unit": "MONTH"
            },
            "fixed": {
              "amount": "5"
            }
          }
        }
      ]
    },
    {
      "id": "plan_2wnGzPMSrDBYK5:ukfHizos:yearly:usd",
      "state": "AVAILABLE",
      "uniqueId": "pro:ukfHizos:yearly:usd",
      "displayName": "Pro",
      "description": "The pro plan.",
      "tier": "TIER1",
      "currencyCode": "USD",
      "interval": {
        "quantity": 1,
        "unit": "YEAR"
      },
      "revision": {
        "id": "plan_2wnGzPMSrDBYK5:ukfHizos"
      },
      "trial": {
        "days": 7
      },
      "savings": {
        "percentage": 16
      },
      "items": [
        {
          "type": "SEAT",
          "product": {
            "id": "pd_3fNK5BXs9C1Fdc",
            "uniqueId": "pro-seat",
            "displayName": "Pro seat"
          },
          "price": {
            "id": "pr_36La7Y1xhx2qWv",
            "currencyCode": "USD",
            "billingMode": "FIXED_TERM",
            "interval": {
              "quantity": 1,
              "unit": "YEAR"
            },
            "fixed": {
              "amount": "50"
            }
          }
        }
      ]
    }
  ]
}
PreviousThe pricing object
NextRoles

Build software thatmonetizes
$

Subscribe to monthly product updates

© 2025 UserHub

Integrations

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