Skip to main content
GET
https://api.tktchurch.com/v1
/
auth
/
users
/
{id}
curl -X GET "https://api.tktchurch.com/v1/auth/users/123e4567-e89b-12d3-a456-426614174000" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe",
  "status": "active",
  "provider": "google",
  "providerInfo": {
    "providerId": "12345",
    "displayName": "John Doe",
    "photoUrl": "https://example.com/photo.jpg",
    "email": "[email protected]"
  },
  "lastLoginAt": "2024-01-20T08:30:00Z",
  "createdAt": "2024-01-01T00:00:00Z"
}
This endpoint requires authentication.

Path Parameters

id
string
required
The UUID of the user to retrieve

Response

id
string
User’s unique identifier (UUID)
email
string
User’s email address
firstName
string
User’s first name
lastName
string
User’s last name
status
string
User’s account status. One of:
  • active: User is active and can access the system
  • inactive: User is inactive (unverified email or deactivated account)
  • suspended: User is temporarily suspended
provider
string
Primary authentication provider. One of:
  • local: Local authentication using email and password
  • google: Google OAuth authentication
  • facebook: Facebook OAuth authentication
  • apple: Apple Sign In authentication
providerInfo
object
Provider-specific user information
lastLoginAt
string
Timestamp of last login
createdAt
string
Account creation timestamp

Error Responses

error
object
Error details when the request fails
Common error cases:
  • 400 Bad Request: Invalid user ID format
  • 401 Unauthorized: Missing or invalid access token
  • 404 Not Found: User not found
curl -X GET "https://api.tktchurch.com/v1/auth/users/123e4567-e89b-12d3-a456-426614174000" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe",
  "status": "active",
  "provider": "google",
  "providerInfo": {
    "providerId": "12345",
    "displayName": "John Doe",
    "photoUrl": "https://example.com/photo.jpg",
    "email": "[email protected]"
  },
  "lastLoginAt": "2024-01-20T08:30:00Z",
  "createdAt": "2024-01-01T00:00:00Z"
}