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.
POST /api/auth/register
Registers a new user or updates an existing user’s information after Auth0 authentication. This endpoint creates a user record in the database and sets up default site settings for new users.Authentication
Requires Auth0 JWT token in the Authorization header.Request Body
The Auth0 user identifier (e.g., “auth0|123456789”)
User’s email address
User’s display name (optional)
URL to user’s profile picture (optional)
Response
The user’s unique identifier
User’s email address
User’s display name
URL to user’s profile picture
Whether the user has admin privileges
ISO 8601 timestamp of when the user was created
ISO 8601 timestamp of when the user was last updated
Example Request
cURL
Example Response
Error Responses
Authentication token is missing or invalid
Request method is not POST
Server encountered an error processing the request
Behavior
- New Users: Creates a new user record and generates default site settings with a unique subdomain (format:
blog-{userId_prefix}) - Existing Users: Updates the user’s email, name, and picture if provided
- Site Settings: Automatically creates a default blog site with a generated subdomain for new users

