Creates a new business record in the database and links it to a Clerk user.
Request Body
The name of the business (e.g., “Nike”, “Acme Corp”)
The main website URL for the business
Type of tracking: "business" or "product"
The Clerk organization ID
The Clerk user ID who created the business
Response
Unique identifier for the business (UUID v4)
ISO 8601 timestamp of creation
Initial AI visibility ranking score (32-49)
curl -X POST https://searchcompany-main.up.railway.app/api/business \
-H "Content-Type: application/json" \
-d '{
"business_name": "Nike",
"business_url": "https://nike.com",
"tracking_type": "business",
"clerk_org_id": "org_2abc123",
"clerk_user_id": "user_2xyz789"
}'
{
"id": 42,
"business_uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"business_name": "Nike",
"created_at": "2024-01-15T10:30:00Z",
"ranking_score": 38
}