Svix Ingest Endpoint API

Configure where Svix Ingest sends messages.

Operations 11

GET /ingest/api/v1/source/{source_id}/endpoint List Ingest Endpoints #
POST /ingest/api/v1/source/{source_id}/endpoint Create Ingest Endpoint #
GET /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id} Get Ingest Endpoint #
PUT /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id} Upsert Ingest Endpoint #
DELETE /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id} Delete Ingest Endpoint #
GET /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret Get Ingest Endpoint Secret #
POST /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret/rotate Rotate Ingest Endpoint Secret #
GET /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers Get Ingest Endpoint Headers #
PUT /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers Set Ingest Endpoint Headers #
GET /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation Get Ingest Endpoint Transformation #
PATCH /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation Patch Ingest Endpoint Transformation #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/svix-ingest-endpoint-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

svix-ingest-endpoint-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Svix Ingest Endpoint API
  description: 'Welcome to the Svix API documentation!


    Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/)


    # Introduction


    This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com).


    ## Main concepts


    In Svix you have four important entities you will be interacting with:


    - `messages`: these are the webhooks being sent. They can have contents and a few other properties.

    - `application`: this is where `messages` are sent to. Usually you want to create one application for each user on your platform.

    - `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type).

    - `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint.



    ## Authentication


    Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys).


    <SecurityDefinitions />



    ## Code samples


    The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/).



    ## Idempotency


    Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response.


    To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Your idempotency key should not begin with the string `auto_`, which is reserved for internal use by the client libraries.


    Svix''s idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result for a period of up to 12 hours.


    Please note that idempotency is only supported for `POST` requests.



    ## Cross-Origin Resource Sharing


    This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.

    '
  version: 1.922.0
  x-logo:
    url: https://www.svix.com/static/img/brand-padded.svg
    altText: Svix Logo
servers:
- url: https://api.eu.svix.com
  description: The Svix EU region
- url: https://api.us.svix.com
  description: The Svix US region
- url: https://api.ca.svix.com
  description: The Svix Canada region
- url: https://api.au.svix.com
  description: The Svix Australia region
- url: https://api.in.svix.com
  description: The Svix India region
tags:
- name: Ingest Endpoint
  description: Configure where Svix Ingest sends messages.
paths:
  /ingest/api/v1/source/{source_id}/endpoint:
    get:
      tags:
      - Ingest Endpoint
      summary: List Ingest Endpoints
      description: List ingest endpoints.
      operationId: v1.ingest.endpoint.list
      parameters:
      - in: path
        name: source_id
        description: The Source's ID or UID.
        required: true
        schema:
          description: The Source's ID or UID.
          type: string
          maxLength: 60
          minLength: 1
          example: unique-identifier
        style: simple
      - in: query
        name: limit
        description: Limit the number of returned items
        schema:
          description: Limit the number of returned items
          type: integer
          format: uint64
          maximum: 250
          minimum: 1.0
        style: form
      - in: query
        name: iterator
        description: The iterator returned from a prior invocation
        schema:
          description: The iterator returned from a prior invocation
          type: string
          maxLength: 30
          minLength: 30
          pattern: ^ep_[A-Za-z0-9]{27}$
          nullable: true
          example: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2
        style: form
      - in: query
        name: order
        description: The sorting order of the returned items
        schema:
          description: The sorting order of the returned items
          $ref: '#/components/schemas/Ordering'
          nullable: true
        style: form
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponse_IngestEndpointOut_'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
      security:
      - HTTPBearer: []
      x-codeSamples:
      - lang: TypeScript
        label: JavaScript
        source: const response = await svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq");
      - lang: TypeScript
        label: TypeScript
        source: const response = await svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq");
      - lang: Python
        label: Python
        source: "response = svix.ingest.endpoint.list(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n)"
      - lang: Python
        label: Python (Async)
        source: "response = await svix.ingest.endpoint.list(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n)"
      - lang: Go
        label: Go
        source: response, err := svix.Ingest.Endpoint.List(ctx, "src_31Dc4Mx7vQVLfxFgArIhq", nil)
      - lang: Kotlin
        label: Kotlin
        source: val response = svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq")
      - lang: Java
        label: Java
        source: var response = svix.getIngest().getEndpoint().list("src_31Dc4Mx7vQVLfxFgArIhq");
      - lang: Ruby
        label: Ruby
        source: response = svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq")
      - lang: Rust
        label: Rust
        source: "let response = svix\n    .ingest()\n    .endpoint()\n    .list(\"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(), None)\n    .await?;"
      - lang: C#
        label: C#
        source: var response = svix.Ingest.Endpoint.List("src_31Dc4Mx7vQVLfxFgArIhq");
      - lang: PHP
        label: PHP
        source: "$response = $svix->ingest->endpoint->list(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\"\n);"
      - lang: Shell
        label: CLI
        source: svix ingest endpoint list "src_31Dc4Mx7vQVLfxFgArIhq"
      - lang: Shell
        label: cURL
        source: "curl -X 'GET' \\\n  'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint' \\\n  -H 'Authorization: Bearer AUTH_TOKEN' \\\n  -H 'Accept: application/json'"
    post:
      tags:
      - Ingest Endpoint
      summary: Create Ingest Endpoint
      description: Create an ingest endpoint.
      operationId: v1.ingest.endpoint.create
      parameters:
      - in: path
        name: source_id
        description: The Source's ID or UID.
        required: true
        schema:
          description: The Source's ID or UID.
          type: string
          maxLength: 60
          minLength: 1
          example: unique-identifier
        style: simple
      - in: header
        name: idempotency-key
        description: The request's idempotency key
        schema:
          type: string
        style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestEndpointIn'
        required: true
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestEndpointOut'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
      security:
      - HTTPBearer: []
      x-codeSamples:
      - lang: TypeScript
        label: JavaScript
        source: "const response = await svix.ingest.endpoint.create(\"src_31Dc4Mx7vQVLfxFgArIhq\", {\n  url: \"https://example.com/webhook/\",\n  description: \"An example endpoint name\",\n  throttleRate: 1,\n  uid: \"unique-identifier\",\n  disabled: true,\n  secret: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n  metadata: {},\n});"
      - lang: TypeScript
        label: TypeScript
        source: "const response = await svix.ingest.endpoint.create(\"src_31Dc4Mx7vQVLfxFgArIhq\", {\n  url: \"https://example.com/webhook/\",\n  description: \"An example endpoint name\",\n  throttleRate: 1,\n  uid: \"unique-identifier\",\n  disabled: true,\n  secret: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n  metadata: {},\n});"
      - lang: Python
        label: Python
        source: "response = svix.ingest.endpoint.create(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    IngestEndpointIn(\n        url=\"https://example.com/webhook/\",\n        description=\"An example endpoint name\",\n        throttle_rate=1,\n        uid=\"unique-identifier\",\n        disabled=True,\n        secret=\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n        metadata={},\n    ),\n)"
      - lang: Python
        label: Python (Async)
        source: "response = await svix.ingest.endpoint.create(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    IngestEndpointIn(\n        url=\"https://example.com/webhook/\",\n        description=\"An example endpoint name\",\n        throttle_rate=1,\n        uid=\"unique-identifier\",\n        disabled=True,\n        secret=\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n        metadata={},\n    ),\n)"
      - lang: Go
        label: Go
        source: "response, err := svix.Ingest.Endpoint.Create(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\tIngestEndpointIn{\n\t\tUrl:          \"https://example.com/webhook/\",\n\t\tDescription:  new(\"An example endpoint name\"),\n\t\tThrottleRate: new(uint16(1)),\n\t\tUid:          new(\"unique-identifier\"),\n\t\tDisabled:     new(true),\n\t\tSecret:       new(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\"),\n\t\tMetadata:     nil,\n\t},\n\tnil,\n)"
      - lang: Kotlin
        label: Kotlin
        source: "val response =\n    svix.ingest.endpoint.create(\n        \"src_31Dc4Mx7vQVLfxFgArIhq\",\n        IngestEndpointIn(\n            url = \"https://example.com/webhook/\",\n            description = \"An example endpoint name\",\n            throttleRate = 1u,\n            uid = \"unique-identifier\",\n            disabled = true,\n            secret = \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n            metadata = mapOf(),\n        ),\n    )"
      - lang: Java
        label: Java
        source: "var response = svix.getIngest()\n        .getEndpoint()\n        .create(\n            \"src_31Dc4Mx7vQVLfxFgArIhq\",\n            new IngestEndpointIn()\n                .url(URI.create(\"https://example.com/webhook/\"))\n                .description(\"An example endpoint name\")\n                .throttleRate(1L)\n                .uid(\"unique-identifier\")\n                .disabled(true)\n                .secret(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\")\n                .metadata(Map.of()));"
      - lang: Ruby
        label: Ruby
        source: "response = svix\n  .ingest\n  .endpoint\n  .create(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    {\n      url: \"https://example.com/webhook/\",\n      description: \"An example endpoint name\",\n      throttleRate: 1,\n      uid: \"unique-identifier\",\n      disabled: true,\n      secret: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n      metadata: {}\n    }\n  )"
      - lang: Rust
        label: Rust
        source: "let response = svix\n    .ingest()\n    .endpoint()\n    .create(\n        \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n        IngestEndpointIn {\n            url: \"https://example.com/webhook/\".to_string(),\n            description: Some(\"An example endpoint name\".to_string()),\n            throttle_rate: Some(1),\n            uid: Some(\"unique-identifier\".to_string()),\n            disabled: Some(true),\n            secret: Some(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\".to_string()),\n            metadata: Some(HashMap::new()),\n        },\n        None,\n    )\n    .await?;"
      - lang: C#
        label: C#
        source: "var response = svix.Ingest.Endpoint.Create(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    new IngestEndpointIn\n    {\n        Url = \"https://example.com/webhook/\",\n        Description = \"An example endpoint name\",\n        ThrottleRate = 1,\n        Uid = \"unique-identifier\",\n        Disabled = true,\n        Secret = \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n        Metadata = [],\n    }\n);"
      - lang: PHP
        label: PHP
        source: "$response = $svix->ingest->endpoint->create(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    IngestEndpointIn::create(\n        url: \"https://example.com/webhook/\"\n    )\n    ->withDescription(\"An example endpoint name\")\n    ->withThrottleRate(1)\n    ->withUid(\"unique-identifier\")\n    ->withDisabled(true)\n    ->withSecret(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\")\n    ->withMetadata([])\n);"
      - lang: Shell
        label: CLI
        source: "svix ingest endpoint create \"src_31Dc4Mx7vQVLfxFgArIhq\" '{\n    \"url\": \"https://example.com/webhook/\",\n    \"description\": \"An example endpoint name\",\n    \"throttleRate\": 1,\n    \"uid\": \"unique-identifier\",\n    \"disabled\": true,\n    \"secret\": \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n    \"metadata\": {}\n  }'"
      - lang: Shell
        label: cURL
        source: "curl -X 'POST' \\\n  'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint' \\\n  -H 'Authorization: Bearer AUTH_TOKEN' \\\n  -H 'Accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"url\": \"https://example.com/webhook/\",\n    \"description\": \"An example endpoint name\",\n    \"throttleRate\": 1,\n    \"uid\": \"unique-identifier\",\n    \"disabled\": true,\n    \"secret\": \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n    \"metadata\": {}\n  }'"
  /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}:
    get:
      tags:
      - Ingest Endpoint
      summary: Get Ingest Endpoint
      description: Get an ingest endpoint.
      operationId: v1.ingest.endpoint.get
      parameters:
      - in: path
        name: source_id
        description: The Source's ID or UID.
        required: true
        schema:
          description: The Source's ID or UID.
          type: string
          maxLength: 60
          minLength: 1
          example: unique-identifier
        style: simple
      - in: path
        name: endpoint_id
        description: The Endpoint's ID or UID.
        required: true
        schema:
          description: The Endpoint's ID or UID.
          type: string
          maxLength: 256
          minLength: 1
          pattern: ^[a-zA-Z0-9\-_.]+$
          example: unique-identifier
        style: simple
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestEndpointOut'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
      security:
      - HTTPBearer: []
      x-codeSamples:
      - lang: TypeScript
        label: JavaScript
        source: "const response = await svix.ingest.endpoint.get(\n  \"src_31Dc4Mx7vQVLfxFgArIhq\",\n  \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);"
      - lang: TypeScript
        label: TypeScript
        source: "const response = await svix.ingest.endpoint.get(\n  \"src_31Dc4Mx7vQVLfxFgArIhq\",\n  \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);"
      - lang: Python
        label: Python
        source: "response = svix.ingest.endpoint.get(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)"
      - lang: Python
        label: Python (Async)
        source: "response = await svix.ingest.endpoint.get(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)"
      - lang: Go
        label: Go
        source: "response, err := svix.Ingest.Endpoint.Get(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)"
      - lang: Kotlin
        label: Kotlin
        source: "val response =\n    svix.ingest.endpoint.get(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\")"
      - lang: Java
        label: Java
        source: "var response = svix.getIngest()\n        .getEndpoint()\n        .get(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\");"
      - lang: Ruby
        label: Ruby
        source: response = svix.ingest.endpoint.get("src_31Dc4Mx7vQVLfxFgArIhq", "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1")
      - lang: Rust
        label: Rust
        source: "let response = svix\n    .ingest()\n    .endpoint()\n    .get(\n        \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n        \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n    )\n    .await?;"
      - lang: C#
        label: C#
        source: "var response = svix.Ingest.Endpoint.Get(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);"
      - lang: PHP
        label: PHP
        source: "$response = $svix->ingest->endpoint->get(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);"
      - lang: Shell
        label: CLI
        source: svix ingest endpoint get "src_31Dc4Mx7vQVLfxFgArIhq" "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1"
      - lang: Shell
        label: cURL
        source: "curl -X 'GET' \\\n  'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1' \\\n  -H 'Authorization: Bearer AUTH_TOKEN' \\\n  -H 'Accept: application/json'"
    put:
      tags:
      - Ingest Endpoint
      summary: Upsert Ingest Endpoint
      description: Create or update an ingest endpoint.
      operationId: v1.ingest.endpoint.update
      parameters:
      - in: path
        name: source_id
        description: The Source's ID or UID.
        required: true
        schema:
          description: The Source's ID or UID.
          type: string
          maxLength: 60
          minLength: 1
          example: unique-identifier
        style: simple
      - in: path
        name: endpoint_id
        description: The Endpoint's ID or UID.
        required: true
        schema:
          description: The Endpoint's ID or UID.
          type: string
          maxLength: 256
          minLength: 1
          pattern: ^[a-zA-Z0-9\-_.]+$
          example: unique-identifier
        style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestEndpointUpdate'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestEndpointOut'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
      security:
      - HTTPBearer: []
      x-codeSamples:
      - lang: TypeScript
        label: JavaScript
        source: "const response = await svix.ingest.endpoint.update(\n  \"src_31Dc4Mx7vQVLfxFgArIhq\",\n  \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n  {\n    url: \"https://example.com/webhook/\",\n    description: \"An example endpoint name\",\n    throttleRate: 1,\n    uid: \"unique-identifier\",\n    disabled: true,\n    metadata: {},\n  }\n);"
      - lang: TypeScript
        label: TypeScript
        source: "const response = await svix.ingest.endpoint.update(\n  \"src_31Dc4Mx7vQVLfxFgArIhq\",\n  \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n  {\n    url: \"https://example.com/webhook/\",\n    description: \"An example endpoint name\",\n    throttleRate: 1,\n    uid: \"unique-identifier\",\n    disabled: true,\n    metadata: {},\n  }\n);"
      - lang: Python
        label: Python
        source: "response = svix.ingest.endpoint.update(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n    IngestEndpointUpdate(\n        url=\"https://example.com/webhook/\",\n        description=\"An example endpoint name\",\n        throttle_rate=1,\n        uid=\"unique-identifier\",\n        disabled=True,\n        metadata={},\n    ),\n)"
      - lang: Python
        label: Python (Async)
        source: "response = await svix.ingest.endpoint.update(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n    IngestEndpointUpdate(\n        url=\"https://example.com/webhook/\",\n        description=\"An example endpoint name\",\n        throttle_rate=1,\n        uid=\"unique-identifier\",\n        disabled=True,\n        metadata={},\n    ),\n)"
      - lang: Go
        label: Go
        source: "response, err := svix.Ingest.Endpoint.Update(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n\tIngestEndpointUpdate{\n\t\tUrl:          \"https://example.com/webhook/\",\n\t\tDescription:  new(\"An example endpoint name\"),\n\t\tThrottleRate: new(uint16(1)),\n\t\tUid:          new(\"unique-identifier\"),\n\t\tDisabled:     new(true),\n\t\tMetadata:     nil,\n\t},\n)"
      - lang: Kotlin
        label: Kotlin
        source: "val response =\n    svix.ingest.endpoint.update(\n        \"src_31Dc4Mx7vQVLfxFgArIhq\",\n        \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n        IngestEndpointUpdate(\n            url = \"https://example.com/webhook/\",\n            description = \"An example endpoint name\",\n            throttleRate = 1u,\n            uid = \"unique-identifier\",\n            disabled = true,\n            metadata = mapOf(),\n        ),\n    )"
      - lang: Java
        label: Java
        source: "var response = svix.getIngest()\n        .getEndpoint()\n        .update(\n            \"src_31Dc4Mx7vQVLfxFgArIhq\",\n            \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n            new IngestEndpointUpdate()\n                .url(URI.create(\"https://example.com/webhook/\"))\n                .description(\"An example endpoint name\")\n                .throttleRate(1L)\n                .uid(\"unique-identifier\")\n                .disabled(true)\n                .metadata(Map.of()));"
      - lang: Ruby
        label: Ruby
        source: "response = svix\n  .ingest\n  .endpoint\n  .update(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n    {\n      url: \"https://example.com/webhook/\",\n      description: \"An example endpoint name\",\n      throttleRate: 1,\n      uid: \"unique-identifier\",\n      disabled: true,\n      metadata: {}\n    }\n  )"
      - lang: Rust
        label: Rust
        source: "let response = svix\n    .ingest()\n    .endpoint()\n    .update(\n        \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n        \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n        IngestEndpointUpdate {\n            url: \"https://example.com/webhook/\".to_string(),\n            description: Some(\"An example endpoint name\".to_string()),\n            throttle_rate: Some(1),\n            uid: Some(\"unique-identifier\".to_string()),\n            disabled: Some(true),\n            metadata: Some(HashMap::new()),\n        },\n    )\n    .await?;"
      - lang: C#
        label: C#
        source: "var response = svix.Ingest.Endpoint.Update(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n    new IngestEndpointUpdate\n    {\n        Url = \"https://example.com/webhook/\",\n        Description = \"An example endpoint name\",\n        ThrottleRate = 1,\n        Uid = \"unique-identifier\",\n        Disabled = true,\n        Metadata = [],\n    }\n);"
      - lang: PHP
        label: PHP
        source: "$response = $svix->ingest->endpoint->update(\n    \"src_31Dc4Mx7vQVLfxFgArIhq\",\n    \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n    IngestEndpointUpdate::create(\n        url: \"https://example.com/webhook/\"\n    )\n    ->withDescription(\"An example endpoint name\")\n    ->withThrottleRate(1)\n    ->withUid(\"unique-identifier\")\n    ->withDisabled(true)\n    ->withMetadata([])\n);"
      - lang: Shell
        label: CLI
        source: "svix ingest endpoint update \"src_31Dc4Mx7vQVLfxFgArIhq\" \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\" '{\n    \"url\": \"https://example.com/webhook/\",\n    \"description\": \"An example endpoint name\",\n    \"throttleRate\": 1,\n    \"uid\": \"unique-identifier\",\n    \"disabled\": true,\n    \"metadata\": {}\n  }'"
      - lang: Shell
        label: cURL
        source: "curl -X 'PUT' \\\n  'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1' \\\n  -H 'Authorization: Bearer AUTH_TOKEN' \\\n  -H 'Accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"url\": \"https://example.com/webhook/\",\n    \"description\": \"An example endpoint name\",\n    \"throttleRate\": 1,\n    \"uid\": \"unique-identifier\",\n    \"disabled\": true,\n    \"metadata\": {}\n  }'"
    delete:
      tags:
      - Ingest Endpoint
      summary: Delete Ingest Endpoint
      description: Delete an ingest endpoint.
      operationId: v1.ingest.endpoint.delete
      parameters:
      - in: path
        name: source_id
        description: The Source's ID or UID.
        required: true
        schema:
          description: The Source's ID or UID.
          type: string
          maxLength: 60
          minLength: 1
          example: unique-identifier
        style: simple
      - in: path
        name: endpoint_id
        description: The Endpoint's ID or UID.
        required: true
        schema:
          description: The Endpoint's ID or UID.
          type: string
          maxLength: 256
          minLength: 1
          pattern: ^[a-zA-Z0-9\-_.]+$
          example: unique-identifier
        style: simple
      responses:
        '204':
          description: no content
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too Many Requests
          content:
            application/json:
       

# --- truncated at 32 KB (91 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/svix/refs/heads/main/openapi/svix-ingest-endpoint-api-openapi.yml