Skip to main content
GET
/
auth
/
credits
Get Credits
curl --request GET \
  --url https://api.techforgeinnovate.com/auth/credits \
  --header 'x-api-key: <api-key>'
{
  "credits": 123
}

Get Credits

Returns the current credit balance for the authenticated account.

Request

No path params, query params, or request body.

Example request

curl "https://api.techforgeinnovate.com/auth/credits" \
  -H "x-api-key: $TFI_API_KEY"

Response

credits
number
Current credit balance for the API-key owner.
Example response:
{
  "credits": 1250
}

Status codes

  • 200 OK when the key is valid
  • 401 Unauthorized when the key is missing or invalid