---
title: "Import Environment Configuration"
method: POST
path: "/api/v1/environment/import"
tags: ["Environment"]
---

# Import Environment Configuration

`POST /api/v1/environment/import`

Import a configuration into the active organization.

It doesn't delete anything, only adds / updates what was passed to it.

Note that the schema for [`EnvironmentIn`] is subject to change. The fields
herein are provided for convenience but should be treated as JSON blobs.

## Headers

- `idempotency-key` string

## Request body

- EnvironmentIn
  - `eventTypes` EventTypeIn[], nullable
    - `name` string, required — The event type's name
    - `description` string, required
    - `archived` boolean
    - `deprecated` boolean
    - `schemas` object, nullable — The schema for the event type for a specific version as a JSON schema.
    - `groupName` string, nullable — The event type group's name
    - `featureFlags` string[], nullable
    - `featureFlag` string, nullable — Deprecated, use `featureFlags` instead.
  - `settings` object, nullable
  - `connectors` ConnectorIn[], nullable
    - `name` string, required
    - `uid` string, nullable — The Connector's UID.
    - `logo` string, uri, nullable
    - `description` string
    - `kind` 'Custom' | 'AgenticCommerceProtocol' | 'CloseCRM' | 'CustomerIO' | 'Discord' | 'Hubspot' | 'Inngest' | 'Loops' | 'Otel' | 'Resend' | 'Salesforce' | 'Segment' | 'Sendgrid' | 'Slack' | 'Teams' | 'TriggerDev' | 'Windmill' | 'Zapier'
    - `instructions` string
    - `allowedEventTypes` string[], nullable
    - `transformation` string, required
    - `featureFlags` string[], nullable
    - `productType` 'Dispatch' | 'Stream'

## Response `204`

no content

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

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