accounts

Setup account with user profile and relationship.

Create an account, user profile, and account relationship in a single operation. This endpoint handles all database operations for account setup.

post/v1/accounts/setup

Request body

account_idstring nullable

The account ID. If not supplied, a new one will be created.

account_namestring required

The account name.

account_tier'ACCOUNT_TIER_INVALID' | 'ACCOUNT_TIER_BASIC' | 'ACCOUNT_TIER_PRO' | 'ACCOUNT_TIER_ENTERPRISE' | 'ACCOUNT_TIER_TRIAL' | 'UNRECOGNIZED' required
account_status'ACCOUNT_STATUS_INVALID' | 'ACCOUNT_STATUS_ONBOARDING' | 'ACCOUNT_STATUS_ENABLED' | 'ACCOUNT_STATUS_DISABLED_BY_ADMIN' | 'ACCOUNT_STATUS_DISABLED_QUOTA_REACHED' | 'UNRECOGNIZED' required
stripe_customer_idstring nullable

The Stripe customer ID.

active_subscriptionstring nullable

The active subscription ID.

user_profile_idstring nullable

The user profile ID. If not supplied, a new one will be created.

user_emailstring required

The user email.

github_user_namestring nullable

The GitHub username.

keycloak_user_idstring nullable

The Keycloak user ID.

auth_provider'AUTH_PROVIDER_UNSPECIFIED' | 'AUTH_PROVIDER_SUPABASE' | 'AUTH_PROVIDER_KEYCLOAK' | 'UNRECOGNIZED' required

Response

OK

Changes