Skip to main content

Request Information

  • Method: GET
  • URL: https://api.superaiglobal.com/v1/queryCredit

Request Headers

FieldValueDescription
Content-Typeapplication/jsonData exchange format
AuthorizationBearer {your api key}Replace {your api key} with your Bearer token

Request Example

curl -X GET "https://api.superaiglobal.com/v1/queryCredit" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key_here"

Response Body

FieldTypeDescription
codeStringStatus code. 200 for success. See error codes table for other values
messageStringMessage
dataObjectResponse data
data.userIdNumberUser ID
data.availableCreditNumberAvailable credits balance

Response Example

Success

{
  "code": "200",
  "message": "success",
  "data": {
    "userId": 1,
    "availableCredit": 0
  }
}