Revdoku Buckets API

Create, read, archive and delete buckets. A bucket is the project of one docs site (the dashboard calls it a site).

GitHub OpenAPI

Operations 7

GET /v1/buckets List buckets #
POST /v1/buckets Create a bucket #
GET /v1/buckets/{bucket_id} Read a bucket #
PATCH /v1/buckets/{bucket_id} Update a bucket title, description or metadata #
DELETE /v1/buckets/{bucket_id} Permanently delete an archived bucket #
POST /v1/buckets/{bucket_id}/archive Archive a bucket #
POST /v1/buckets/{bucket_id}/unarchive Unarchive a bucket #

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-buckets-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-buckets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Revdoku Buckets 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: Buckets
  description: Create, read, archive and delete buckets. A bucket is the project of one docs site (the dashboard calls it a site).
paths:
  /v1/buckets:
    get:
      operationId: listBuckets
      tags:
      - Buckets
      summary: List buckets
      description: Lists active buckets by default, newest first. Counts and pages cover only buckets this credential can access. Reads no email content.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Reason'
      - name: status
        in: query
        required: false
        schema:
          type: string
          enum:
          - active
          - archived
          - all
          default: active
      - name: q
        in: query
        required: false
        schema:
          type: string
          maxLength: 500
        description: Case-insensitive text in the bucket ID, or in the title or address when the key can see the address.
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/BucketList'
              example:
                success: true
                data:
                  buckets:
                  - id: bkt_example
                    account_id: acct_example
                    title: acme-orders
                    description: null
                    metadata: {}
                    metadata_version: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
                    email:
                      address: acme-orders@revdokumail.com
                      message_count: 1
                      unread_count: 1
                      last_received_at: '2026-10-11T12:05:00.000000Z'
                      receiving_enabled: true
                      sending_enabled: true
                    archived: false
                    archived_at: null
                    lock:
                      locked: false
                    storage_bytes: 51840
                    files_count: 3
                    version_id: bktrv_example
                    version_number: 0
                    created_at: '2026-10-11T12:00:00.000000Z'
                    updated_at: '2026-10-11T12:05:00.000000Z'
                    dashboard_url: https://app.revdoku.com/buckets/view?account_id=acct_example&id=bkt_example
                    archive:
                      allowed: true
                    unarchive:
                      allowed: false
                      blocked_reason: not_archived
                    delete:
                      allowed: false
                      blocked_reason: not_archived
                      required_action: archive_first
                      confirmation: delete bkt_example
                  counts:
                    active: 1
                    archived: 0
                    total: 1
                  pagination:
                    limit: 50
                    has_more: false
                    next_cursor: null
        default:
          $ref: '#/components/responses/Error'
    post:
      operationId: createBucket
      tags:
      - Buckets
      summary: Create a bucket
      description: 'Waits until the address can receive email. On revdokumail.com, email.username is the bucket''s name, with no suffix: lowercase letters, digits and single hyphens, 3 to 63 characters, also the name of its site. A name that another bucket uses as an address or a site address, or that another account used, returns EMAIL_ALREADY_EXISTS; your account can use its own earlier names again. Without email.username the address takes the title''s name when it is free, else two readable words. A custom domain takes the exact name. If confirmation does not finish, EMAIL_NOT_READY returns the created bucket_id in error.details: read that bucket instead of creating another. The title defaults to email.username; a title that another active bucket uses returns 409 BUCKET_TITLE_TAKEN. Its files come from a GitHub repository: connect one with the GitHub operations. Never retry a creation automatically.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                bucket:
                  $ref: '#/components/schemas/BucketCreate'
                account_id:
                  type: string
                  description: Select another granted account for this request.
                reason:
                  $ref: '#/components/schemas/ActionReason'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - bucket
                    properties:
                      bucket:
                        $ref: '#/components/schemas/Bucket'
              example:
                success: true
                data:
                  bucket:
                    id: bkt_example
                    account_id: acct_example
                    title: acme-orders
                    description: null
                    metadata: {}
                    metadata_version: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
                    email:
                      address: acme-orders@revdokumail.com
                      message_count: 0
                      unread_count: 0
                      last_received_at: null
                      receiving_enabled: true
                      sending_enabled: true
                    archived: false
                    archived_at: null
                    lock:
                      locked: false
                    storage_bytes: 0
                    files_count: 0
                    version_id: bktrv_example
                    version_number: 0
                    created_at: '2026-10-11T12:00:00.000000Z'
                    updated_at: '2026-10-11T12:00:00.000000Z'
                    dashboard_url: https://app.revdoku.com/buckets/view?account_id=acct_example&id=bkt_example
                    archive:
                      allowed: true
                    unarchive:
                      allowed: false
                      blocked_reason: not_archived
                    delete:
                      allowed: false
                      blocked_reason: not_archived
                      required_action: archive_first
                      confirmation: delete bkt_example
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Authentication required
                  request_id: req_example
        default:
          $ref: '#/components/responses/Error'
  /v1/buckets/{bucket_id}:
    get:
      operationId: getBucket
      tags:
      - Buckets
      summary: Read a bucket
      description: Reading never changes the bucket. Read address settings, emails and files through their own endpoints.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/Reason'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - bucket
                    properties:
                      bucket:
                        $ref: '#/components/schemas/Bucket'
              example:
                success: true
                data:
                  bucket:
                    id: bkt_example
                    account_id: acct_example
                    title: acme-orders
                    description: null
                    metadata: {}
                    metadata_version: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
                    email:
                      address: acme-orders@revdokumail.com
                      message_count: 1
                      unread_count: 1
                      last_received_at: '2026-10-11T12:05:00.000000Z'
                      receiving_enabled: true
                      sending_enabled: true
                    archived: false
                    archived_at: null
                    lock:
                      locked: false
                    storage_bytes: 51840
                    files_count: 3
                    version_id: bktrv_example
                    version_number: 0
                    created_at: '2026-10-11T12:00:00.000000Z'
                    updated_at: '2026-10-11T12:05:00.000000Z'
                    dashboard_url: https://app.revdoku.com/buckets/view?account_id=acct_example&id=bkt_example
                    archive:
                      allowed: true
                    unarchive:
                      allowed: false
                      blocked_reason: not_archived
                    delete:
                      allowed: false
                      blocked_reason: not_archived
                      required_action: archive_first
                      confirmation: delete bkt_example
        default:
          $ref: '#/components/responses/Error'
    patch:
      operationId: updateBucket
      tags:
      - Buckets
      summary: Update a bucket title, description or metadata
      description: metadata must be a JSON object. It replaces the stored object; {} clears it. Send expected_metadata_version from your last read; a stale value changes nothing and returns BUCKET_METADATA_CONFLICT. Titles are unique among active buckets; a used title returns 409 BUCKET_TITLE_TAKEN.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                bucket:
                  $ref: '#/components/schemas/BucketUpdate'
                expected_metadata_version:
                  type: string
                account_id:
                  type: string
                  description: Select another granted account for this request.
                reason:
                  $ref: '#/components/schemas/ActionReason'
              required:
              - bucket
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - bucket
                    properties:
                      bucket:
                        $ref: '#/components/schemas/Bucket'
        default:
          $ref: '#/components/responses/Error'
    delete:
      operationId: deleteBucket
      tags:
      - Buckets
      summary: Permanently delete an archived bucket
      description: Archive the bucket first. Send delete.confirmation from the bucket read after the user confirms. Large buckets finish deleting in the background.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                confirmation:
                  type: string
                account_id:
                  type: string
                  description: Select another granted account for this request.
                reason:
                  $ref: '#/components/schemas/ActionReason'
              required:
              - confirmation
      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}/archive:
    post:
      operationId: archiveBucket
      tags:
      - Buckets
      summary: Archive a bucket
      description: Archived buckets keep their files and emails and become read-only.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - bucket
                    properties:
                      bucket:
                        $ref: '#/components/schemas/Bucket'
        default:
          $ref: '#/components/responses/Error'
  /v1/buckets/{bucket_id}/unarchive:
    post:
      operationId: unarchiveBucket
      tags:
      - Buckets
      summary: Unarchive a bucket
      description: Requires bucket-admin permission. The bucket becomes writable again. If another active bucket has the same title, the title gets a number suffix. A bucket that is not archived returns BUCKET_NOT_ARCHIVED.
      parameters:
      - $ref: '#/components/parameters/BucketId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    required:
                    - bucket
                    properties:
                      bucket:
                        $ref: '#/components/schemas/Bucket'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 50
    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.
    Reason:
      name: reason
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/ActionReason'
    Cursor:
      name: cursor
      in: query
      required: false
      schema:
        type: string
      description: pagination.next_cursor from the previous page.
  schemas:
    BucketEmailOptions:
      type: object
      additionalProperties: false
      properties:
        username:
          type: string
          minLength: 1
          maxLength: 64
          description: 'On revdokumail.com, every plan: the bucket''s name, with no suffix and the same name as its site. Dots and underscores become hyphens; it needs 3 to 63 lowercase letters, digits and single hyphens (fewer than 3 returns EMAIL_NAME_INVALID). On a custom domain: the exact name before @, normalized to lowercase. Omit to use the title''s name or two readable words; blank/null is invalid. Unavailable names return EMAIL_ALREADY_EXISTS.'
        domain:
          type: string
          description: Built-in domain such as revdokumail.com on any plan, or a ready custom email domain owned by the selected account on an eligible plan. Omit for the default platform domain.
    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.
    ActionRequest:
      type: object
      description: Optional account selection and reason for an action without other input.
      properties:
        account_id:
          type: string
          description: Select another granted account for this request.
        reason:
          $ref: '#/components/schemas/ActionReason'
    FileActor:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        email:
          type: string
    BucketCreate:
      type: object
      additionalProperties: false
      properties:
        title:
          type: string
          maxLength: 255
          description: Optional title. Defaults to email.username as given, or to the generated name. A title that another active bucket uses returns 409 BUCKET_TITLE_TAKEN.
        description:
          type: string
          maxLength: 2000
        metadata:
          type: object
          additionalProperties: true
        email:
          $ref: '#/components/schemas/BucketEmailOptions'
    BucketAction:
      type: object
      properties:
        allowed:
          type: boolean
        blocked_reason:
          type: string
        required_action:
          type: string
        confirmation:
          type: string
          description: 'Delete only: send this value as confirmation in DELETE /v1/buckets/{bucket_id} after the user confirms.'
      required:
      - allowed
    FileKey:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        token_type:
          type: string
    BucketLock:
      type: object
      required:
      - locked
      properties:
        locked:
          type: boolean
        locked_until:
          type: string
          format: date-time
        kind:
          type: string
          description: For example bucket_delete while a permanent delete runs.
        message:
          type: string
        progress:
          type: object
          additionalProperties: true
        locked_by:
          $ref: '#/components/schemas/FileActor'
        locked_by_api_key:
          $ref: '#/components/schemas/FileKey'
    BucketUpdate:
      type: object
      additionalProperties: false
      properties:
        title:
          type:
          - string
          - 'null'
          maxLength: 255
          description: New title. An empty string or null clears it. A title that another active bucket uses returns 409 BUCKET_TITLE_TAKEN.
        description:
          type: string
          maxLength: 2000
        metadata:
          type: object
          additionalProperties: true
    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
    BucketEmail:
      type: object
      description: The bucket's email address and whether it can receive and send now. Counts read the email index without reading content.
      required:
      - message_count
      - unread_count
      - last_received_at
      - receiving_enabled
      - sending_enabled
      properties:
        address:
          type: string
          description: Primary address. Present when the credential has write access to the bucket. Show it after the title.
        message_count:
          type:
          - integer
          - 'null'
          format: int64
          minimum: 0
          description: Emails currently stored. Null while the email index is being prepared.
        unread_count:
          type:
          - integer
          - 'null'
          format: int64
          minimum: 0
          description: Stored emails with shared unread status. Null while the email index is being prepared.
        last_received_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Receipt time of the latest saved email; null before the first email.
        receiving_enabled:
          type: boolean
          description: Whether the address can receive email now.
        receiving_blocked_reason:
          type: string
          description: Why receiving is unavailable. Omitted when receiving_enabled is true.
        sending_enabled:
          type: boolean
          description: Whether the bucket can send replies now.
        sending_blocked_reason:
          type: string
          description: Why sending is unavailable. Omitted when sending_enabled is true.
    BucketCounts:
      type: object
      description: Exact authorized bucket totals after query filtering, before status filtering and pagination.
      properties:
        active:
          type: integer
          minimum: 0
          format: int64
        archived:
          type: integer
          minimum: 0
          format: int64
        total:
          type: integer
          minimum: 0
          format: int64
      required:
      - active
      - archived
      - total
    BucketList:
      type: object
      required:
      - buckets
      - counts
      - pagination
      properties:
        buckets:
          type: array
          items:
            $ref: '#/components/schemas/Bucket'
        counts:
          $ref: '#/components/schemas/BucketCounts'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Pagination:
      type: object
      description: 'One page of a list. Request the next page with cursor=next_cursor and the same filters. Cursors are opaque strings: do not build or decode them.'
      required:
      - limit
      - has_more
      - next_cursor
      properties:
        limit:
          type: integer
          minimum: 1
          maximum: 200
        has_more:
          type: boolean
          description: True when another page exists.
        next_cursor:
          type:
          - string
          - 'null'
          description: Cursor for the next page; null on the last page. Email lists always return a cursor so that you can poll for new mail.
    Bucket:
      type: object
      description: 'A bucket: the project of one docs site. It holds the files, the published site, the site analytics, and the support email address with its tickets. The dashboard calls it a site. Name it with title (the address part of email.address when title is null). Use id in API calls.'
      required:
      - id
      - account_id
      - email
      - archived
      - version_id
      - version_number
      - metadata_version
      - archive
      - unarchive
      - delete
      properties:
        id:
          type: string
          pattern: ^bkt_
        account_id:
          type: string
        title:
          type:
          - string
          - 'null'
          maxLength: 255
          description: Bucket title chosen by people. Defaults to the email username given at creation. Null when unset or when the caller cannot see email.address.
        description:
          type:
          - string
          - 'null'
        metadata:
          type: object
          additionalProperties: true
          description: Your application data. PATCH replaces the whole object.
        metadata_version:
          type: string
          description: Send as expected_metadata_version on PATCH. Changes only when description or metadata changes.
        email:
          $ref: '#/components/schemas/BucketEmail'
        archived:
          type: boolean
        archived_at:
          type:
          - string
          - 'null'
          format: date-time
        lock:
          $ref: '#/components/schemas/BucketLock'
        storage_bytes:
          type: integer
          format: int64
          minimum: 0
        files_count:
          type: integer
          format: int64
          minimum: 0
          description: Current files.
        version_id:
          type:
          - string
          - 'null'
          description: Current bucket file-tree version. It changes when a sync copies new files from GitHub.
        version_number:
          type: integer
          minimum: 0
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
        dashboard_url:
          type: string
          format: uri
          description: Opens the bucket for signed-in members. It does not grant access.
        archive:
          $ref: '#/components/schemas/BucketAction'
        unarchive:
          $ref: '#/components/schemas/BucketAction'
        delete:
          $ref: '#/components/schemas/BucketAction'
    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'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer YOUR_API_KEY. Create a key in the dashboard under Account → Access.'