---
title: "Create Source"
method: POST
path: "/sources"
---

# Create Source

`POST /sources`

Create a new source

## Request body

- SourceCreate — The input for creating a Source
  - `name` string, required — The source's name
  - `slug` string, required — The source's slug
  - `type` string, required — The source's type (e.g. snowflake or postgres).
  - `configuration` object, required — The source's configuration. This specifies general metadata about sources, like connection details Hightouch will use this configuration to connect to underlying source. The schema depends on the source type. Consumers should NOT make assumptions on the contents of the configuration. It may change as Hightouch updates its internal code.

## Response `200`

Ok

- union
  - Source — The database or warehouse where your data is stored. The starting point for a Hightouch data pipeline.
    - `id` number, double, required — The source's id
    - `name` string, required — The source's name
    - `slug` string, required — The source's slug
    - `workspaceId` number, double, required — The id of the workspace that the source belongs to
    - `createdAt` string, date-time, required — The timestamp when the source was created
    - `updatedAt` string, date-time, required — The timestamp when the source was last updated
    - `configuration` object, required — The source's configuration. This specifies general metadata about sources, like connection details Hightouch will use this configuration to connect to underlying source. The schema depends on the source type. Consumers should NOT make assumptions on the contents of the configuration. It may change as Hightouch updates its internal code.
    - `type` string, required — The source's type (e.g. snowflake or postgres).
  - ValidateErrorJSON
    - `message` 'Validation failed', required
    - `details` object, required
  - 'Internal Server Error'

## Other responses

- `401` — Unauthorized
- `409` — Conflict
- `422` — Validation Failed
- `500` — Something went wrong

---

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