---
agentTools:
  projectIndex: https://hook0.readme.io/llms.txt
---

# Ingest an event

Send an event to your Hook0 application. Matching subscriptions will be triggered, if any.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Hook0 API",
    "description": "Core REST API of Hook0 — Open-Source Webhooks as a service for SaaS",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://app.hook0.com"
    }
  ],
  "paths": {
    "/api/v1/event/": {
      "post": {
        "tags": [
          "Events Management"
        ],
        "summary": "Ingest an event",
        "description": "Send an event to your Hook0 application. Matching subscriptions will be triggered, if any.",
        "operationId": "events.ingest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventPost"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IngestedEvent"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Conflict"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "biscuit": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "EventPost": {
        "type": "object",
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "event_type": {
            "type": "string"
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time"
          },
          "payload": {
            "type": "string"
          },
          "payload_content_type": {
            "type": "string"
          }
        },
        "required": [
          "application_id",
          "event_id",
          "event_type",
          "labels",
          "occurred_at",
          "payload",
          "payload_content_type"
        ]
      },
      "IngestedEvent": {
        "type": "object",
        "properties": {
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "application_id",
          "event_id",
          "received_at"
        ]
      }
    },
    "securitySchemes": {
      "biscuit": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Authentication using a Biscuit token (use the format `Bearer TOKEN`)"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 135,
      "2": 196,
      "3": 182,
      "4": 228,
      "5": 167,
      "6": 187,
      "7": 0,
      "8": 86,
      "9": 230,
      "10": 159,
      "11": 227
    }
  }
}
```