Create workspace repository write token
Mints a repository-scoped write token with scheduled revocation. Token material is returned only once. The schedule is cleanup intent, not provider-enforced expiry; access can continue until revocation succeeds.
Authorizations
workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens
Headers
Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens — a workspace-owned token implies its workspace.
1 - 53"ws_j572abc123def456"
Required caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.
1 - 64"create-prod-2026-05-07"
Path Parameters
1 - 55Body
Seconds until the platform begins scheduled token revocation. Minimum is 60 seconds, maximum is one hour, and the schedule is capped to the remaining repository lifetime.
60 <= x <= 3600Response
Workspace repository write token created
1 - 55Unix timestamp (seconds) when scheduled best-effort revocation begins; the provider does not enforce expiry at this timestamp.
x >= 0