PixelDance
V1Credits

Get current context credits

Returns the credit balance for the current user or active organization.

GET
/v1/credits

Returns the credit balance for the current user or active organization.

Authorization

cookieAuth
better-auth.session_token<token>

Session cookie set by Better Auth. Login via the app to obtain.

In: cookie

Response Body

application/json

application/json

curl -X GET "http://localhost:3002/v1/credits"
{
  "credits": 0
}
{
  "error": "string"
}