Revdoku Events API

Ticket events of every channel: one signed webhook per bucket and live WebSocket subscriptions.

GitHub OpenAPI

Operations 4

GET /v1/buckets/{bucket_id}/webhook Read the webhook #
PUT /v1/buckets/{bucket_id}/webhook Set the webhook #
DELETE /v1/buckets/{bucket_id}/webhook Remove the webhook #
GET /v1/buckets/{bucket_id}/events/subscription Get a live event subscription ticket #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/revdoku-com:revdoku-com-events-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

revdoku-com-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Revdoku Events API
  version: 2.0.0
  description: 'A bucket is the project of one docs site: its files, the published site, the site analytics, and the support email address with its tickets. Create buckets, publish sites, read and reply to support requests and store files. The dashboard calls a bucket a site. Guide: https://docs.revdoku.com/api/. Create an account at https://app.revdoku.com/users/sign_up.'
servers:
- url: https://api.revdoku.com
  description: Revdoku application API
security:
- bearerAuth: []
tags:
- name: Events
  description: 'Ticket events of every channel: one signed webhook per bucket and live WebSocket subscriptions.'
paths:
  /v1/buckets/{bucket_id}/webhook:
    get:
      operationId: getWebhook
      tags:
      - Events
      summary: Read the webhook
      description: Requires bucket-admin permission. webhook is null when no webhook is set. The signing secret is never returned here.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - webhook
                    properties:
                      webhook:
                        anyOf:
                        - $ref: '#/components/schemas/Webhook'
                        - type: 'null'
        default:
          $ref: '#/components/responses/Error'
    put:
      operationId: setWebhook
      tags:
      - Events
      summary: Set the webhook
      description: 'Requires bucket-admin permission and a public HTTPS URL. The webhook receives the bucket''s ticket events (TicketEvent): ticket.created and ticket.message_received, for every channel. A new URL or rotate_secret=true creates a new signing secret, returns it once and cancels pending deliveries. The same URL without rotate_secret returns the webhook without a secret.'
      parameters:
      - $ref: '#/components/parameters/BucketId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                webhook_url:
                  type: string
                  format: uri
                  maxLength: 2048
                rotate_secret:
                  type: boolean
                  default: false
                account_id:
                  type: string
                  description: Select another granted account for this request.
                reason:
                  $ref: '#/components/schemas/ActionReason'
              required:
              - webhook_url
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - webhook
                    properties:
                      webhook:
                        $ref: '#/components/schemas/WebhookWithSecret'
        default:
          $ref: '#/components/responses/Error'
    delete:
      operationId: deleteWebhook
      tags:
      - Events
      summary: Remove the webhook
      description: Cancels queued deliveries. A delivery already in progress can finish. Returns the bucket ID, also when no webhook is set.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/DeleteResult'
        default:
          $ref: '#/components/responses/Error'
  /v1/buckets/{bucket_id}/events/subscription:
    get:
      operationId: getEventSubscription
      tags:
      - Events
      summary: Get a live event subscription ticket
      description: Requires bucket read permission. Connect to websocket_url with subscription_token=TOKEN within 60 seconds, then subscribe to BucketEventsChannel with account_id and bucket_id. Each event is a TicketEvent. Catch up with GET /v1/buckets/{bucket_id}/tickets and updated_after after every connect.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - subscription
                    properties:
                      subscription:
                        $ref: '#/components/schemas/EventSubscription'
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    ApiError:
      type: object
      properties:
        success:
          const: false
        error:
          type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error identifier. See ErrorCode for the documented values. Invalid input always returns INVALID_ARGUMENT with HTTP 422.
            message:
              type: string
              minLength: 1
            details:
              oneOf:
              - type: object
                additionalProperties: true
              - type: array
                items:
                  type: object
                  properties:
                    field:
                      type: string
                    message:
                      type: string
                  required:
                  - field
                  - message
            request_id:
              type: string
            docs_url:
              type: string
              format: uri
            timestamp:
              type: string
              format: date-time
            recoverable:
              type: boolean
            next_action:
              type: string
            browser_url:
              type: string
          required:
          - code
          - message
      required:
      - success
      - error
      not:
        anyOf:
        - required:
          - data
        - required:
          - error_message
    EventSubscription:
      type: object
      required:
      - token
      - expires_in
      - channel
      - account_id
      - bucket_id
      - websocket_url
      properties:
        token:
          type: string
        expires_in:
          type: integer
          const: 60
        channel:
          type: string
          const: BucketEventsChannel
        account_id:
          type: string
        bucket_id:
          type: string
        websocket_url:
          type: string
          format: uri
          description: Base WebSocket endpoint. Append subscription_token as a query parameter.
    WebhookWithSecret:
      type: object
      required:
      - url
      - events
      properties:
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
            enum:
            - ticket.created
            - ticket.message_received
          description: The event types that the webhook receives.
        signing_secret:
          type: string
          description: 'Returned once, when this request issues a secret: a new URL or rotate_secret=true. Store it to verify signatures.'
    ActionReason:
      type:
      - string
      - 'null'
      maxLength: 2000
      description: Optional purpose for this action. AI agents should explain intentional reads and changes when known; omit when unknown. Do not include secrets, file contents, or transcripts.
    Webhook:
      type: object
      required:
      - url
      - events
      properties:
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
            enum:
            - ticket.created
            - ticket.message_received
          description: The event types that the webhook receives.
    DeleteResult:
      type: object
      required:
      - deleted
      - id
      properties:
        deleted:
          type: boolean
          const: true
        id:
          type: string
          description: ID of the deleted resource. A webhook delete returns the bucket ID.
  responses:
    Error:
      description: 'Request failed. See error.code. Any 429 or 503 response with Retry-After (for example 503 EMAIL_LABELING_PENDING or 503 EMAIL_INDEX_BUILDING): wait that many seconds, then try the request again. 429 EMAIL_SEND_RATE_LIMITED has no Retry-After. Never retry EMAIL_LOOP_DETECTED.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  parameters:
    BucketId:
      name: bucket_id
      in: path
      required: true
      schema:
        type: string
        pattern: ^bkt_
    AccountId:
      name: account_id
      in: query
      required: false
      schema:
        type: string
      description: Select another granted account for this request. Omit to use the credential default. In JSON bodies, send account_id as a body field instead.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer YOUR_API_KEY. Create a key in the dashboard under Account → Access.'