Autoenhance.ai
  • Overview
  • Getting Started
    • Obtaining an API key
    • Quickstart
      • Single Image
      • HDR Brackets
    • Code Examples
      • JavaScript
        • Uploading Single Bracket
        • Uploading HDR
        • Uploading 360
      • API Integrations Repository
  • SDKs
    • Web (Beta)
      • Changelog
    • JavaScript
      • Changelog
    • Python
      • Changelog
  • File & Camera Guidelines
    • File Formats
    • Metadata
    • 360
    • Lens Correction
  • Images
    • Managing Images
      • Creating & Uploading
      • Reprocessing
      • Retrieveing
      • Deleting
      • Reporting
    • Settings
      • Enhancement Style
      • Sky Replacement
      • Lens Correction
      • Vertical Correction
      • Window Pull
      • Auto Privacy
      • Usage Example
    • Downloading Images
      • Original
      • Preview
      • Enhanced
  • Orders
    • Managing Orders
      • Creating
      • Editing
      • Retrieving
      • Listing and Pagination
      • Deleting
    • Grouping Brackets and Processing Orders
  • Webhooks
  • API Versions
  • AI Versions
  • Links
    • API Specification
    • Support
Powered by GitBook
On this page
  • Setup
  • Consuming webhooks

Webhooks

PreviousGrouping Brackets and Processing OrdersNextAPI Versions

Last updated 1 year ago

You can subscribe to our webhooks to receive automatic updates about your images. Webhooks allow our system to send real-time notifications to your server whenever an update occurs, ensuring you are always informed about the status of your images.

Setup

In order to subscribe to our webhooks, you need to set up your account in the API page in our . Once you are in the API page, fill in the Webhook URL form field with the url that the webhooks are supposed to be sent to together with the authentication value if it's necessary, and hit the "Update settings" button.

You should receive an POST request to your webhook url right after update the settings.

{
    "event": "webhook_updated"
}

Consuming webhooks

For each image processed you will receive a POST request with your authentication token containing the following JSON payload

{
    "event": image_processed",
    "image_id": ..., // The ID of the image procesed
    "error": ... // True if the image had an error, false otherwise
    "order_id": ..., // The ID of the order the image belongs to
    "order_is_processing": ... // True if the order is processing, false if it has processed all the images
}
web application
API page in our web application