Create a namespace

Authentication

AuthorizationBearer

WorkOS organization API key (Authorization: Bearer sk_…).

Headers

Idempotency-KeystringOptional

Optional idempotency key; a replay within the retention window returns the stored response.

Request

This endpoint expects an object.
namestringRequired<=255 characters
descriptionstring or nullOptional<=1000 characters
metadatamap from strings to anyOptional
Arbitrary JSON object, or null.

Response

Created
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error