v5

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
COMPANY

Company Register Social

Provision a new tenant for a socially-authenticated (Google) user.

Runs on the public tenant against a verified SuperTokens session — the user has already completed Google OAuth and passed the Workspace hd gate in the sign-in-up hook. Email comes from the session (never from the client); only the instance name (and optional display name) come from the request. Creates the tenant + Owner + billing + community credits and returns the gateway credential. If the instance name is taken, returns status="instance_taken" so the UI can re-prompt.

post/companies/register-social

Request body

companystring required
newsletterboolean
first_namestring nullable
last_namestring nullable
source_insightstring nullable
referral_codestring nullable
survey_responsesobject nullable
primary_warehousestring nullable
rolestring nullable

Response

Successful Response

status'ok' | 'instance_taken' required
instancestring nullable
api_urlstring nullable
login_tokenstring nullable