v5
latestOpenAPI 3.1.02026-08-081,0211,3082.1 MBCOMPANY
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
Response
Successful Response