---
title: "Create a workspace"
method: POST
path: "/workspaces"
tags: ["Workspaces"]
---

# Create a workspace

`POST /workspaces`

## Request

- Base URL: `https://api.rendley.com/v1`
- URL: `https://api.rendley.com/v1/workspaces`
- Auth: API key in header `Authorization`

Create a new workspace for the authenticated user.

## Request body

- TypesCreateWorkspaceInput
  - `name` string, required: Max matches the workspaces.name column (VARCHAR(255)).

## Response `200`

OK

- object
  - `data` object: Success data
    - `created_by` string
    - `id` string
    - `name` string
    - `social_analytics` boolean
    - `social_publishing` boolean
    - `templates` boolean
  - `error` HttpResponseAPIError
    - `code` string
    - `fields` HttpResponseFieldError[]
      - `field` string
      - `message` string
    - `message` string
  - `meta` unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/rendley/apis/rendley-api.md) - [All operations](https://skmtc.dev/rendley/apis/rendley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rendley/apis/rendley-api/revisions/7eb8713bbf78?raw)
