# Create a workspace API key

Full sessions only; team workspaces only; org.settings.manage. role honored (member or admin, never owner). 200 with show-once secret.

`billing` is refused with `code: billing_key_unusable`. A key exists to call APIs and there is no API a billing principal can call: every product gates on the tool check, which refuses a role holding no product seat, and org.billing.manage is carried by the matrix but used by no route. The key would authenticate and 403 on everything else, so it is refused at creation rather than discovered in production.

Canonical: https://easerix.com/docs/developers/api/auth/api-keys/createWorkspaceApiKey

{/* 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/{id}/api-keys","method":"post"}]} />
    </>
  );
}
