How it works
Expiry: 1–365 days, default 30. Set expiresInDays to null only with an active serviceAccountId to issue a key without expiration. Such keys remain valid until revoked; restrict their permissions and replace them regularly. Maximum 200 records per workspace including revoked keys. Secrets are never replayed. Revoke and replace lost keys.
Set serviceAccountId for organization-owned keys. Every requested scope must fit the active account permission ceiling; users:invite always requires a service account. Secrets are shown once. Create a second key and revoke the first for rotation.
Request body
namestringrequiredmin length 1 · max length 80scopesarrayrequiredmin items 1 · max items 7serviceAccountIdstringoptionaluuidexpiresInDaysintegeroptionalmin 1 · max 365 · default 30Request essentials
- Authorization
- Bearer $FLOW2ACT_ACCESS_TOKEN
- X-Organization-Id
- Your workspace UUID
- Idempotency-Key
- Stable per operation; 8–128 characters

