curl --request GET \
--url https://api.wordsmith.ai/api/v1/me \
--header 'Authorization: Bearer <token>'{
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"customer_id": "987fcdeb-51a2-43d1-9e8f-7b6c5a4d3e2f",
"user_name": "John Doe",
"user_email": "john@lawfirm.com",
"customer_name": "Example Law Firm LLC"
}
Retrieve information about the authenticated user and their organization
curl --request GET \
--url https://api.wordsmith.ai/api/v1/me \
--header 'Authorization: Bearer <token>'{
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"customer_id": "987fcdeb-51a2-43d1-9e8f-7b6c5a4d3e2f",
"user_name": "John Doe",
"user_email": "john@lawfirm.com",
"customer_name": "Example Law Firm LLC"
}
curl -X GET "https://api.wordsmith.ai/api/v1/me" \
-H "Authorization: Bearer sk-ws-api1-your_api_key_here" \
-H "Content-Type: application/json"
{
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"customer_id": "987fcdeb-51a2-43d1-9e8f-7b6c5a4d3e2f",
"user_name": "John Doe",
"user_email": "john@lawfirm.com",
"customer_name": "Example Law Firm LLC"
}
{
"error": "Invalid API key",
"status": 401
}