{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/endurain/json-schema/endurain-post-api-v1-profile-api-keys-request-schema.json",
  "title": "PostApiV1ProfileApiKeysRequest",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/endurain-openapi-generated.yml#/components/schemas/PostApiV1ProfileApiKeysRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Human-readable label (max 100 characters)"
    },
    "scopes": {
      "type": "array",
      "description": "Array of API-key scopes to grant. Currently only activities:upload is accepted"
    },
    "expires_at": {
      "type": "string",
      "description": "ISO 8601 expiry datetime. Omit or null for no expiry"
    },
    "current_password": {
      "type": "string",
      "description": "Required for accounts with a local password. Omit for SSO-only accounts"
    },
    "mfa_code": {
      "type": "string",
      "description": "Required when MFA is enabled on the account"
    }
  },
  "required": [
    "name",
    "scopes"
  ]
}