Api referenceBillingApiBillingUpdate cost
POST /api/billing/update-cost
Authorization
sessionAuth better-auth.session_token<token>
Better Auth session cookie
In: cookie
Request Body
application/json
userId*string
cost*number
isByok?boolean
Default
falsetokens?number
voiceMinutes?number
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://app.nuxa.ai/api/billing/update-cost" \ -H "Content-Type: application/json" \ -d '{ "userId": "string", "cost": 0 }'{}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}