Skip to main content
GET
https://searchcompany-main.up.railway.app
/
api
/
business
/
{clerk_user_id}
curl https://searchcompany-main.up.railway.app/api/business/user_2xyz789
{
  "id": 42,
  "business_uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "business_name": "Nike",
  "created_at": "2024-01-15T10:30:00Z"
}
Gets the business record associated with a Clerk user.

Path Parameters

clerk_user_id
string
required
The Clerk user ID

Response

id
integer
Database record ID
business_uuid
string
Unique identifier for the business
business_name
string
The business name
created_at
string
ISO 8601 timestamp of creation
curl https://searchcompany-main.up.railway.app/api/business/user_2xyz789
{
  "id": 42,
  "business_uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "business_name": "Nike",
  "created_at": "2024-01-15T10:30:00Z"
}

Errors

StatusDescription
404No business found for the user
500Database not configured