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

# Delete webhook

> Delete a webhook endpoint, stopping all event notifications to that URL.

**Use this to:**
- Remove outdated or compromised endpoints
- Manage your integrations and event subscriptions
    



## OpenAPI

````yaml /api-reference/openapi.json delete /api/webhooks/{id}
openapi: 3.0.0
info:
  title: Teleship
  description: >

    Teleship is a leading cross-border logistics provider offering seamless
    global commerce solutions through our comprehensive API.


    With Teleship's API, developers can integrate our cross-border shipping
    services, trade engine, and logistics solutions directly into their
    applications.


    **Key Features:**

    - Cross-border shipping solutions for international commerce

    - Real-time shipping rates and delivery estimates

    - End-to-end shipment tracking with detailed status updates

    - Automated customs compliance and product classification

    - Real-time event notifications through webhooks


    **Why Teleship?**

    - API-first: Developer-friendly integration with comprehensive documentation

    - Enterprise-ready: Built for businesses of all sizes

    - Secure: Enterprise-grade security and compliance

    - Integrated: Seamless connection with e-commerce, ERP, and fulfillment
    systems


    Start shipping globally with Teleship's powerful cross-border logistics API.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.teleship.com
security: []
tags: []
paths:
  /api/webhooks/{id}:
    delete:
      tags:
        - Shipping Services
      summary: Delete webhook
      description: |-
        Delete a webhook endpoint, stopping all event notifications to that URL.

        **Use this to:**
        - Remove outdated or compromised endpoints
        - Manage your integrations and event subscriptions
            
      operationId: deleteWebhook
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDto'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessagesDto'
        '404':
          description: Webhook not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessagesDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseMessagesDto'
      security:
        - bearer: []
components:
  schemas:
    WebhookDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the object.
        url:
          type: string
          description: The URL of the webhook endpoint.
        description:
          type: string
          description: An optional description of what the webhook is used for.
        enabledEvents:
          type: array
          description: The list of events to enable for this endpoint.
          items:
            type: string
            enum:
              - '*'
              - label.generated
              - shipment.updated
              - manifest.created
              - document.uploaded
              - taxes.collection.ready
              - taxes.collection.updated
              - taxes.collection.cancelled
              - taxes.collection.exception
              - product.classification.complete
              - product.updated
        secret:
          type: string
          description: >-
            The endpoint’s secret, used to generate webhook signatures. Only
            returned at creation.
        enabled:
          type: boolean
          description: The status of the webhook. It can be enabled or disabled.
        metadata:
          type: object
          description: >-
            Set of key-value pairs that you can attach to an object. This can be
            useful for storing additional information about the object in a
            structured format.
      required:
        - id
        - url
        - enabledEvents
        - secret
        - enabled
    ResponseMessagesDto:
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: '#/components/schemas/ErrorResponseDto'
      required:
        - messages
    ErrorResponseDto:
      type: object
      properties:
        code:
          type: number
        level:
          type: string
          enum:
            - error
            - warning
            - info
          example: error
          description: Error level
          default: error
        timestamp:
          format: date-time
          type: string
          example: '2024-01-01T00:00:00.00Z'
        message:
          type: string
          example: An error occurred
        details:
          example:
            - Missing required field
          type: array
          items:
            type: string
      required:
        - code
        - level
        - timestamp
        - message
        - details
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````