Skip to main content
POST
/
open
/
agentic_doc_processor
/
{tenant_name}
/
v1
/
user
/
payment
Get credit usage
const options = {method: 'POST', headers: {'X-API-KEY': '<api-key>'}};

fetch('https://adp-global.laiye.com/open/agentic_doc_processor/{tenant_name}/v1/user/payment', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "code": "<string>",
  "message": "<string>",
  "tips": "<string>",
  "data": {
    "total_credits": 123,
    "used_credits": 123,
    "expired_credits": 123,
    "remaining_credits": 123
  }
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

tenant_name
string
default:laiye
required

Tenant name. Default: laiye.

Response

Credit usage.

code
message
string
tips
string | null
data
object