---
title: "Create custom integration"
method: POST
path: "/connection/customIntegrations"
tags: ["Connection - Custom Integrations"]
---

# Create custom integration

`POST /connection/customIntegrations`

Create a new custom integration

## Request body

- union — Request body schema.
  - object
    - `kind` 'external', required — Discriminator for an externally hosted custom integration.
    - `baseUrl` string, required — Base URL for an externally hosted custom integration.
  - object
    - `kind` 'worker', required — Discriminator for a worker-backed custom integration.
    - `workerUuid` string, uuid, required — Identifier of the hosting worker to back the integration.

## Response `200`

Successful response

- object
  - `customIntegration` union, required
    - object — Custom integration details.
      - `uuid` string, required
      - `workspaceUuid` string, required
      - `slug` string, required
      - `createdAt` string, required
      - `updatedAt` string, required
      - `deletedAt` string, nullable, required
      - `kind` 'external', required
      - `baseUrl` string, required
    - object — Custom integration details.
      - `uuid` string, required
      - `workspaceUuid` string, required
      - `slug` string, required
      - `createdAt` string, required
      - `updatedAt` string, required
      - `deletedAt` string, nullable, required
      - `kind` 'worker', required
      - `workerUuid` string, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
