Image Validation

The Image Validation API processes image URLs or uploads to provide comprehensive details such as dimensions, type, file size, and format, reports frame count, animation duration, color depth, and transparency for GIFs, and include image optimization capabilities.

Get Image Validation Results

Returns the results of an image validation test.

SecuritybasicAuth
Request
path Parameters
id
required
string

The ID of the validation test we want to check the results for

Responses
200

A 200 response

Response Schema: application/json
object
object
401

A 401 response

404

A 404 response

get/v1/inspect/images/{id}
Request samples
Response samples
application/json
{
  • "meta": {
    • "status": "Completed"
    },
  • "items": {
    • "id": "67a654ba0f53254b9fdca3e2",
    • "images": [
      ]
    }
}

Delete Image Validation Test

Delete a specific image validation test by its unique test ID. This endpoint allows you to remove an image validation test from the system. If the test ID does not exist, the appropriate error message is returned.

SecuritybasicAuth
Request
path Parameters
id
required
string

The unique identifier of the test.

Responses
200

A 200 response

Response Schema: application/json
message
required
string
401

A 401 response

404

A 404 response

delete/v1/inspect/images/{id}
Request samples
Response samples
application/json
{
  • "message": "Image validation test with test id <id> has been successfully deleted."
}

Get Image Validation Tests

Retrieve a paginated list of all image validation tests that have been submitted. The response is paginated, with a limit of up to 1000 items per page. The total count of records will display in the meta object under the key, 'count'.

SecuritybasicAuth
Request
query Parameters
limit
integer

Max count of items. Max: 1000. Default: 100

skip
integer

Get the list of items starting at the nth element (paging). Default: 0

Responses
200

A 200 response

Response Schema: application/json
object
object
Array of objects
400

A 400 response

401

A 401 response

get/v1/inspect/images
Request samples
Response samples
application/json
{}

Create an Image Validation Test

Create an image validation test.

SecuritybasicAuth
Request
Request Body schema: application/json
required
links
Array of strings
Responses
200

A 200 response

Response Schema: application/json
object
object
400

A 400 response

401

A 401 response

post/v1/inspect/images
Request samples
application/json
{ }
Response samples
application/json
{}

Create an Image Validation Test by HTML

Create an image validation test with HTML

SecuritybasicAuth
Request
Request Body schema: application/json
required
html
string
url
string
mime
string
transfer_encoding
string
charset
string
Responses
200

A 200 response

Response Schema: application/json
object
object
400

A 400 response

401

A 401 response

post/v1/inspect/images/html-validate
Request samples
application/json
{ }
Response samples
application/json
{}

Create an Image Validation Test by Image Upload

Create an image validation test by image upload

SecuritybasicAuth
Request
Request Body schema: application/json
required
image
string <binary>
Responses
200

A 200 response

Response Schema: application/json
object
object
400

A 400 response

401

A 401 response

post/v1/inspect/images/upload
Request samples
application/json
{ }
Response samples
application/json
{
  • "meta": {
    • "status": "Complete"
    },
  • "items": {
    • "id": "67b629564b911fa30a4d7873",
    • "images": [
      ]
    }
}

Reprocess Image Validation Test

Reprocess an image validation test.

SecuritybasicAuth
Request
path Parameters
id
required
string

Test ID

Responses
200

A 200 response

Response Schema: application/json
object
object
400

A 400 response

401

A 401 response

post/v1/inspect/images/{id}/reprocess
Request samples
Response samples
application/json
{}

Optimize Images By Test ID

Optimizes images by test id

SecuritybasicAuth
Request
path Parameters
id
required
string

The ID of the image validation test we want to optimize the images for.

Responses
200

A 200 response

Response Schema: application/json
object
object
Array of objects
401

A 401 response

404

A 404 response

post/v1/inspect/images/{id}/optimize
Request samples
Response samples
application/json
{}

Optimize Single Image By Test ID

Optimizes a single image by test id

SecuritybasicAuth
Request
path Parameters
test_id
required
string

The ID of the image validation test we want to optimize the images for.

image_id
required
string

The ID of the image we want to optimize

Responses
200

A 200 response

Response Schema: application/json
object
object
object
401

A 401 response

404

A 404 response