API Keys API
Create and manage API keys for programmatic (machine-to-machine) access. API keys are scoped per tenant and carry the same permission model as user tokens.
Base URL: https://id.vyntech.com.au/api/v1 — Requires api-keys:manage permission. API keys use the Authorization: Bearer vyn_key_... format for authentication.
List API Keys
Returns all API keys for the current tenant. The key value is only shown once at creation time — this endpoint returns masked keys.
/api/v1/api-keys🔒 AuthList all API keys in the current tenant.
Create API Key
Creates a new API key. The full key value is returned only in this response — store it securely. You cannot retrieve it again. Optionally set an expiration date and specific permissions.
/api/v1/api-keys🔒 AuthCreate a new API key.
{
"name": "Production Backend",
"permissions": ["users:read", "sessions:read", "authz:check"],
"expires_at": "2025-12-31T23:59:59Z"
}Security warning: The full API key is only returned once in this response. Store it in a secrets manager (AWS Secrets Manager, HashiCorp Vault, etc.). If lost, revoke and create a new one.
Revoke API Key
Permanently revokes an API key. Any requests using this key will immediately receive 401. This action is irreversible.
/api/v1/api-keys/:id🔒 AuthRevoke (delete) an API key.