Skip to main content
POST
Create an API key (admin, interactive session only)

Authorizations

Authorization
string
header
required

Firebase ID token from an interactive portal session. Required for interactive operations (payroll, company settings, API-key management) and invoice decisions allowed by the member's review permissions.

Body

application/json
name
string
required

Human-readable key name (max 120 characters).

Maximum string length: 120
scope
enum<string>
required

read keys are refused on all mutating methods; write keys act as the operator role.

Available options:
read,
write

Response

Key created. The secret is returned only in this response.

api_key
string

The bearer secret, lac_sk_.... Shown only once.

record
object

Portal API key metadata (never contains the secret).