Get Billing
Get the billing for the user
Authorization<token>
Your v0 API key. Get one at https://v0.dev/chat/settings/keys
In: header
Query Parameters
scope?string
Query parameter "scope"
Response Body
curl -X GET "https://api.v0.dev/v1/user/billing?scope=string"
{
"billingType": "token",
"data": {
"plan": "string",
"billingMode": "test",
"role": "string",
"billingCycle": {
"start": 0,
"end": 0
},
"balance": {
"remaining": 0,
"total": 0
},
"onDemand": {
"balance": 0,
"blocks": [
{
"expirationDate": 0,
"effectiveDate": 0,
"originalBalance": 0,
"currentBalance": 0
}
]
}
}
}
{
"error": {
"message": "string",
"type": "unauthorized_error"
}
}
{
"error": {
"message": "string",
"type": "forbidden_error"
}
}
{
"error": {
"message": "string",
"type": "not_found_error"
}
}
{
"error": {
"message": "string",
"type": "conflict_error"
}
}
{
"error": {
"message": "string",
"type": "payload_too_large_error"
}
}
{
"error": {
"message": "string",
"type": "unprocessable_entity_error"
}
}
{
"error": {
"message": "string",
"type": "too_many_requests_error"
}
}
{
"error": {
"message": "string",
"type": "internal_server_error"
}
}