Skip to main content
POST
/
auth
/
login
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"
}
This is a public endpoint that does not require authentication.

Body

email
string
required
The email address of the account
password
string
required
The account password

Response

access_token
string
JWT access token for authenticated requests
refresh_token
string
JWT refresh token for obtaining new access tokens
expires_in
integer
Token expiration time in seconds
token_type
string
Type of token (always “bearer”)

Error Responses

error
object
Error details when authentication fails
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"
}