π΅ POST - Create Business
Create Organization Record
Create organization metadata and business entity
POST
Creates an organization details record in
clerk_organization_details table and a business entity in the entities table. This is called during onboarding after the Clerk organization is created.
What This Does
- Creates organization metadata in
clerk_organization_details(links Clerk org to database) - Gets/creates ranking score in the pre-payment rankings database (32-49 range)
- Creates business entity in
entitiestable (needed for visibility tracking) - Updates Clerk metadata with business info for frontend access
Request Body
string
required
The name of the business (e.g., βNikeβ, βAcme Corpβ)
string
The main website URL for the business
string
Type of tracking:
"business" or "product"string
The Clerk organization ID (e.g.,
org_2abc123)string
The Clerk user ID who created the business
string
The Clerk organization slug (e.g.,
nike-123456). Used to create the entity in the entities table.Response
integer
Database record ID in
clerk_organization_detailsstring
Unique identifier (UUID v4)
string
The organization name
string
ISO 8601 timestamp of creation
integer
Pre-payment AI visibility ranking score (32-49)
string
The UUID of the created entity in the
entities tableThe
entity_id is created here so that Materialize Score can immediately copy the ranking score to the main database after onboarding completes.