This is a public endpoint that does not require authentication.
Body
The email address of the account
Response
JWT access token for authenticated requests
JWT refresh token for obtaining new access tokens
Token expiration time in seconds
Type of token (always “bearer”)
Error Responses
Error details when authentication fails
HTTP status code (401 for unauthorized)
Error message explaining why the request failed
The API will return a 401 Unauthorized status code with “Invalid credentials” message in these cases:
- User with provided email does not exist
- Password verification fails
curl -X POST "https://api.tktchurch.com/v1/auth/login" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123"
}'
{
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "eyJhbGciOiJIUzI1NiIs...",
"expires_in": 3600,
"token_type": "bearer"
}