Skip to main content

Endpoint

GET /api/auth/me
Get information about the currently authenticated user, including email, tier, available credits, and account creation date.

Authentication

This endpoint requires authentication via the X-API-Key header.
X-API-Key: ki_your_api_key_here

Response

email
string
The user’s registered email address.
tier
string
The user’s subscription tier. Values: free, pro, enterprise.
credits
integer
Number of available credits remaining for the user’s account.
created_at
string
ISO 8601 timestamp of when the account was created.

Example Request

cURL
curl -X GET https://api.kaggleingest.com/api/auth/me \
  -H "X-API-Key: ki_Xk2pL9mN4vQ7rT8sW1yZ3bC5dE6fG0hJ"
Python
import requests

api_key = "ki_Xk2pL9mN4vQ7rT8sW1yZ3bC5dE6fG0hJ"

response = requests.get(
    "https://api.kaggleingest.com/api/auth/me",
    headers={"X-API-Key": api_key}
)

user_info = response.json()
print(f"Email: {user_info['email']}")
print(f"Credits remaining: {user_info['credits']}")
JavaScript
const apiKey = 'ki_Xk2pL9mN4vQ7rT8sW1yZ3bC5dE6fG0hJ';

const response = await fetch('https://api.kaggleingest.com/api/auth/me', {
  headers: {
    'X-API-Key': apiKey
  }
});

const userInfo = await response.json();
console.log('Email:', userInfo.email);
console.log('Credits remaining:', userInfo.credits);

Example Response

200 - Success
{
  "email": "[email protected]",
  "tier": "free",
  "credits": 10,
  "created_at": "2026-03-01T14:30:00.000Z"
}

Error Responses

401 - Missing API Key
{
  "detail": "Missing X-API-Key header. Get your key at https://kaggleingest.com/dashboard"
}
403 - Invalid API Key
{
  "detail": "Invalid API key"
}

Notes

  • Use this endpoint to check your remaining credits before making requests
  • The created_at timestamp is in ISO 8601 format (UTC)
  • Free tier accounts start with 10 credits

Build docs developers (and LLMs) love