from chonkie.cloud import Auth

validated = Auth.validate(api_key="{api_key}")

if validated: 
    print("API key is valid and active")
else: 
    print("API key is invalid or expired")
{
  "message": "Token is valid!",
  "status": 200
}

Authorizations

Authorization
string
header
required

Your API Key from the Chonkie Cloud dashboard

Response

200 - application/json

API key is valid and active

The response is of type object.