Get the current remaining credits for a tenant.
This endpoint retrieves the current remaining credits available for the authenticated tenant.
success: Boolean indicating request successtenant_id: The tenant IDremaining_credits: Current remaining credits for the tenanttotal_credits: Total credits for the tenant
This endpoint requires authentication via Bearer token. The tenant ID is automatically extracted from the authenticated user's token.
{
"success": true,
"tenant_id": 123,
"remaining_credits": 4750.25
}Security
BearerAuth
- Lantern API serverhttps://api-gateway.agenthq.withlantern.com/v1/credits/remaining
- Local API serverhttp://localhost:8000/v1/credits/remaining
curl -i -X GET \
https://api-gateway.agenthq.withlantern.com/v1/credits/remaining \
-H 'Authorization: Bearer <YOUR_ApiToken_HERE>'Response
{ "success": true, "tenant_id": 123, "remaining_credits": 4750.25 }