Variable: GatewayWorkspaceCreateResponseSchema
const GatewayWorkspaceCreateResponseSchema: ZodObject<{
id: ZodString;
name: ZodString;
slug: ZodString;
description: ZodNullable<ZodString>;
created_at: ZodString;
last_updated_at: ZodString;
scope_name: ZodString;
object: ZodString;
defaults: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
users: ZodOptional<ZodArray<ZodUnknown, "many">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
id: ZodString;
name: ZodString;
slug: ZodString;
description: ZodNullable<ZodString>;
created_at: ZodString;
last_updated_at: ZodString;
scope_name: ZodString;
object: ZodString;
defaults: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
users: ZodOptional<ZodArray<ZodUnknown, "many">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
id: ZodString;
name: ZodString;
slug: ZodString;
description: ZodNullable<ZodString>;
created_at: ZodString;
last_updated_at: ZodString;
scope_name: ZodString;
object: ZodString;
defaults: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
users: ZodOptional<ZodArray<ZodUnknown, "many">>;
}, ZodTypeAny, "passthrough">>;
Defined in: src/models/ai-gateway.ts:495
POST /ai_gw/admin/v2/workspaces response — verified live 2026-08-01.
The exception to this subsystem's "receipt, not record" write pattern. configs.create(),
guardrails.create(), providers.create(), and deployments.create() each return a 4-5 field
receipt; workspace create returns most of the record instead.
It is still not the full detail shape — status, is_default, icon, usage_limits,
rate_limits, and the settings blocks are all absent — so call get() when you need those.
Conversely users appears here and nowhere else.