cURL
curl --request POST \ --url http://sandbox.mintlify.com/auth/login \ --header 'Content-Type: application/json' \ --data '{}'
email
password
curl -X POST http://localhost:3001/api/auth/login \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "password": "your_password" }'
{ "access_token": "eyJhbGciOiJIUzI1NiIs...", "refresh_token": "refresh_token_here", "expires_in": 3600, "token_type": "Bearer", "user": { "id": "550e8400-e29b-41d4-a716-446655440000", "email": "user@example.com" } }
access_token
Authorization: Bearer <access_token>
The body is of type object.
object