curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"Username": "<string>",
"Email": "<string>",
"Password": "<string>"
}
'{
"AccessToken": "<string>",
"RefreshToken": "<string>",
"AccessTokenExpiry": {},
"User": {}
}Register a new user account
curl --request POST \
--url https://api.example.com/api/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"Username": "<string>",
"Email": "<string>",
"Password": "<string>"
}
'{
"AccessToken": "<string>",
"RefreshToken": "<string>",
"AccessTokenExpiry": {},
"User": {}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/David-Andino/auth-service-dotnet/llms.txt
Use this file to discover all available pages before exploring further.
Id (guid): Unique user identifierUsername (string): The usernameEmail (string): The user’s email addressCreatedAt (datetime): Account creation timestampcurl -X POST http://localhost:5000/api/auth/register \
-H "Content-Type: application/json" \
-d '{
"Username": "johndoe",
"Email": "john@example.com",
"Password": "SecureP@ss123"
}'
{
"AccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"RefreshToken": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"AccessTokenExpiry": "2026-03-10T15:45:00Z",
"User": {
"Id": "123e4567-e89b-12d3-a456-426614174000",
"Username": "johndoe",
"Email": "john@example.com",
"CreatedAt": "2026-03-10T15:30:00Z"
}
}
{
"message": "Ya existe una cuenta con ese email."
}