> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doczilla.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook event

> Webhook event that is send to the provided webhook.

<ParamField path="id" type="string">
  Id of the job.
</ParamField>

<ParamField path="status" type="enum<string>">
  Status of the job.
</ParamField>

<ParamField path="signedUrlStatus" type="enum<string>">
  Status of the signed url.

  * `NOT_PROVIDED`, no `storage.preSignedUrl` was provided.
  * `UPLOADED`, `storage.preSignedUrl` was provided and file is uploaded.
  * `FAILED`, `storage.preSignedUrl` was provided but the upload failed.
</ParamField>

<ParamField path="fileUrl" type="string">
  <Info>`fileUrl` is only returned if the webhook was created with `returnType` set to `URL` and `storage.signedUrl` is
  is not used (unless `signedUrlStatus` returns `FAILED`)</Info>

  URL to the generated file. This url is valid for 1 hour, after that the file will be deleted from our storage.
</ParamField>

<ParamField path="fileBase64" type="string">
  <Info>`fileBase64` is only returned if the webhook was created with `returnType` set to `base64` and
  `storage.signedUrl` is not used!</Info>

  The generated file base64 encoded (will be null if `storage.signedUrl` is used).
</ParamField>

<ParamField path="metadata" type="object">
  The provided metadata when creating the job.
</ParamField>

<RequestExample>
  ```json Example theme={null}
  {
    "id": "ID",
    "status": "SUCCESS",
    "signedUrlStatus": "NOT_PROVIDED",
    "fileUrl": "<url to the file>",
    "fileBase64": "<base64 encoded file>",
    "metadata": {}
  }
  ```
</RequestExample>
