Create the caller's organization
Creates the organization for a signed-in user who has none, sets its external id to the derived tenant slug, adds the caller as an active admin, and provisions the tenant. Idempotent: a caller who already belongs to an organization gets it back with created: false rather than a second one. A caller who has been invited to an organization is refused instead, so they can accept that invitation rather than being given a second organization of their own. Give slug to choose the tenant slug. A taken slug answers 409 slug_taken and is never changed. Without slug, the slug comes from the name, with a short suffix when it is taken. A caller who already has an organization gets it back, and slug is ignored. Give workspace: personal with no name and no slug to create a personal workspace. Its name and slug come from the caller's profile: the first and last name, else the email address. A taken slug gets a short suffix. The session must be re-issued afterwards: token claims are set at authentication, so the current token still carries no tenant.
https://api.cloudraker.com/onboarding/organizationTry it
Authorization
Request body JSON required
- workspaceoptionalpersonalororganization
What to create. Absent means
organization.personal: a workspace for the caller alone. The name comes from the caller's first and last name, else from the email address (for exampleJane Doe's workspace). The slug comes from the same text, with a short suffix when it is taken. Send nonameand noslug.organization: an organization with the givenname. The slug isslugwhen given, else it comes from the name.
Returns
200
The caller's organization and tenant slug.