ChatDOC
  1. Users
ChatDOC
  • Documents
    • Upload Document
      POST
    • Upload Document
      POST
    • Get Document
      GET
    • Delete Document
      DELETE
    • Download Document
      GET
  • Collections
    • Create Collection
      POST
    • Clone Document To Collection
      POST
  • Questions
    • Get Suggested Questions
      GET
    • Ask Question
      POST
    • Get Question
      GET
    • Ask Question With Multiple Documents
      POST
  • Users
    • Get Quota
      GET
  1. Users

Get Quota

Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
GET
/users/quota
Get quota of not expired package
Response example:
{
  "data": {
    "package": { # may be null
      "basic_page": { # may be null
        "max_count": 3000,
        "used_count": 1044
      },
      "elite_page": { # may be null
        "max_count": 3000,
        "used_count": 1045
      },
      "lite_page": { # may be null
        "max_count": 3000,
        "used_count": 1046
      },
      "question": { # may be null
        "max_count": 3000,
        "used_count": 11
      },
      "documents_tokens": { # may be null
        "max_count": 3000,
        "used_count": 11
      },
      "ocr_page": { # may be null
        "max_count": 3000,
        "used_count": 11
      },
      "gpt4_question": { # may be null
        "max_count": 3000,
        "used_count": 11
      },
      "gpt4o_question": { # may be null
        "max_count": 3000,
        "used_count": 11
      }
    }
  }
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dev.your-api-server.com/users/quota'
Response Response Example
{
    "package": {
        "page": {
            "max_count": 0,
            "used_count": 0
        },
        "question": {
            "max_count": 0,
            "used_count": 0
        },
        "lite_page": {
            "max_count": 0,
            "used_count": 0
        },
        "basic_page": {
            "max_count": 0,
            "used_count": 0
        },
        "elite_page": {
            "max_count": 0,
            "used_count": 0
        },
        "documents_tokens": {
            "max_count": 0,
            "used_count": 0
        },
        "gpt4_question": {
            "max_count": 0,
            "used_count": 0
        },
        "gpt4o_question": {
            "max_count": 0,
            "used_count": 0
        },
        "ocr_page": {
            "max_count": 0,
            "used_count": 0
        }
    }
}

Request

None

Responses

🟢200Successful Response
application/json
Body
package
object (APIPackageInfoResp) 
optional
page
object (PackageDataResp) 
optional
question
object (PackageDataResp) 
optional
lite_page
object (PackageDataResp) 
optional
basic_page
object (PackageDataResp) 
optional
elite_page
object (PackageDataResp) 
optional
documents_tokens
object (PackageDataResp) 
optional
gpt4_question
object (PackageDataResp) 
optional
gpt4o_question
object (PackageDataResp) 
optional
ocr_page
object (PackageDataResp) 
optional
Modified at 2024-07-26 06:57:23
Previous
Ask Question With Multiple Documents
Built with