Create an endpoint
resourceGroupIds and secrets[].secretReferenceId must reference resource groups / secret references that belong to this same namespace, otherwise the request returns 400.
Authentication
AuthorizationBearer
WorkOS organization API key (Authorization: Bearer sk_…).
Path parameters
namespaceId
Headers
Idempotency-Key
Optional idempotency key; a replay within the retention window returns the stored response.
Request
This endpoint expects an object.
method
host
path
Must start with ”/”.
status
metadata
Arbitrary JSON object, or null.
resourceGroupIds
secrets
Response
Created
data
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error

