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

# Create workspace

`POST /workspaces`

## Headers

- `X-Activeloop-Org-Id` string

## Request body

- GithubComActiveloopaiDeeplakeApiInternalWorkspacesCreateWorkspaceRequest
  - `credential_id` string — Optional managed credential to bind at creation; pins workspace storage to that credential's base_path. Must belong to the same org.
  - `id` string — Workspace ID (1-36 chars, alphanumeric with hyphens/underscores)
  - `name` string — Display name (defaults to ID if not provided)
  - `type` string — Workspace type ID (defaults to "generic" if not provided)

## Response `201`

Created

- GithubComActiveloopaiDeeplakeApiInternalWorkspacesWorkspaceResponse
  - `workspace` GithubComActiveloopaiDeeplakeApiInternalWorkspacesWorkspace
    - `access_level` string — Response-only fields (populated when fetching with user permissions)
    - `created_at` string
    - `creator_id` string
    - `id` string
    - `name` string
    - `org_id` string
    - `type` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

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