Endpoints
Account
Check how many credits your account has left.
GEThttps://fabricvton-api.onrender.com/api/v1/account
Handy for a health check or a daily alert, so you can top up before shoppers see INSUFFICIENT_CREDITS. It costs nothing to call.
Headers
| Header | Type | Description |
|---|---|---|
Authorization | required | Bearer followed by your API key. |
Example
curl https://fabricvton-api.onrender.com/api/v1/account \
-H "Authorization: Bearer $CLOTHSY_API_KEY"Response
{
"credits": 42,
"scope": "account"
}| Field | Type | Description |
|---|---|---|
credits | number | Try-ons this key can still run. Each finished try-on uses one. |
scope | string | "account" — the key draws on your account's balance, shared with the Playground (keys you create yourself). "key" — the key has its own allowance, issued to you by Clothsy AI, and credits is what's left on that key alone. |
To buy more credits, email us.
Errors
| Status | Code | When |
|---|---|---|
| 401 | INVALID_API_KEY | The key is missing, malformed or revoked. |
| 500 | INTERNAL_ERROR | Something went wrong on our side. Retry after a moment. |
| 503 | UNAVAILABLE | The service is briefly unavailable. Retry after a short wait. |

