Skip to main content
GET
/
api
/
v1
/
me
Get User Information
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"
}
Retrieves information about the currently authenticated user and their associated customer organization.

Authentication

This endpoint requires a valid API key in the Authorization header.
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"

Response

user_id
string
The unique identifier for the user
customer_id
string
The unique identifier for the customer organization
user_name
string
The display name of the user (may be null)
user_email
string
The email address of the user
customer_name
string
The name of the customer organization
{
  "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 Responses

{
  "error": "Invalid API key",
  "status": 401
}

Use Cases

  • Authentication verification: Confirm that your API key is working correctly
  • User context: Get information about the current user for personalization
  • Organization identification: Determine which organization the user belongs to