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

Create Template

POST
https://apis.autobg.ai/public/api/v1/templates/create

Description#

Create reusable templates for automotive image processing with support for library or custom backdrops, multi-angle backgrounds, logo placement controls, and number plate customization to generate polished, branded vehicle visuals.
Rate Limit
This API supports up to 100 requests per minute per user.

API Request & Response Guidelines#

🟢 200 OK#

Template Created#

Returned when the template is successfully created.
{
  "status": true,
  "message": "",
  "data": {
    "templateID": 123
  }
}

🟢 200 OK (Business Validation Errors)#

Validation / Processing Errors#

Missing Brand Logo#

{
  "status": false,
  "message": "Missing Brand Logo Image File",
  "data": []
}

Missing Brand Alignment#

{
  "status": false,
  "message": "Missing Brand Alignment (bAlignment value)",
  "data": []
}

Invalid File Type#

{
  "status": false,
  "message": "File Not Allowed: Replace Background [background.png] with valid image file",
  "data": []
}
Pattern:
File Not Allowed: Replace {FieldName} [{FileName}] with valid image file

File Size Exceeded#

{
  "status": false,
  "message": "File Max Size Exceeded! Allowed Background [background.jpg] Size: 15 MB",
  "data": []
}
Pattern:
File Max Size Exceeded! Allowed {FieldName} [{FileName}] Size: 15 MB

Invalid Filename#

{
  "status": false,
  "message": "File Not Allowed, Background [背景.jpg] should only contain English Character Set. Please rename the file and try again."
}

Pattern:#

File Not Allowed, {FieldName} [{FileName}] should only contain English Character Set. Please rename the file and try again.

Background Format Error#

{
  "status": false,
  "message": "Background Suported Formats: [jpg, jpeg]",
  "data": []
}

Side Backdrop Format Error#

{
  "status": false,
  "message": "Side Backdrop Suported Formats: [jpg, jpeg]",
  "data": []
}

Front/Rear Backdrop Format Error#

{
  "status": false,
  "message": "Front/Rear Backdrop Suported Formats: [jpg, jpeg]",
  "data": []
}

Invalid Number Plate Background Color#

{
  "status": false,
  "message": "Enter a valid background hex code for a transparent number plate.",
  "data": []
}

Invalid Input#

{
  "status": false,
  "message": "Something is missing or incorrect. Please recheck all inputs.",
  "data": []
}
Possible causes:
Missing name
Empty name
Invalid numPlate
Invalid bAlignment

Template Save Failure#

{
  "status": false,
  "message": "Error saving template.",
  "data": []
}

Internal Processing Errors#

Example:
{
  "status": false,
  "message": "Unique constraint failed"
}

🟠 400 Bad Request#

Invalid File Combination#

Returned when uploaded files do not match one of the supported combinations.
Valid combinations:
Only libraryBackdropID
Only background
background + side + frontRear
{
  "status": false,
  "message": "Valid combinations are: only libraryBackdropID, only background, or background + side + frontRear."
}

🟠 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"
}

🟠 404 Not Found#

Returned when the requested endpoint does not exist.
{
  "status": false,
  "message": "Not Found"
}

🟠 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: ********************
Body Params multipart/form-data

Responses

🟢200OK
application/json
Bodyapplication/json

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://apis.autobg.ai/public/api/v1/templates/create' \
--header 'Authorization: <api-key>' \
--form 'name="API-Template-1"' \
--form 'libraryBackdropID="1"' \
--form 'background=@""' \
--form 'side=@""' \
--form 'frontRear=@""' \
--form 'numPlate=""' \
--form 'numberPlate=@""' \
--form 'numPlateBgHexCode="\#FFFFFF"' \
--form 'brandLogo=@""' \
--form 'bAlignment=""'
Response Response Example
200 - Example 1
{
    "status": true,
    "message": "",
    "data": {
        "templateID": 367
    }
}
Modified at 2026-06-15 10:20:23
Previous
Reported Image Review Webhook Notification Doc
Next
List Templates
Built with