---
title: "POST images-icon-webhook"
url: "https://tenant1.jeffyongtaotang.com/apis/poc-api-image-of-s3-app-0/versions/c7ec546f-f246-4ade-803d-092a92ef0fc9/paths/images-icon-webhook/post"
---

> Full API specification: https://tenant1.jeffyongtaotang.com/apis/poc-api-image-of-s3-app-0/versions/c7ec546f-f246-4ade-803d-092a92ef0fc9.md

# /images/icon/webhook

`POST` `/images/icon/webhook`

Webhook endpoint accept S3 ObjectCreatedEvent

## Request body (required)

Content types: `application/json`

## Responses

- `202` - Accepted
- `400` - Bad Request
- `404` - Not Found

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: PoC API Image of S3 App
  version: 0.0.1
servers:
  - url: https://erringly-fluxionary-sarah.ngrok-free.dev
paths:
  /images/icon/webhook:
    post:
      description: Webhook endpoint accept S3 ObjectCreatedEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - type
                - payload
                - source
                - meta
              properties:
                source:
                  type: string
                  example: aws.eventbridge
                type:
                  type: string
                  example: POST Object
                payload:
                  type: object
                  example:
                    bucket: some-bucket
                    key: some-key
                    etag: 3d4e4def-da26-476f-8975-4505c37a3df0
                    size: 53243
                meta:
                  type: object
                  example:
                    eventId: 42fdsa
      responses:
        "202":
          description: Accepted
        "400":
          description: Bad Request
        "404":
          description: Not Found
```
