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
WorkOS API key (Authorization: Bearer sk_…). Scope comes from the key’s permissions: a key carrying passport:admin has admin scope (full catalog CRUD), any other key has member scope (reads + access requests). Organization-owned keys are admin by ownership and carry no associated user; keys minted for a user carry theirs, which is what access requests and createdBy are attributed to.
Path parameters
Headers
Optional idempotency key, retained 24h and bound to the request that first used it. Resending the same request replays the stored response (with Idempotent-Replayed: true); reusing the key with a different body or path returns 422; retrying while the original is still in flight returns 409 with Retry-After. A failed request releases its key.
Request
Stored lower-cased, so the response may differ in case from the request.
Must start with ”/”. Stored as sent (case-sensitive).
Response headers
RFC 8288 next-step relations (e.g. resource-groups, secret-bindings, cancel).

