Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/subratomandal/dyeink/llms.txt

Use this file to discover all available pages before exploring further.

GET /api/auth/me

Retrieves the profile information for the currently authenticated user based on their Auth0 JWT token.

Authentication

Requires Auth0 JWT token in the Authorization header.
Authorization: Bearer <auth0_jwt_token>

Response

id
string
The user’s unique identifier
email
string
User’s email address
name
string
User’s display name
picture
string
URL to user’s profile picture
isAdmin
boolean
Whether the user has admin privileges
createdAt
string
ISO 8601 timestamp of when the user was created
updatedAt
string
ISO 8601 timestamp of when the user was last updated

Example Request

cURL
curl -X GET https://api.dyeink.com/api/auth/me \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."

Example Response

{
  "id": "auth0_123456789",
  "email": "user@example.com",
  "name": "John Doe",
  "picture": "https://example.com/avatar.jpg",
  "isAdmin": false,
  "createdAt": "2026-03-01T08:00:00.000Z",
  "updatedAt": "2026-03-04T10:30:00.000Z"
}

Error Responses

401 Unauthorized
object
Authentication token is missing or invalid
{
  "error": "Unauthorized"
}
404 Not Found
object
User record not found in the database
{
  "error": "User not found"
}
405 Method Not Allowed
object
Request method is not GET
{
  "error": "Method not allowed"
}
500 Internal Server Error
object
Server encountered an error processing the request
{
  "error": "Failed to get user"
}

Use Cases

  • Verify user authentication status
  • Load user profile information on application startup
  • Check if user has admin privileges
  • Display user information in the UI