openapi: 3.1.0 info: title: Svix Application 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). ## 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.84.0 x-logo: altText: Svix Logo url: https://www.svix.com/static/img/brand-padded.svg 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.0 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: - label: JavaScript lang: TypeScript source: const response = await svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq"); - label: TypeScript lang: TypeScript source: const response = await svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq"); - label: Python lang: Python source: "response = svix.ingest.endpoint.list(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n)" - label: Python (Async) lang: Python source: "response = await svix.ingest.endpoint.list(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n)" - label: Go lang: Go source: response, err := svix.Ingest.Endpoint.List(ctx, "src_31Dc4Mx7vQVLfxFgArIhq", nil) - label: Kotlin lang: Kotlin source: val response = svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq") - label: Java lang: Java source: var response = svix.getIngest().getEndpoint().list("src_31Dc4Mx7vQVLfxFgArIhq"); - label: Ruby lang: Ruby source: response = svix.ingest.endpoint.list("src_31Dc4Mx7vQVLfxFgArIhq") - label: Rust lang: Rust source: "let response = svix\n .ingest()\n .endpoint()\n .list(\"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(), None)\n .await?;" - label: C# lang: C# source: var response = svix.Ingest.Endpoint.List("src_31Dc4Mx7vQVLfxFgArIhq"); - label: PHP lang: PHP source: "$response = $svix->ingest->endpoint->list(\n \"src_31Dc4Mx7vQVLfxFgArIhq\"\n);" - label: CLI lang: Shell source: svix ingest endpoint list "src_31Dc4Mx7vQVLfxFgArIhq" - label: cURL lang: Shell 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 - 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: - label: JavaScript lang: TypeScript source: "const response = await svix.ingest.endpoint.create(\"src_31Dc4Mx7vQVLfxFgArIhq\", {\n description: \"An example endpoint name\",\n disabled: true,\n metadata: {},\n rateLimit: 1,\n secret: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n uid: \"unique-identifier\",\n url: \"https://example.com/webhook/\",\n});" - label: TypeScript lang: TypeScript source: "const response = await svix.ingest.endpoint.create(\"src_31Dc4Mx7vQVLfxFgArIhq\", {\n description: \"An example endpoint name\",\n disabled: true,\n metadata: {},\n rateLimit: 1,\n secret: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n uid: \"unique-identifier\",\n url: \"https://example.com/webhook/\",\n});" - label: Python lang: Python source: "response = svix.ingest.endpoint.create(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n IngestEndpointIn(\n description=\"An example endpoint name\",\n disabled=True,\n metadata={},\n rate_limit=1,\n secret=\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n uid=\"unique-identifier\",\n url=\"https://example.com/webhook/\",\n ),\n)" - label: Python (Async) lang: Python source: "response = await svix.ingest.endpoint.create(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n IngestEndpointIn(\n description=\"An example endpoint name\",\n disabled=True,\n metadata={},\n rate_limit=1,\n secret=\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n uid=\"unique-identifier\",\n url=\"https://example.com/webhook/\",\n ),\n)" - label: Go lang: Go source: "response, err := svix.Ingest.Endpoint.Create(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\tIngestEndpointIn{\n\t\tDescription: new(\"An example endpoint name\"),\n\t\tDisabled: new(true),\n\t\tMetadata: nil,\n\t\tRateLimit: new(uint16(1)),\n\t\tSecret: new(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\"),\n\t\tUid: new(\"unique-identifier\"),\n\t\tUrl: \"https://example.com/webhook/\",\n\t},\n\tnil,\n)" - label: Kotlin lang: Kotlin source: "val response =\n svix.ingest.endpoint.create(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n IngestEndpointIn(\n description = \"An example endpoint name\",\n disabled = true,\n metadata = mapOf(),\n rateLimit = 1u,\n secret = \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n uid = \"unique-identifier\",\n url = \"https://example.com/webhook/\",\n ),\n )" - label: Java lang: Java source: "var response = svix.getIngest()\n .getEndpoint()\n .create(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n new IngestEndpointIn()\n .description(\"An example endpoint name\")\n .disabled(true)\n .metadata(Map.of())\n .rateLimit(1L)\n .secret(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\")\n .uid(\"unique-identifier\")\n .url(URI.create(\"https://example.com/webhook/\")));" - label: Ruby lang: Ruby source: "response = svix\n .ingest\n .endpoint\n .create(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n {\n description: \"An example endpoint name\",\n disabled: true,\n metadata: {},\n rateLimit: 1,\n secret: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n uid: \"unique-identifier\",\n url: \"https://example.com/webhook/\"\n }\n )" - label: Rust lang: Rust source: "let response = svix\n .ingest()\n .endpoint()\n .create(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n IngestEndpointIn {\n description: Some(\"An example endpoint name\".to_string()),\n disabled: Some(true),\n metadata: Some(HashMap::new()),\n rate_limit: Some(1),\n secret: Some(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\".to_string()),\n uid: Some(\"unique-identifier\".to_string()),\n url: \"https://example.com/webhook/\".to_string(),\n },\n None,\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.Create(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n new IngestEndpointIn\n {\n Description = \"An example endpoint name\",\n Disabled = true,\n Metadata = [],\n RateLimit = 1,\n Secret = \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n Uid = \"unique-identifier\",\n Url = \"https://example.com/webhook/\",\n }\n);" - label: PHP lang: 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 ->withDisabled(true)\n ->withMetadata([])\n ->withRateLimit(1)\n ->withSecret(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\")\n ->withUid(\"unique-identifier\")\n);" - label: CLI lang: Shell source: "svix ingest endpoint create \"src_31Dc4Mx7vQVLfxFgArIhq\" '{\n \"description\": \"An example endpoint name\",\n \"disabled\": true,\n \"metadata\": {},\n \"rateLimit\": 1,\n \"secret\": \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n \"uid\": \"unique-identifier\",\n \"url\": \"https://example.com/webhook/\"\n }'" - label: cURL lang: Shell 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 \"description\": \"An example endpoint name\",\n \"disabled\": true,\n \"metadata\": {},\n \"rateLimit\": 1,\n \"secret\": \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n \"uid\": \"unique-identifier\",\n \"url\": \"https://example.com/webhook/\"\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: - label: JavaScript lang: TypeScript source: "const response = await svix.ingest.endpoint.get(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: TypeScript lang: TypeScript source: "const response = await svix.ingest.endpoint.get(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: Python lang: Python source: "response = svix.ingest.endpoint.get(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Python (Async) lang: Python source: "response = await svix.ingest.endpoint.get(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Go lang: Go source: "response, err := svix.Ingest.Endpoint.Get(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Kotlin lang: Kotlin source: "val response =\n svix.ingest.endpoint.get(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\")" - label: Java lang: Java source: "var response = svix.getIngest()\n .getEndpoint()\n .get(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\");" - label: Ruby lang: Ruby source: response = svix.ingest.endpoint.get("src_31Dc4Mx7vQVLfxFgArIhq", "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1") - label: Rust lang: Rust source: "let response = svix\n .ingest()\n .endpoint()\n .get(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.Get(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: PHP lang: PHP source: "$response = $svix->ingest->endpoint->get(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: CLI lang: Shell source: svix ingest endpoint get "src_31Dc4Mx7vQVLfxFgArIhq" "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1" - label: cURL lang: Shell 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: Update Ingest Endpoint description: 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: - label: JavaScript lang: TypeScript source: "const response = await svix.ingest.endpoint.update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n description: \"An example endpoint name\",\n disabled: true,\n metadata: {},\n rateLimit: 1,\n uid: \"unique-identifier\",\n url: \"https://example.com/webhook/\",\n }\n);" - label: TypeScript lang: TypeScript source: "const response = await svix.ingest.endpoint.update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n description: \"An example endpoint name\",\n disabled: true,\n metadata: {},\n rateLimit: 1,\n uid: \"unique-identifier\",\n url: \"https://example.com/webhook/\",\n }\n);" - label: Python lang: Python source: "response = svix.ingest.endpoint.update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointUpdate(\n description=\"An example endpoint name\",\n disabled=True,\n metadata={},\n rate_limit=1,\n uid=\"unique-identifier\",\n url=\"https://example.com/webhook/\",\n ),\n)" - label: Python (Async) lang: Python source: "response = await svix.ingest.endpoint.update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointUpdate(\n description=\"An example endpoint name\",\n disabled=True,\n metadata={},\n rate_limit=1,\n uid=\"unique-identifier\",\n url=\"https://example.com/webhook/\",\n ),\n)" - label: Go lang: Go source: "response, err := svix.Ingest.Endpoint.Update(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n\tIngestEndpointUpdate{\n\t\tDescription: new(\"An example endpoint name\"),\n\t\tDisabled: new(true),\n\t\tMetadata: nil,\n\t\tRateLimit: new(uint16(1)),\n\t\tUid: new(\"unique-identifier\"),\n\t\tUrl: \"https://example.com/webhook/\",\n\t},\n)" - label: Kotlin lang: Kotlin source: "val response =\n svix.ingest.endpoint.update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointUpdate(\n description = \"An example endpoint name\",\n disabled = true,\n metadata = mapOf(),\n rateLimit = 1u,\n uid = \"unique-identifier\",\n url = \"https://example.com/webhook/\",\n ),\n )" - label: Java lang: Java source: "var response = svix.getIngest()\n .getEndpoint()\n .update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointUpdate()\n .description(\"An example endpoint name\")\n .disabled(true)\n .metadata(Map.of())\n .rateLimit(1L)\n .uid(\"unique-identifier\")\n .url(URI.create(\"https://example.com/webhook/\")));" - label: Ruby lang: Ruby source: "response = svix\n .ingest\n .endpoint\n .update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n description: \"An example endpoint name\",\n disabled: true,\n metadata: {},\n rateLimit: 1,\n uid: \"unique-identifier\",\n url: \"https://example.com/webhook/\"\n }\n )" - label: Rust lang: Rust source: "let response = svix\n .ingest()\n .endpoint()\n .update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n IngestEndpointUpdate {\n description: Some(\"An example endpoint name\".to_string()),\n disabled: Some(true),\n metadata: Some(HashMap::new()),\n rate_limit: Some(1),\n uid: Some(\"unique-identifier\".to_string()),\n url: \"https://example.com/webhook/\".to_string(),\n },\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.Update(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointUpdate\n {\n Description = \"An example endpoint name\",\n Disabled = true,\n Metadata = [],\n RateLimit = 1,\n Uid = \"unique-identifier\",\n Url = \"https://example.com/webhook/\",\n }\n);" - label: PHP lang: 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 ->withDisabled(true)\n ->withMetadata([])\n ->withRateLimit(1)\n ->withUid(\"unique-identifier\")\n);" - label: CLI lang: Shell source: "svix ingest endpoint update \"src_31Dc4Mx7vQVLfxFgArIhq\" \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\" '{\n \"description\": \"An example endpoint name\",\n \"disabled\": true,\n \"metadata\": {},\n \"rateLimit\": 1,\n \"uid\": \"unique-identifier\",\n \"url\": \"https://example.com/webhook/\"\n }'" - label: cURL lang: Shell 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 \"description\": \"An example endpoint name\",\n \"disabled\": true,\n \"metadata\": {},\n \"rateLimit\": 1,\n \"uid\": \"unique-identifier\",\n \"url\": \"https://example.com/webhook/\"\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: schema: $ref: '#/components/schemas/HttpErrorOut' security: - HTTPBearer: [] x-codeSamples: - label: JavaScript lang: TypeScript source: "await svix.ingest.endpoint.delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: TypeScript lang: TypeScript source: "await svix.ingest.endpoint.delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: Python lang: Python source: "svix.ingest.endpoint.delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Python (Async) lang: Python source: "await svix.ingest.endpoint.delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Go lang: Go source: "err := svix.Ingest.Endpoint.Delete(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Kotlin lang: Kotlin source: "svix.ingest.endpoint.delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Java lang: Java source: "svix.getIngest()\n .getEndpoint()\n .delete(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\");" - label: Ruby lang: Ruby source: response = svix.ingest.endpoint.delete("src_31Dc4Mx7vQVLfxFgArIhq", "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1") - label: Rust lang: Rust source: "svix.ingest()\n .endpoint()\n .delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.Delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: PHP lang: PHP source: "$svix->ingest->endpoint->delete(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: CLI lang: Shell source: svix ingest endpoint delete "src_31Dc4Mx7vQVLfxFgArIhq" "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1" - label: cURL lang: Shell source: "curl -X 'DELETE' \\\n 'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1' \\\n -H 'Authorization: Bearer AUTH_TOKEN'" /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers: get: tags: - Ingest Endpoint summary: Get Ingest Endpoint Headers description: Get the additional headers to be sent with the ingest. operationId: v1.ingest.endpoint.get-headers 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/IngestEndpointHeadersOut' '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: - label: JavaScript lang: TypeScript source: "const response = await svix.ingest.endpoint.getHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: TypeScript lang: TypeScript source: "const response = await svix.ingest.endpoint.getHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: Python lang: Python source: "response = svix.ingest.endpoint.get_headers(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Python (Async) lang: Python source: "response = await svix.ingest.endpoint.get_headers(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Go lang: Go source: "response, err := svix.Ingest.Endpoint.GetHeaders(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Kotlin lang: Kotlin source: "val response =\n svix.ingest.endpoint.getHeaders(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\")" - label: Java lang: Java source: "var response = svix.getIngest()\n .getEndpoint()\n .getHeaders(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\");" - label: Ruby lang: Ruby source: response = svix.ingest.endpoint.get_headers("src_31Dc4Mx7vQVLfxFgArIhq", "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1") - label: Rust lang: Rust source: "let response = svix\n .ingest()\n .endpoint()\n .get_headers(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.GetHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: PHP lang: PHP source: "$response = $svix->ingest->endpoint->getHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: CLI lang: Shell source: svix ingest endpoint get-headers "src_31Dc4Mx7vQVLfxFgArIhq" "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1" - label: cURL lang: Shell source: "curl -X 'GET' \\\n 'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1/headers' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Accept: application/json'" put: tags: - Ingest Endpoint summary: Update Ingest Endpoint Headers description: Set the additional headers to be sent to the endpoint. operationId: v1.ingest.endpoint.update-headers 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/IngestEndpointHeadersIn' required: true 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: schema: $ref: '#/components/schemas/HttpErrorOut' security: - HTTPBearer: [] x-codeSamples: - label: JavaScript lang: TypeScript source: "await svix.ingest.endpoint.updateHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n headers: { \"X-Example\": \"123\", \"X-Foobar\": \"Bar\" },\n }\n);" - label: TypeScript lang: TypeScript source: "await svix.ingest.endpoint.updateHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n headers: { \"X-Example\": \"123\", \"X-Foobar\": \"Bar\" },\n }\n);" - label: Python lang: Python source: "svix.ingest.endpoint.update_headers(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointHeadersIn(\n headers={\"X-Example\": \"123\", \"X-Foobar\": \"Bar\"},\n ),\n)" - label: Python (Async) lang: Python source: "await svix.ingest.endpoint.update_headers(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointHeadersIn(\n headers={\"X-Example\": \"123\", \"X-Foobar\": \"Bar\"},\n ),\n)" - label: Go lang: Go source: "err := svix.Ingest.Endpoint.UpdateHeaders(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n\tIngestEndpointHeadersIn{Headers: map[string]string{\"X-Example\": \"123\", \"X-Foobar\": \"Bar\"}},\n)" - label: Kotlin lang: Kotlin source: "svix.ingest.endpoint.updateHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointHeadersIn(headers = mapOf(\"X-Example\" to \"123\", \"X-Foobar\" to \"Bar\")),\n)" - label: Java lang: Java source: "svix.getIngest()\n .getEndpoint()\n .updateHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointHeadersIn()\n .headers(\n Map.ofEntries(Map.entry(\"X-Example\", \"123\"), Map.entry(\"X-Foobar\", \"Bar\"))));" - label: Ruby lang: Ruby source: "response = svix\n .ingest\n .endpoint\n .update_headers(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {headers: {:\"X-Example\" => \"123\", :\"X-Foobar\" => \"Bar\"}}\n )" - label: Rust lang: Rust source: "svix.ingest()\n .endpoint()\n .update_headers(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n IngestEndpointHeadersIn {\n headers: HashMap::from([\n (\"X-Example\".to_string(), \"123\".to_string()),\n (\"X-Foobar\".to_string(), \"Bar\".to_string()),\n ]),\n },\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.UpdateHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointHeadersIn\n {\n Headers = new() { { \"X-Example\", \"123\" }, { \"X-Foobar\", \"Bar\" } },\n }\n);" - label: PHP lang: PHP source: "$svix->ingest->endpoint->updateHeaders(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointHeadersIn::create(\n headers: [\"X-Example\" => \"123\", \"X-Foobar\" => \"Bar\"]\n )\n\n);" - label: CLI lang: Shell source: "svix ingest endpoint update-headers \"src_31Dc4Mx7vQVLfxFgArIhq\" \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\" '{\n \"headers\": {\n \"X-Example\": \"123\",\n \"X-Foobar\": \"Bar\"\n }\n }'" - label: cURL lang: Shell source: "curl -X 'PUT' \\\n 'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1/headers' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"headers\": {\n \"X-Example\": \"123\",\n \"X-Foobar\": \"Bar\"\n }\n }'" /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret: get: tags: - Ingest Endpoint summary: Get Ingest Endpoint Secret description: 'Get an ingest endpoint''s signing secret. This is used to verify the authenticity of the webhook. For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).' operationId: v1.ingest.endpoint.get-secret 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/IngestEndpointSecretOut' '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: - label: JavaScript lang: TypeScript source: "const response = await svix.ingest.endpoint.getSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: TypeScript lang: TypeScript source: "const response = await svix.ingest.endpoint.getSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: Python lang: Python source: "response = svix.ingest.endpoint.get_secret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Python (Async) lang: Python source: "response = await svix.ingest.endpoint.get_secret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Go lang: Go source: "response, err := svix.Ingest.Endpoint.GetSecret(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Kotlin lang: Kotlin source: "val response =\n svix.ingest.endpoint.getSecret(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\")" - label: Java lang: Java source: "var response = svix.getIngest()\n .getEndpoint()\n .getSecret(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\");" - label: Ruby lang: Ruby source: response = svix.ingest.endpoint.get_secret("src_31Dc4Mx7vQVLfxFgArIhq", "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1") - label: Rust lang: Rust source: "let response = svix\n .ingest()\n .endpoint()\n .get_secret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.GetSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: PHP lang: PHP source: "$response = $svix->ingest->endpoint->getSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: CLI lang: Shell source: svix ingest endpoint get-secret "src_31Dc4Mx7vQVLfxFgArIhq" "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1" - label: cURL lang: Shell source: "curl -X 'GET' \\\n 'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1/secret' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Accept: application/json'" /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret/rotate: post: tags: - Ingest Endpoint summary: Rotate Ingest Endpoint Secret description: 'Rotates an ingest endpoint''s signing secret. The previous secret will remain valid for the next 24 hours.' operationId: v1.ingest.endpoint.rotate-secret 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 - in: header name: idempotency-key description: The request's idempotency key schema: type: string 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/IngestEndpointSecretIn' required: true 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: schema: $ref: '#/components/schemas/HttpErrorOut' security: - HTTPBearer: [] x-codeSamples: - label: JavaScript lang: TypeScript source: "await svix.ingest.endpoint.rotateSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n key: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n }\n);" - label: TypeScript lang: TypeScript source: "await svix.ingest.endpoint.rotateSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n key: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n }\n);" - label: Python lang: Python source: "svix.ingest.endpoint.rotate_secret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointSecretIn(\n key=\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n ),\n)" - label: Python (Async) lang: Python source: "await svix.ingest.endpoint.rotate_secret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointSecretIn(\n key=\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\",\n ),\n)" - label: Go lang: Go source: "err := svix.Ingest.Endpoint.RotateSecret(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n\tIngestEndpointSecretIn{Key: new(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\")},\n\tnil,\n)" - label: Kotlin lang: Kotlin source: "svix.ingest.endpoint.rotateSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointSecretIn(key = \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\"),\n)" - label: Java lang: Java source: "svix.getIngest()\n .getEndpoint()\n .rotateSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointSecretIn().key(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\"));" - label: Ruby lang: Ruby source: "response = svix\n .ingest\n .endpoint\n .rotate_secret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {key: \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\"}\n )" - label: Rust lang: Rust source: "svix.ingest()\n .endpoint()\n .rotate_secret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n IngestEndpointSecretIn {\n key: Some(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\".to_string()),\n },\n None,\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.RotateSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointSecretIn { Key = \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\" }\n);" - label: PHP lang: PHP source: "$svix->ingest->endpoint->rotateSecret(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointSecretIn::create()\n ->withKey(\"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\")\n);" - label: CLI lang: Shell source: "svix ingest endpoint rotate-secret \"src_31Dc4Mx7vQVLfxFgArIhq\" \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\" '{\n \"key\": \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\"\n }'" - label: cURL lang: Shell source: "curl -X 'POST' \\\n 'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1/secret/rotate' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"key\": \"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD\"\n }'" /ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation: get: tags: - Ingest Endpoint summary: Get Ingest Endpoint Transformation description: Get the transformation code associated with this ingest endpoint. operationId: v1.ingest.endpoint.get-transformation 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/IngestEndpointTransformationOut' '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: - label: JavaScript lang: TypeScript source: "const response = await svix.ingest.endpoint.getTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: TypeScript lang: TypeScript source: "const response = await svix.ingest.endpoint.getTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: Python lang: Python source: "response = svix.ingest.endpoint.get_transformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Python (Async) lang: Python source: "response = await svix.ingest.endpoint.get_transformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Go lang: Go source: "response, err := svix.Ingest.Endpoint.GetTransformation(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n)" - label: Kotlin lang: Kotlin source: "val response =\n svix.ingest.endpoint.getTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n )" - label: Java lang: Java source: "var response = svix.getIngest()\n .getEndpoint()\n .getTransformation(\"src_31Dc4Mx7vQVLfxFgArIhq\", \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\");" - label: Ruby lang: Ruby source: response = svix.ingest.endpoint.get_transformation("src_31Dc4Mx7vQVLfxFgArIhq", "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1") - label: Rust lang: Rust source: "let response = svix\n .ingest()\n .endpoint()\n .get_transformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.GetTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: PHP lang: PHP source: "$response = $svix->ingest->endpoint->getTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\"\n);" - label: CLI lang: Shell source: svix ingest endpoint get-transformation "src_31Dc4Mx7vQVLfxFgArIhq" "ep_33ZIBDmz66FcPG35FnsbM6Ie4X1" - label: cURL lang: Shell source: "curl -X 'GET' \\\n 'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1/transformation' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Accept: application/json'" patch: tags: - Ingest Endpoint summary: Patch Ingest Endpoint Transformation description: Set or unset the transformation code associated with this ingest endpoint. operationId: v1.ingest.endpoint.set-transformation 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/IngestEndpointTransformationPatch' required: true 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: schema: $ref: '#/components/schemas/HttpErrorOut' security: - HTTPBearer: [] x-codeSamples: - label: JavaScript lang: TypeScript source: "await svix.ingest.endpoint.setTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n code: \"sample string\",\n enabled: true,\n }\n);" - label: TypeScript lang: TypeScript source: "await svix.ingest.endpoint.setTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {\n code: \"sample string\",\n enabled: true,\n }\n);" - label: Python lang: Python source: "svix.ingest.endpoint.set_transformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointTransformationPatch(\n code=\"sample string\",\n enabled=True,\n ),\n)" - label: Python (Async) lang: Python source: "await svix.ingest.endpoint.set_transformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointTransformationPatch(\n code=\"sample string\",\n enabled=True,\n ),\n)" - label: Go lang: Go source: "err := svix.Ingest.Endpoint.SetTransformation(\n\tctx,\n\t\"src_31Dc4Mx7vQVLfxFgArIhq\",\n\t\"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n\tIngestEndpointTransformationPatch{Code: NewNullable(\"sample string\"), Enabled: new(true)},\n)" - label: Kotlin lang: Kotlin source: "svix.ingest.endpoint.setTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointTransformationPatch(code = MaybeUnset.Present(\"sample string\"), enabled = true),\n)" - label: Java lang: Java source: "svix.getIngest()\n .getEndpoint()\n .setTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointTransformationPatch().code(\"sample string\").enabled(true));" - label: Ruby lang: Ruby source: "response = svix\n .ingest\n .endpoint\n .set_transformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n {code: \"sample string\", enabled: true}\n )" - label: Rust lang: Rust source: "svix.ingest()\n .endpoint()\n .set_transformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\".to_string(),\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\".to_string(),\n IngestEndpointTransformationPatch {\n code: js_option::JsOption::Some(\"sample string\".to_string()),\n enabled: Some(true),\n },\n )\n .await?;" - label: C# lang: C# source: "var response = svix.Ingest.Endpoint.SetTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n new IngestEndpointTransformationPatch { Code = \"sample string\", Enabled = true }\n);" - label: PHP lang: PHP source: "$svix->ingest->endpoint->setTransformation(\n \"src_31Dc4Mx7vQVLfxFgArIhq\",\n \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\",\n IngestEndpointTransformationPatch::create()\n ->withCode(\"sample string\")\n ->withEnabled(true)\n);" - label: CLI lang: Shell source: "svix ingest endpoint set-transformation \"src_31Dc4Mx7vQVLfxFgArIhq\" \"ep_33ZIBDmz66FcPG35FnsbM6Ie4X1\" '{\n \"code\": \"sample string\",\n \"enabled\": true\n }'" - label: cURL lang: Shell source: "curl -X 'PATCH' \\\n 'https://api.eu.svix.com/ingest/api/v1/source/src_31Dc4Mx7vQVLfxFgArIhq/endpoint/ep_33ZIBDmz66FcPG35FnsbM6Ie4X1/transformation' \\\n -H 'Authorization: Bearer AUTH_TOKEN' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"code\": \"sample string\",\n \"enabled\": true\n }'" components: schemas: IngestEndpointSecretIn: type: object properties: key: description: 'The endpoint''s verification secret. Format: `base64` encoded random bytes optionally prefixed with `whsec_`. It is recommended to not set this and let the server generate the secret.' default: null type: string pattern: ^(whsec_)?[a-zA-Z0-9+/=]{32,100}$ example: whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD nullable: true IngestEndpointTransformationOut: type: object properties: code: type: string maxLength: 51200 minLength: 10 nullable: true enabled: default: false type: boolean HTTPValidationError: type: object required: - detail properties: detail: type: array items: $ref: '#/components/schemas/ValidationError' ValidationError: description: Validation errors have their own schema to provide context for invalid requests eg. mismatched types and out of bounds values. There may be any number of these per 422 UNPROCESSABLE ENTITY error. type: object required: - loc - msg - type properties: loc: description: The location as a [`Vec`] of [`String`]s -- often in the form `["body", "field_name"]`, `["query", "field_name"]`, etc. They may, however, be arbitrarily deep. type: array items: type: string msg: description: The message accompanying the validation error item. type: string type: description: The type of error, often "type_error" or "value_error", but sometimes with more context like as "value_error.number.not_ge" type: string IngestEndpointHeadersIn: type: object required: - headers properties: headers: type: object additionalProperties: type: string example: X-Example: '123' X-Foobar: Bar IngestEndpointHeadersOut: type: object required: - headers - sensitive properties: headers: type: object additionalProperties: type: string example: X-Example: '123' X-Foobar: Bar sensitive: type: array items: type: string uniqueItems: true example: - Authorization IngestEndpointIn: type: object required: - url properties: description: default: '' type: string example: An example endpoint name disabled: default: false type: boolean example: false metadata: default: {} type: object additionalProperties: type: string rateLimit: type: integer format: uint16 minimum: 1.0 nullable: true secret: description: 'The endpoint''s verification secret. Format: `base64` encoded random bytes optionally prefixed with `whsec_`. It is recommended to not set this and let the server generate the secret.' type: string pattern: ^(whsec_)?[a-zA-Z0-9+/=]{32,100}$ example: whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD nullable: true uid: description: Optional unique identifier for the endpoint. type: string maxLength: 256 minLength: 1 pattern: ^[a-zA-Z0-9\-_.]+$ example: unique-identifier nullable: true url: type: string format: uri maxLength: 65536 minLength: 1 example: https://example.com/webhook/ IngestEndpointTransformationPatch: type: object properties: code: type: string maxLength: 51200 minLength: 10 nullable: true enabled: type: boolean IngestEndpointUpdate: type: object required: - url properties: description: default: '' type: string example: An example endpoint name disabled: default: false type: boolean example: false metadata: default: {} type: object additionalProperties: type: string rateLimit: type: integer format: uint16 minimum: 1.0 nullable: true uid: description: Optional unique identifier for the endpoint. type: string maxLength: 256 minLength: 1 pattern: ^[a-zA-Z0-9\-_.]+$ example: unique-identifier nullable: true url: type: string format: uri maxLength: 65536 minLength: 1 example: https://example.com/webhook/ ListResponse_IngestEndpointOut_: type: object required: - data - done - iterator properties: data: type: array items: $ref: '#/components/schemas/IngestEndpointOut' done: type: boolean iterator: type: string example: iterator nullable: true prevIterator: type: string example: -iterator nullable: true Ordering: description: Defines the ordering in a listing of results. type: string enum: - ascending - descending IngestEndpointOut: type: object required: - createdAt - description - id - metadata - updatedAt - url properties: createdAt: type: string format: date-time description: description: An example endpoint name. type: string disabled: default: false type: boolean example: false id: description: The Endpoint's ID. type: string maxLength: 30 minLength: 30 pattern: ^ep_[A-Za-z0-9]{27}$ example: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 metadata: type: object additionalProperties: type: string rateLimit: type: integer format: uint16 minimum: 0.0 nullable: true uid: description: Optional unique identifier for the endpoint. type: string maxLength: 256 minLength: 1 pattern: ^[a-zA-Z0-9\-_.]+$ example: unique-identifier nullable: true updatedAt: type: string format: date-time url: type: string format: uri maxLength: 65536 minLength: 1 example: https://example.com/webhook/ IngestEndpointSecretOut: type: object required: - key properties: key: description: 'The endpoint''s verification secret. Format: `base64` encoded random bytes optionally prefixed with `whsec_`. It is recommended to not set this and let the server generate the secret.' type: string pattern: ^(whsec_)?[a-zA-Z0-9+/=]{32,100}$ example: whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD HttpErrorOut: title: HttpError type: object required: - code - detail properties: code: type: string detail: type: string securitySchemes: HTTPBearer: type: http scheme: bearer description: HTTP Bearer token passed in the `Authorization` header x-tagGroups: - name: General tags: - Background Task - Environment - name: Dispatch tags: - Application - Event Type - Authentication - Endpoint - Message - Message Attempt - Integration - Connector - name: Stream tags: - Stream - Sink - Event - Stream Event Type - Stream Authentication - name: Ingest tags: - Ingest Source - Ingest Endpoint - name: Operational Webhooks tags: - Webhook - Webhook Endpoint - name: Statistics tags: - Statistics - name: Utility tags: - Health x-webhooks: background_task.finished: post: description: Sent when a background task is finished. operationId: background_task.finished requestBody: content: application/json: example: data: data: appStats: - appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: null messageDestinations: 343 status: finished task: application.stats taskId: qtask_1srOrx2ZWZBpBUvZwXKQmoEYga2 type: background_task.finished schema: $ref: '#/components/schemas/BackgroundTaskFinishedEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: background_task.finished tags: - Webhook endpoint.created: post: description: Sent when an endpoint is created. operationId: endpoint.created requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 endpointUid: unique-endpoint-identifier type: endpoint.created schema: $ref: '#/components/schemas/EndpointCreatedEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: endpoint.created tags: - Webhook x-svix-group-name: dispatch endpoint.deleted: post: description: Sent when an endpoint is deleted. operationId: endpoint.deleted requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 endpointUid: unique-endpoint-identifier type: endpoint.deleted schema: $ref: '#/components/schemas/EndpointDeletedEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: endpoint.deleted tags: - Webhook x-svix-group-name: dispatch endpoint.disabled: post: description: Sent when an endpoint has been automatically disabled after continuous failures, or manually via an API call. operationId: endpoint.disabled requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 endpointUid: unique-endpoint-identifier failSince: '2022-11-06T15:04:05Z' trigger: automatic type: endpoint.disabled schema: $ref: '#/components/schemas/EndpointDisabledEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: endpoint.disabled tags: - Webhook x-svix-group-name: dispatch endpoint.enabled: post: description: Sent when an endpoint has been enabled. operationId: endpoint.enabled requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 endpointUid: unique-endpoint-identifier type: endpoint.enabled schema: $ref: '#/components/schemas/EndpointEnabledEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: endpoint.enabled tags: - Webhook x-svix-group-name: dispatch endpoint.updated: post: description: Sent when an endpoint is updated. operationId: endpoint.updated requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 endpointUid: unique-endpoint-identifier type: endpoint.updated schema: $ref: '#/components/schemas/EndpointUpdatedEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: endpoint.updated tags: - Webhook x-svix-group-name: dispatch ingest.endpoint.disabled: post: description: Sent when an ingest endpoint has been automatically disabled after continuous failures, or manually via an API call. operationId: ingest.endpoint.disabled requestBody: content: application/json: example: data: endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 endpointUid: unique-endpoint-identifier failSince: '2022-11-06T15:04:05Z' sourceId: src_30HT9jb8WZXKVWIO44ZDr trigger: automatic type: ingest.endpoint.disabled schema: $ref: '#/components/schemas/IngestEndpointDisabledEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: ingest.endpoint.disabled tags: - Webhook ingest.message.attempt.exhausted: post: description: Sent when a message delivery has failed (all of the retry attempts have been exhausted). operationId: ingest.message.attempt.exhausted requestBody: content: application/json: example: data: endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 lastAttempt: id: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2 responseStatusCode: 500 timestamp: '2022-11-06T15:04:05Z' msgEventId: unique-msg-identifier msgId: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2 sourceId: src_30HT9jb8WZXKVWIO44ZDr type: ingest.message.attempt.exhausted schema: $ref: '#/components/schemas/IngestMessageAttemptExhaustedEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: ingest.message.attempt.exhausted tags: - Webhook ingest.message.attempt.failing: post: description: 'Sent after a message has been failing for a few times. It''s sent on the fourth failure. It complements `ingest.message.attempt.exhausted` which is sent after the last failure.' operationId: ingest.message.attempt.failing requestBody: content: application/json: example: data: endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 lastAttempt: id: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2 responseStatusCode: 500 timestamp: '2022-11-06T15:04:05Z' msgEventId: unique-msg-identifier msgId: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2 sourceId: src_30HT9jb8WZXKVWIO44ZDr type: ingest.message.attempt.failing schema: $ref: '#/components/schemas/IngestMessageAttemptFailingEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: ingest.message.attempt.failing tags: - Webhook ingest.message.attempt.recovered: post: description: Sent on a successful dispatch after an earlier failure op webhook has already been sent. operationId: ingest.message.attempt.recovered requestBody: content: application/json: example: data: endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 lastAttempt: id: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2 responseStatusCode: 200 timestamp: '2022-11-06T15:04:05Z' msgEventId: unique-msg-identifier msgId: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2 sourceId: src_30HT9jb8WZXKVWIO44ZDr type: ingest.message.attempt.recovered schema: $ref: '#/components/schemas/IngestMessageAttemptRecoveredEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: ingest.message.attempt.recovered tags: - Webhook message.attempt.exhausted: post: description: Sent when a message delivery has failed (all of the retry attempts have been exhausted). operationId: message.attempt.exhausted requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 lastAttempt: id: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2 responseStatusCode: 500 timestamp: '2022-11-06T15:04:05Z' msgEventId: unique-msg-identifier msgId: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2 type: message.attempt.exhausted schema: $ref: '#/components/schemas/MessageAttemptExhaustedEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: message.attempt.exhausted tags: - Webhook x-svix-group-name: dispatch message.attempt.failing: post: description: 'Sent after a message has been failing for a few times. It''s sent on the fourth failure. It complements `message.attempt.exhausted` which is sent after the last failure.' operationId: message.attempt.failing requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 lastAttempt: id: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2 responseStatusCode: 500 timestamp: '2022-11-06T15:04:05Z' msgEventId: unique-msg-identifier msgId: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2 type: message.attempt.failing schema: $ref: '#/components/schemas/MessageAttemptFailingEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: message.attempt.failing tags: - Webhook x-svix-group-name: dispatch message.attempt.log: post: description: Sent after message attempts are made. Contains metadata about message attempts and their results. In order to reduce the frequency of webhooks, these are sent in batches periodically. operationId: message.attempt.log requestBody: content: application/json: example: data: - appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier attemptCount: 1 attemptEnd: '2022-11-06T15:04:07Z' attemptId: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2 attemptStart: '2022-11-06T15:04:06Z' endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 eventType: user.signup msgCreated: '2022-11-06T15:04:05Z' msgEventId: unique-msg-identifier msgId: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2 orgId: env_1srOrx2ZWZBpBUvZwXKQmoEYga2 responseStatusCode: 200 status: 0 type: message.attempt.log schema: $ref: '#/components/schemas/MessageAttemptLogEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: message.attempt.log tags: - Webhook x-internal: true x-svix-feature-flags: - attempt_log x-svix-group-name: dispatch message.attempt.recovered: post: description: Sent on a successful dispatch after an earlier failure op webhook has already been sent. operationId: message.attempt.recovered requestBody: content: application/json: example: data: appId: app_1srOrx2ZWZBpBUvZwXKQmoEYga2 appUid: unique-app-identifier endpointId: ep_1srOrx2ZWZBpBUvZwXKQmoEYga2 lastAttempt: id: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2 responseStatusCode: 200 timestamp: '2022-11-06T15:04:05Z' msgEventId: unique-msg-identifier msgId: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2 type: message.attempt.recovered schema: $ref: '#/components/schemas/MessageAttemptRecoveredEvent' responses: 2XX: description: Return any 2XX status to indicate that the data was received successfully summary: message.attempt.recovered tags: - Webhook x-svix-group-name: dispatch