---
title: "Create a deployment"
method: POST
path: "/v1/gateway-deployments"
---

# Create a deployment

`POST /v1/gateway-deployments`

## Request

- Base URL: `https://api.skysay.ai`
- URL: `https://api.skysay.ai/v1/gateway-deployments`
- Auth: none declared

Registers a gateway deployment. organization_id and project_id are optional: a self-hoster holding one API key has no route to look either id up, so they default to the principal's own organization and that organization's first project. A supplied organization must be the principal's own, and a supplied project must belong to it.

## Request body

- GatewayDeployment
  - `carrier_account_id` string
  - `deployment_model_id` 'fully_managed_cloud' | 'managed_numbers_self_hosted_gateway'
  - `mode` 'cloud_hosted' | 'self_hosted'
  - `organization_id` string: Optional. Defaults to the authenticated principal's own organization. When supplied it must match it; another workspace is refused.
  - `plan_id` string
  - `project_id` string: Optional. Defaults to the organization's first project. When supplied it must belong to that organization.
  - `provider_account_id` string

## Response `201`

Gateway

---

[API](https://skmtc.dev/skysay/apis/skysay-api.md) · [All operations](https://skmtc.dev/skysay/apis/skysay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skysay/apis/skysay-api/revisions/95b8c66f99aa?raw)
