---
title: "Create or update space-wide webhook"
method: PUT
path: "/webhook"
---

# Create or update space-wide webhook

`PUT /webhook`

## Request

- Base URL: `https://api.space-ocr.com`
- URL: `https://api.space-ocr.com/webhook`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, uri, required
  - `active` boolean
  - `rotateSecret` boolean

## Response `200`

OK

- unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `413`: Payload Too Large
- `429`: Too Many Requests
- `500`: Internal Error
- `502`: OCR engine error (charge auto-refunded)
- `504`: OCR engine timeout (charge auto-refunded)

---

[API](https://skmtc.dev/space-ocr/apis/space-ocr-public-api.md) · [All operations](https://skmtc.dev/space-ocr/apis/space-ocr-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/space-ocr/apis/space-ocr-public-api/revisions/d7831cf1168e?raw)
