> ## Documentation Index
> Fetch the complete documentation index at: https://doc.superaiglobal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Credit Interface

### Request Information

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

### Request Headers

| Field         | Value                   | Description                                     |
| ------------- | ----------------------- | ----------------------------------------------- |
| Content-Type  | application/json        | Data exchange format                            |
| Authorization | Bearer `{your api key}` | Replace `{your api key}` with your Bearer token |

### Request Example

```bash theme={null}
curl -X GET "https://api.superaiglobal.com/v1/queryCredit" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key_here"
```

### Response Body

| Field                | Type   | Description                                                          |
| -------------------- | ------ | -------------------------------------------------------------------- |
| code                 | String | Status code. 200 for success. See error codes table for other values |
| message              | String | Message                                                              |
| data                 | Object | Response data                                                        |
| data.userId          | Number | User ID                                                              |
| data.availableCredit | Number | Available credits balance                                            |

### Response Example

#### Success

```json theme={null}
{
  "code": "200",
  "message": "success",
  "data": {
    "userId": 1,
    "availableCredit": 0
  }
}
```
