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

# Rotate a signing secret

> Reissue the subscription's signing secret. The new secret is returned exactly once — only its hash is stored. For 24 hours deliveries are signed with both the old and the new secret (one `v1` entry each in the `SignSealShip-Signature` header), so your endpoint can cut over without dropping verification; after the overlap the old secret stops signing. Accepts the partner API key or the dashboard session cookie.



## OpenAPI

````yaml /api-reference/openapi.json post /api/partner/webhooks/{id}/rotate
openapi: 3.1.0
info:
  title: SignSealShip Partner API
  version: 1.0.0
  description: >-
    The SignSealShip partner API: create sign / notarize / ship orders, create
    Verified Closing Rooms, seal Closing Passports and Proof Passports, and
    manage webhooks. Partner endpoints authenticate with a bearer key
    (`Authorization: Bearer sss_pk_...`); public verification endpoints need no
    key — possession of the verify, room, or order code is the authorization.
    See the Guides for full prose, rate limits, and signature verification.
  contact:
    name: SignSealShip
    url: https://signsealship.com/partner
servers:
  - url: https://signsealship.com
    description: Production
security:
  - partnerKey: []
tags:
  - name: Onboarding
    description: Request partner API access.
  - name: Orders
    description: >-
      B2B order intake — create sign / notarize / ship orders, track them, and
      mint Stripe hosted checkout.
  - name: Sandbox
    description: >-
      Deterministic lifecycle simulation for TEST orders (sss_pk_test_ keys) —
      real state machine, real signed webhooks, no live money.
  - name: Launchpad & Analytics
    description: Your workspace's go-live checklist and tenant-scoped analytics.
  - name: Closing Rooms
    description: Verified Closing Rooms — one shareable page per transaction.
  - name: Closing Passports
    description: Room-level, hash-chained, KMS-sealed evidence manifests.
  - name: Proof Passport
    description: Seal and verify a single executed PDF.
  - name: Webhooks
    description: Signed event delivery and subscription management.
paths:
  /api/partner/webhooks/{id}/rotate:
    post:
      tags:
        - Webhooks
      summary: Rotate a signing secret
      description: >-
        Reissue the subscription's signing secret. The new secret is returned
        exactly once — only its hash is stored. For 24 hours deliveries are
        signed with both the old and the new secret (one `v1` entry each in the
        `SignSealShip-Signature` header), so your endpoint can cut over without
        dropping verification; after the overlap the old secret stops signing.
        Accepts the partner API key or the dashboard session cookie.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The subscription id.
      responses:
        '200':
          description: New secret issued — shown exactly once.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateWebhookResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Session not linked to a partner.
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - partnerKey: []
        - sessionCookie: []
components:
  schemas:
    RotateWebhookResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The rotated subscription id.
        secret:
          type: string
          description: >-
            The new signing secret, prefixed `sss_whsec_`. Shown exactly once —
            only its hash is stored. Deliveries are signed with both the old and
            the new secret for 24 hours, then the old secret stops signing.
        signatureHeader:
          type: string
          description: Header name carrying the HMAC signature on every delivery.
        previousSecretExpiresAt:
          type: string
          format: date-time
          description: >-
            Until this instant deliveries are signed with BOTH secrets — accept
            either during the overlap.
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Missing, malformed, revoked, or unknown partner key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: A valid partner API key is required.
    NotFound:
      description: Not found. Unknown codes read as a generic not-found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    partnerKey:
      type: http
      scheme: bearer
      bearerFormat: sss_pk_...
      description: 'Partner API key. Send as `Authorization: Bearer sss_pk_...`.'
    sessionCookie:
      type: apiKey
      in: cookie
      name: __Host-session
      description: >-
        SignSealShip dashboard login session cookie. Accepted by the
        `/api/partner/webhooks` management routes as an alternative to the
        partner key.

````