Endpoints

Available Credits

GEThttps://api.oneinfer.ai/v1/developer/:developerId/get-credits

Retrieve the current credit balance for your developer account.

Path Parameters

developerId
string requiredYour unique developer identifier obtained from the console.

Request example

curl -X GET "https://api.oneinfer.ai/v1/developer/{developerId}/get-credits" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"

Response example

200 OK
{ "availableCredits": { "creditBalance": 150.75, "lastUpdated": "2024-03-21T12:30:00Z" } }

Error Status Codes

CodeStatusDescription
200OKCredit balance returned successfully.
401UnauthorizedMissing or invalid Authorization header / Bearer token.
500Internal Server ErrorUnexpected error fetching credit balance.

Response

202 - application/json