Skip to main content
POST
/
api
/
auth
/
signup
Create new workspace and user
curl --request POST \
  --url https://api.staging.whilst.app/api/auth/signup \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceName": "Acme Inc",
  "email": "founder@acme.com"
}
'
{
  "redirectUrl": "<string>",
  "organizationId": "<string>"
}

Body

application/json
workspaceName
string
required

Name of the workspace to create

Minimum string length: 1
Example:

"Acme Inc"

email
string<email>
required

Email address of the workspace creator

Example:

"founder@acme.com"

Response

Workspace created, redirect to WorkOS for verification

redirectUrl
string<uri>
required

WorkOS authorization URL for email verification

organizationId
string
required

WorkOS organization ID for the created workspace