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

# Rotate a webhook signing secret

> Returns a new secret and invalidates the old one immediately. There is no overlap window, so update the receiver before the next event fires. Only for `webhook` destinations. Requires scope `write` and an `Idempotency-Key`.



## OpenAPI

````yaml /openapi.json post /v1/integrations/{id}/rotate-secret
openapi: 3.1.0
info:
  title: Ziplined API
  version: 1.0.0
  description: >-
    LinkedIn engagement data about people, companies and posts. The workspace
    comes from the credential; lists page with `limit` and `next_cursor`.
servers:
  - url: https://api.ziplined.io
    description: Production
security: []
tags:
  - name: People
    description: The people in your workspace, and what you sent them.
  - name: Companies
    description: The companies those people work at.
  - name: Posts
    description: Your own posts and their numbers.
  - name: Engagements
    description: One act by one person on one post.
  - name: Insights
    description: Period against period, and the series behind it.
  - name: Audiences
    description: Named lists of people, and their membership.
  - name: Sources
    description: What your radar collects from.
  - name: Integrations
    description: Webhook and Slack destinations, and routing rules.
paths:
  /v1/integrations/{id}/rotate-secret:
    post:
      tags:
        - Integrations
      summary: Rotate a webhook signing secret
      description: >-
        Returns a new secret and invalidates the old one immediately. There is
        no overlap window, so update the receiver before the next event fires.
        Only for `webhook` destinations. Requires scope `write` and an
        `Idempotency-Key`.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
        - schema:
            type: string
            minLength: 1
            maxLength: 255
            description: >-
              Any client-chosen key, a uuid for example. Sending the same
              request twice with the same key has one effect and returns the
              same response twice; the same key with a different body returns
              409.
            example: 3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
          required: true
          description: >-
            Any client-chosen key, a uuid for example. Sending the same request
            twice with the same key has one effect and returns the same response
            twice; the same key with a different body returns 409.
          name: idempotency-key
          in: header
      responses:
        '200':
          description: The destination and its new secret, shown once.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/IssuedIntegration'
                required:
                  - data
        '400':
          description: A filter value is invalid, or this resource has no such filter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Not included in this plan, or a usage cap was exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Wrong workspace, or the credential lacks the required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or it does not belong to this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The same `Idempotency-Key` was used for a different request, or that
            request is still in flight.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    IssuedIntegration:
      type: object
      properties:
        secret:
          type: string
          nullable: true
          description: >-
            The webhook signing secret, shown exactly once. Null for a provider
            that has none, and null in the repeated answer to the same
            `Idempotency-Key`.
          example: whsec_…
        integration:
          $ref: '#/components/schemas/Integration'
      required:
        - secret
        - integration
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    Integration:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
          example: slack
        status:
          type: string
          enum:
            - active
            - paused
            - error
        config_summary:
          type: object
          properties:
            host:
              type: string
              nullable: true
          required:
            - host
          additionalProperties: false
          description: Where this destination points. Never the URL itself.
        created_at:
          type: string
      required:
        - id
        - provider
        - status
        - config_summary
        - created_at
      additionalProperties: false

````

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