---
title: "Create a Decodable Account."
method: POST
path: "/accounts"
tags: ["Account Operations"]
---

# Create a Decodable Account.

`POST /accounts`

## Request

- Base URL: `https://replace-with-account.api.decodable.co/v1alpha2`
- URL: `https://replace-with-account.api.decodable.co/v1alpha2/accounts`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://auth.decodable.co/authorize?audience=https://api.decodable.co/`
    - Token URL: `https://auth.decodable.co/oauth/token`
- TypeScript: <https://skmtc.dev/decodable/apis/decodable-control-plane/docs/accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

Any authenticated user (not app client) has permission to create an Account.

## Request body

- object: Account Subscription Info
  - `name` string, required: The Decodable Account name, globally unique, hostname segment compliant.
  - `display_name` string, required: Unconstrained, for display.
  - `auth0_org_id` string, required: The organization id from Auth0 for this account
  - `subscription` object, required: Subscription information
    - `plan_id` string: plan id
  - `deployment_type` string, required: Deployment type
  - `region` string, required: Cloud region in which the account should be created
  - `invite_emails` string[]: Emails to which invites to the new account should be sent

## Response `201`

A Decodable Account creation response.

- AccountResponse: Subscription properties, including derived fields
  - `name` string, required: The Decodable Account name, globally unique, hostname segment compliant.
  - `display_name` string, required: Unconstrained, for display.
  - `auth0_org_id` string, required: The organization id from Auth0 for this account
  - `subscription` Subscription, required: Subscription information
    - `plan_id` string: plan id
    - `capabilities` string[]: Describes which additional capabilities are enabled for this account. Possible values are "custom_pipelines". New values may be added in future API versions; consumers should be able to gracefully handle unknown values.

## Other responses

- `400`: An invalid request was received.
- `409`: A conflicting resource already exists.
- `default`: An error has occurred.

---

[API](https://skmtc.dev/decodable/apis/decodable-control-plane.md) - [All operations](https://skmtc.dev/decodable/apis/decodable-control-plane/llms.txt) - [OpenAPI document](https://skmtc.dev/decodable/apis/decodable-control-plane/revisions/9718a3019da8?raw)
