key field: capture it now, it is unreadable afterwards. The new key can never exceed the one that created it: not in scope, not in permissions, and not in lifetime. Omit a field to copy it from the calling credential.
Calls
POST /v1/me/api-keysOptions
A label you will recognise later. It is the only thing that tells two credentials apart in the list you revoke from.
Project the credential assumes when a request sends no X-Roark-Project-Id header. Defaults to the calling credential’s own default project. You must be an admin of whichever project is used.
Coarse tier. Defaults to the calling credential’s own tier, and can never exceed it: a READ credential cannot mint a WRITE one. One of
READ, WRITE Repeatable.Granular ‘resource:action’ permissions. Defaults to the calling credential’s own set, and can never exceed it. A ceiling, not an entitlement: the holder still only reaches what their project membership allows. Repeatable.
ISO 8601 expiry. Defaults to the calling credential’s own expiry (no expiry, for a
roark auth login credential) and may not outlive it, so a short-lived connector credential cannot mint a permanent one.