# Create a team workspace

Any authenticated user. Slug auto-derived; caller becomes owner and the new workspace becomes their default. Returns 200 with a new workspace-scoped access token (workspace payload without tools here).
A "General" team is created with the workspace and the caller becomes its lead. Everyone who joins later is enrolled in it automatically, so no member is ever left with an empty teams[] claim.

Canonical: https://easerix.com/docs/developers/api/auth/workspaces/createWorkspace

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="auth" operations={[{"path":"/v1/workspaces","method":"post"}]} />
    </>
  );
}
