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

# Archive unused webhook

> Required scope: webhooks:archive. Sandbox only; app allowlists and requester authority also apply.



## OpenAPI

````yaml /openapi.json post /api/v1/webhooks/{id}/archive
openapi: 3.0.3
info:
  title: DekaSign integration and session API
  version: '2026-10-28'
  description: >-
    Production APIs require an active paid plan, Production app/key, allowed
    scopes and enabled capabilities. Some design-management operations remain
    sandbox-only. Template authoring and human approval decisions are not
    delegated to API keys. Session routes use separate identity. This
    specification grants no access or capability activation.
servers:
  - url: https://{workspace}.dekasign.com
    description: Use the organization workspace authorized for your integration app.
    variables:
      workspace:
        default: your-workspace
security: []
paths:
  /api/v1/webhooks/{id}/archive:
    post:
      tags:
        - webhooks
      summary: Archive unused webhook
      description: >-
        Required scope: webhooks:archive. Sandbox only; app allowlists and
        requester authority also apply.
      operationId: post_webhooks_id_archive
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Workspace-scoped identifier.
        - name: X-Dekasign-Environment
          in: header
          required: true
          schema:
            type: string
            enum:
              - sandbox
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 8
            maxLength: 160
            pattern: ^[!-~]+$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                expected_version:
                  type: integer
                  minimum: 1
                reason:
                  type: string
                  minLength: 5
                  maxLength: 500
              required:
                - expected_version
                - reason
              additionalProperties: false
      responses:
        '200':
          description: >-
            Operation result. Read fields vary by endpoint and deployment; see
            narrative guide.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid operation or layout.
        '401':
          description: Invalid or expired credential/session.
        '403':
          description: Scope, environment, tenant or authority denied.
        '404':
          description: Not found or outside app scope.
        '409':
          description: Stale version, active usage or idempotency conflict.
        '422':
          description: Invalid schema or required idempotency key.
        '429':
          description: Rate limited.
        '503':
          description: Sandbox disabled or operation temporarily unavailable.
      security:
        - SandboxBearer: []
components:
  securitySchemes:
    SandboxBearer:
      type: http
      scheme: bearer
      description: Sandbox dks_test_ key, server-side only.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.