xeonr.auth.api.v1.AutomationKeysService
AutomationKeysService is how a product creates and manages automation keys on a person's behalf (AUTH-191): Lantern's synthetics create the key a flow mints its tokens from. It is the public face of the portal's ApplicationsService automation-key RPCs and runs the same code. The caller is a person's access token carrying auth:automation-keys:manage, a scope a product's client holds through an approved binding to the auth application. The scope alone authorises nothing: each call is also held to the person's own standing on the named application, exactly as the portal is — an organisation administrator may act on any application except auth's own, anybody else only on applications owned by a team they own (listing needs only membership). Anything the person cannot reach answers NotFound. Service accounts and automation keys cannot call it, and neither can a person whose account is itself automation-flagged: a key must never be a route to another key.
postCreate Automation Key
Creates an automation key on an application the caller administers, bound to an automation-flagged user, and returns its secret exactly once. The same validation as the portal: the name is unique among the application's live keys, each client must be the application's own, and the expiry is bounded by the platform's lifetime limits. **Required scopes:** `auth:automation-keys:manage`
postGet Automation Key
Returns one automation key of an application the caller can see, revoked or not. The secret is never returned. **Required scopes:** `auth:automation-keys:manage`
postList Automation Key Targets
What a key can be created for: the applications the caller administers, each with its clients, and the organisation's automation-flagged users. For the product's create form. **Required scopes:** `auth:automation-keys:manage`
postList Automation Keys
Lists the automation keys on an application the caller can see (an organisation administrator, or a member of the owning team). Secrets are never returned. **Required scopes:** `auth:automation-keys:manage`
postRevoke Automation Key
Revokes an automation key on an application the caller administers, optionally deleting every credential it issued. **Required scopes:** `auth:automation-keys:manage`
Get Redirect URLs POST
Returns the OAuth redirect URLs configured for an application, used to initiate the authentication flow. No authentication required.
Create Automation Key POST
Creates an automation key on an application the caller administers, bound to an automation-flagged user, and returns its secret exactly once. The same validation as the portal: the name is unique among the application's live keys, each client must be the application's own, and the expiry is bounded by the platform's lifetime limits. **Required scopes:** `auth:automation-keys:manage`