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

# Delete an endpoint

> Stops all deliveries to the endpoint and returns it as it was. Its delivery log stays available for the retention period.



## OpenAPI

````yaml /api-reference/specs/webhooks.json delete /endpoints/{endpointId}
openapi: 3.1.1
info:
  title: Webhooks Service
  description: >-
    Outbound webhooks for FlowPayroll: register an endpoint, subscribe to event
    types, manage signing secrets, inspect the delivery log and replay.
  version: v1
servers:
  - url: https://api.sandbox.flowpayroll.ai/v1/webhooks
security:
  - X-Auth-Token: []
tags:
  - name: Alert contacts
  - name: Delivery log
  - name: Endpoint subscriptions
  - name: Endpoints
  - name: Event types
  - name: Events
  - name: Replays
paths:
  /endpoints/{endpointId}:
    delete:
      tags:
        - Endpoints
      summary: Delete an endpoint
      description: >-
        Stops all deliveries to the endpoint and returns it as it was. Its
        delivery log stays available for the retention period.
      operationId: DeleteEndpoint
      parameters:
        - name: endpointId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponseResponseBody'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectResponseBody'
components:
  schemas:
    EndpointResponseResponseBody:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/EndpointResponseContentResponse'
        validationIssues:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssue'
      additionalProperties: false
    ObjectResponseBody:
      type: object
      properties:
        message:
          $ref: '#/components/schemas/MessageWithTokenResponse'
        content:
          $ref: '#/components/schemas/ObjectContentResponse'
        validationIssues:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssue'
      additionalProperties: false
    MessageWithTokenResponse:
      type: object
      properties:
        text:
          type: string
        token:
          type: string
        tokenArguments:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
      additionalProperties: false
    EndpointResponseContentResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/EndpointResponse'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssue:
      type: object
      properties:
        field:
          type: string
        reason:
          type: string
        reasonToken:
          type: string
        reasonTokenArguments:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
      additionalProperties: false
    ObjectContentResponse:
      type: object
      properties:
        data:
          type: 'null'
        metadata:
          $ref: '#/components/schemas/ContentMetadataResponse'
      additionalProperties: false
    ValidationIssueArgument:
      type: object
      properties:
        name:
          type: string
        value:
          type: 'null'
      additionalProperties: false
    EndpointResponse:
      required:
        - alertContacts
        - apiVersion
        - createdDate
        - customHeaderNames
        - destinationType
        - endpointId
        - eventTypes
        - excludedOrganisationIds
        - ordering
        - organisationIds
        - ownerId
        - payloadStyle
        - scope
        - status
        - updatedDate
        - url
      type: object
      properties:
        endpointId:
          type: string
        scope:
          enum:
            - Organisation
            - Customer
          type: string
        ownerId:
          type: string
        url:
          type: string
        description:
          type:
            - 'null'
            - string
        status:
          enum:
            - Paused
            - Active
            - DisabledBySystem
          type: string
        statusReason:
          type:
            - 'null'
            - string
        destinationType:
          enum:
            - Https
          type: string
        apiVersion:
          type: string
        payloadStyle:
          enum:
            - Minimal
            - Full
          type: string
        ordering:
          enum:
            - Unordered
            - Fifo
          type: string
        rateLimitPerSecond:
          type:
            - 'null'
            - integer
          format: int32
        eventTypes:
          type: array
          items:
            type: string
        organisationIds:
          type: array
          items:
            type: string
        excludedOrganisationIds:
          type: array
          items:
            type: string
        customHeaderNames:
          type: array
          items:
            type: string
        alertContacts:
          type: array
          items:
            type: string
        createdDate:
          type: string
        updatedDate:
          type: string
      additionalProperties: false
    ContentMetadataResponse:
      type: object
      properties:
        dateFormat:
          type: string
        dateTimeFormat:
          type: string
        paginationToken:
          type:
            - 'null'
            - string
          description: >-
            Cursor for the next page, present only when more results follow and
            null on the last page. Pass it back unmodified to continue; it is
            opaque and short-lived, so do not store it.
      additionalProperties: false
  securitySchemes:
    X-Auth-Token:
      type: apiKey
      description: FlowPayroll JWT (raw token, no Bearer prefix)
      name: X-Auth-Token
      in: header

````

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