1. Autobg Enterprise Api's
Autobg
  • Operational Guidelines
    • AI/Collab Processing Webhook Notification Doc
    • Reported Image Review Webhook Notification Doc
  • Autobg Enterprise Api's
    • Create Template
      POST
    • List Templates
      POST
    • List Autobg Library
      GET
    • Upload/Process Images without Template.
      POST
    • Upload/Process Images with Template
      POST
    • Upload/Process Images with Template with Dynamic Branding
      POST
    • (Beta Mode) Upload/Process Images with Default Library Backdrop Templates
      POST
    • Upload/Process S3 Urls without Template.
      POST
    • Upload/Process S3 Urls with Template
      POST
    • Upload/Process S3 Urls with Template with Dynamic Branding
      POST
    • Report Images
      POST
    • Get Image Status
      POST
    • Download Processed Images
      POST
    • User Usage
      POST
    • User Credit Details
      POST
    • Get Raw Image in Base64 Format
      GET
    • Get Raw Image
      GET
  • Autobg Custom APIs
    • replaceNumPlate-v3
      POST
    • replaceNumPlateS3-v3
      POST
    • Send Images For QA
      POST
  1. Autobg Enterprise Api's

User Credit Details

POST
https://apis.autobg.ai/public/api/v1/user/getUserCreditDetails

Description#

This API returns current credits and total credits of the user.
This API is rate-limited to 100 requests per minute per user.

API Request & Response Guidelines#

🟢 200 OK#

User Credit Details Retrieved Successfully#

Returned when the system successfully fetches the user's current and total credit information.
{
  "status": true,
  "message": "",
  "data": {
    "current_credits": 120,
    "total_credits": 500
  }
}

🟠 401 Unauthorized#

Missing or Invalid Authorization#

Returned when:
Authorization header is missing
API key is invalid
API key is not associated with a user
{
  "status": false,
  "message": "You are not Authorized"
}

🟠 429 Too Many Requests#

Returned when the request limit is exceeded.
Limit:
100 requests per minute per user/API key
{
  "status": false,
  "message": "Rate limit exceeded."
}

🔴 500 Internal Server Error#

Unexpected Server Error#

Returned when an unexpected error occurs outside normal validation flow.
{
  "status": false,
  "message": "Service unavailable"
}
Generic format:
{
  "status": false,
  "message": "<error message>"
}

Important Note#

Consumers of this API should not rely solely on the HTTP status code. Some validation and business-rule failures may return HTTP 200 OK with "status": false in the response body. Always inspect the status field to determine whether the operation succeeded.

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apis.autobg.ai/public/api/v1/user/getUserCreditDetails' \
--header 'Authorization: <api-key>'
Response Response Example
{
    "status": true,
    "message": "",
    "data": {
        "current_credits": 10,
        "total_credits": 10
    }
}
Modified at 2026-06-15 07:56:19
Previous
User Usage
Next
Get Raw Image in Base64 Format
Built with