{
  "basePath": "/",
  "definitions": {
    "handler.ABTestRequest": {
      "properties": {
        "name": {
          "type": "string"
        },
        "recipients": {
          "items": {
            "$ref": "#/definitions/handler.EmailRecipient"
          },
          "type": "array"
        },
        "split_percentage": {
          "type": "integer"
        },
        "variants": {
          "items": {
            "$ref": "#/definitions/handler.ABVariantRequest"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "handler.ABVariantRequest": {
      "properties": {
        "body": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.BulkEmailRequest": {
      "properties": {
        "contact_tag": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "recipients": {
          "items": {
            "$ref": "#/definitions/handler.EmailRecipient"
          },
          "type": "array"
        },
        "scheduled_at": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "template_id": {
          "type": "string"
        },
        "track": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "handler.BulkSaveContactsRequest": {
      "properties": {
        "contacts": {
          "items": {
            "$ref": "#/definitions/handler.bulkContact"
          },
          "type": "array"
        },
        "group": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CampaignRequest": {
      "properties": {
        "contact_tag": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "recipients": {
          "items": {
            "$ref": "#/definitions/handler.EmailRecipient"
          },
          "type": "array"
        },
        "scheduled_at": {
          "type": "string"
        },
        "subject_override": {
          "type": "string"
        },
        "target_groups": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "template_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.ChangePasswordRequest": {
      "properties": {
        "current_password": {
          "type": "string"
        },
        "new_password": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CloudAccountRequest": {
      "example": {
        "access_token": "YOUR_META_SYSTEM_USER_TOKEN",
        "name": "Support number",
        "phone_number_id": "YOUR_PHONE_NUMBER_ID",
        "waba_id": "YOUR_WABA_ID"
      },
      "properties": {
        "access_token": {
          "format": "password",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "phone_number_id": {
          "type": "string"
        },
        "waba_id": {
          "type": "string"
        },
        "webhook_url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CloudBulkSendRequest": {
      "example": {
        "message": "Your order is ready.",
        "recipients": [
          "254700000000",
          "254711111111"
        ],
        "scheduled_at": "2026-09-18T09:00:00Z",
        "type": "text"
      },
      "properties": {
        "caption": {
          "type": "string"
        },
        "file_name": {
          "type": "string"
        },
        "media_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "params": {
          "additionalProperties": true,
          "type": "object"
        },
        "preview_url": {
          "type": "boolean"
        },
        "purpose": {
          "type": "string"
        },
        "recipients": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "scheduled_at": {
          "type": "string"
        },
        "template_components": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "template_language": {
          "type": "string"
        },
        "template_name": {
          "type": "string"
        },
        "time_delay": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CloudTemplateRequest": {
      "properties": {
        "category": {
          "type": "string"
        },
        "components": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "language": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.ContactRequest": {
      "properties": {
        "email": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CreateContactRequest": {
      "properties": {
        "channels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "custom_data": {
          "additionalProperties": true,
          "type": "object"
        },
        "email": {
          "type": "string"
        },
        "groups": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "handler.CreateContactTagRequest": {
      "properties": {
        "contact_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CreateGroupRequest": {
      "properties": {
        "color": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CreateSubscriptionRequest": {
      "properties": {
        "plan_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.CreateTemplateRequest": {
      "properties": {
        "content": {
          "type": "string"
        },
        "is_default": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "params": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "handler.CreateUserProviderRequest": {
      "properties": {
        "auth_key": {
          "type": "string"
        },
        "headers": {
          "additionalProperties": true,
          "type": "object"
        },
        "is_default": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "provider_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.EmailRecipient": {
      "properties": {
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "variables": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "handler.EmailSettingsRequest": {
      "properties": {
        "base_url": {
          "type": "string"
        },
        "encryption": {
          "type": "string"
        },
        "from_email": {
          "type": "string"
        },
        "from_name": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "resend_api_key": {
          "type": "string"
        },
        "smtp_host": {
          "type": "string"
        },
        "smtp_pass": {
          "type": "string"
        },
        "smtp_port": {
          "type": "string"
        },
        "smtp_user": {
          "type": "string"
        },
        "weekly_report": {
          "type": "boolean"
        },
        "zeptomail_token": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.EmailTemplateRequest": {
      "properties": {
        "body": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "design": {
          "additionalProperties": true,
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "revision": {
          "type": "integer"
        },
        "subject": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.ForgotPasswordRequest": {
      "properties": {
        "email": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.GroupContactsRequest": {
      "properties": {
        "contact_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "handler.LoginRequest": {
      "properties": {
        "email": {
          "type": "string"
        },
        "password": {
          "format": "password",
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.MediaURLRequest": {
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.PublishRequest": {
      "properties": {
        "expected_version": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.RegisterRequest": {
      "properties": {
        "countryCode": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "password": {
          "format": "password",
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "plan_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.RenameContactTagRequest": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.ReplyRequest": {
      "properties": {
        "channel": {
          "type": "string"
        },
        "device_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.ResetPasswordRequest": {
      "properties": {
        "password": {
          "format": "password",
          "type": "string"
        },
        "token": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.SendEmailAPIRequest": {
      "example": {
        "html_body": "<p>Your order is ready.</p>",
        "subject": "Order confirmation",
        "to": "customer@example.com"
      },
      "properties": {
        "body": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "scheduled_at": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "template_id": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "to_name": {
          "type": "string"
        },
        "track": {
          "type": "boolean"
        },
        "variables": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "handler.UnifiedSendRequest": {
      "example": {
        "channel": "sms",
        "message": "Your order is ready.",
        "recipient": "254700000000"
      },
      "properties": {
        "channel": {
          "type": "string"
        },
        "device_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "provider_id": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "recipient": {
          "type": "string"
        },
        "senderID": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "template_id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "variables": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "handler.UpdateContactRequest": {
      "properties": {
        "channels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "custom_data": {
          "additionalProperties": true,
          "type": "object"
        },
        "email": {
          "type": "string"
        },
        "groups": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "handler.UpdateGroupRequest": {
      "properties": {
        "color": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.UpdateProfileRequest": {
      "properties": {
        "country_code": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "lid_contacts": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.UpdateTwoFactorRequest": {
      "properties": {
        "current_password": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "handler.VerifyCallbackCreateRequest": {
      "example": {
        "url": "https://example.com/hooks/otp"
      },
      "properties": {
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.VerifyLoginOTPRequest": {
      "properties": {
        "challenge_token": {
          "type": "string"
        },
        "code": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.VerifySandboxKeyRequest": {
      "example": {
        "scopes": [
          "otp:send",
          "otp:verify",
          "otp:read",
          "otp:cancel"
        ],
        "ttl_seconds": 3600
      },
      "properties": {
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "ttl_seconds": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.VerifySandboxProjectRequest": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.WorkflowRequest": {
      "properties": {
        "actions": {
          "items": {
            "$ref": "#/definitions/models.WorkflowAction"
          },
          "type": "array"
        },
        "conditions": {
          "items": {
            "$ref": "#/definitions/models.WorkflowCondition"
          },
          "type": "array"
        },
        "expected_version": {
          "type": "integer"
        },
        "is_active": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "trigger": {
          "$ref": "#/definitions/models.WorkflowTrigger"
        }
      },
      "type": "object"
    },
    "handler.WorkflowTestRequest": {
      "properties": {
        "actions": {
          "items": {
            "$ref": "#/definitions/models.WorkflowAction"
          },
          "type": "array"
        },
        "sample": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "handler.acceptInviteRequest": {
      "properties": {
        "token": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.actionRequest": {
      "properties": {
        "ai_key_id": {
          "type": "string"
        },
        "attachment": {
          "type": "string"
        },
        "is_active": {
          "type": "boolean"
        },
        "match": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.addDomainRequest": {
      "properties": {
        "domain": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.aiKeyRequest": {
      "properties": {
        "api_key": {
          "type": "string"
        },
        "history": {
          "type": "integer"
        },
        "is_active": {
          "type": "boolean"
        },
        "max_tokens": {
          "type": "integer"
        },
        "model": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "post_prompt": {
          "type": "string"
        },
        "prompt": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "transcription": {
          "type": "boolean"
        },
        "vision": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "handler.approveCampaignDraftRequest": {
      "properties": {
        "quote_token": {
          "type": "string"
        },
        "revision": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.archiveCampaignDraftRequest": {
      "properties": {
        "revision": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.archiveSegmentRequest": {
      "properties": {
        "status": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.billingModeRequest": {
      "properties": {
        "acknowledge": {
          "type": "boolean"
        },
        "acknowledged_amount": {
          "type": "string"
        },
        "billing_workspace_id": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "revision": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.bulkContact": {
      "properties": {
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.bulkDeviceSmsRequest": {
      "properties": {
        "message": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "recipients": {
          "items": {
            "$ref": "#/definitions/services.SmsRecipient"
          },
          "type": "array"
        },
        "scheduled_at": {
          "type": "string"
        },
        "sim": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.campaignDraftAudienceRequest": {
      "properties": {
        "exclusions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "selector": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.campaignDraftContentRequest": {
      "properties": {
        "body": {
          "type": "string"
        },
        "template_id": {
          "type": "string"
        },
        "template_version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.campaignDraftScheduleRequest": {
      "properties": {
        "start_at": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.campaignDraftSourceRequest": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.campaignRequest": {
      "properties": {
        "device_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "recipients": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "senderID": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.contactIdentityPreviewConflict": {
      "properties": {
        "code": {
          "type": "string"
        },
        "contact_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "kind": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.contactIdentityPreviewMatch": {
      "properties": {
        "contact_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "kind": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.contactIdentityPreviewRequest": {
      "properties": {
        "email": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.contactIdentityPreviewView": {
      "properties": {
        "conflicts": {
          "items": {
            "$ref": "#/definitions/handler.contactIdentityPreviewConflict"
          },
          "type": "array"
        },
        "matched_contact_id": {
          "type": "string"
        },
        "matches": {
          "items": {
            "$ref": "#/definitions/handler.contactIdentityPreviewMatch"
          },
          "type": "array"
        },
        "outcome": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.contactMergeReviewRequest": {
      "properties": {
        "decisions": {
          "items": {
            "$ref": "#/definitions/services.ContactMergeDecision"
          },
          "type": "array"
        },
        "if_review_version": {
          "type": "string"
        },
        "source_id": {
          "type": "string"
        },
        "survivor_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.createCampaignDraftRequest": {
      "properties": {
        "audience": {
          "$ref": "#/definitions/handler.campaignDraftAudienceRequest"
        },
        "channel": {
          "type": "string"
        },
        "content": {
          "$ref": "#/definitions/handler.campaignDraftContentRequest"
        },
        "name": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "schedule": {
          "$ref": "#/definitions/handler.campaignDraftScheduleRequest"
        },
        "source": {
          "$ref": "#/definitions/handler.campaignDraftSourceRequest"
        }
      },
      "type": "object"
    },
    "handler.createContactFieldRequest": {
      "properties": {
        "group_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "key": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "options": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "position": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.createSegmentRequest": {
      "properties": {
        "definition": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.createWorkspaceRequest": {
      "properties": {
        "name": {
          "type": "string"
        },
        "parent_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.creditTransferRequest": {
      "properties": {
        "idempotency_key": {
          "type": "string"
        },
        "quantity": {
          "type": "integer"
        },
        "reason": {
          "type": "string"
        },
        "to_workspace_id": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.customerLink": {
      "properties": {
        "analytics": {
          "type": "boolean"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "destination": {
          "type": "string"
        },
        "disabled_at": {
          "format": "date-time",
          "type": "string"
        },
        "expires_at": {
          "format": "date-time",
          "type": "string"
        },
        "grace_days": {
          "type": "integer"
        },
        "id": {
          "type": "string"
        },
        "private_asset": {
          "type": "boolean"
        },
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.deniedActionsRequest": {
      "properties": {
        "denied_actions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "handler.deviceLoginRequest": {
      "properties": {
        "did": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "manufacturer": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "password": {
          "format": "password",
          "type": "string"
        },
        "sims": {
          "items": {
            "$ref": "#/definitions/models.SmsDeviceSim"
          },
          "type": "array"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.devicePairRequest": {
      "properties": {
        "did": {
          "type": "string"
        },
        "manufacturer": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "sims": {
          "items": {
            "$ref": "#/definitions/models.SmsDeviceSim"
          },
          "type": "array"
        },
        "token": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.dripControlRequest": {
      "properties": {
        "command": {
          "type": "string"
        },
        "expected_revision": {
          "type": "integer"
        },
        "signal": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.dripEnrollRequest": {
      "properties": {
        "contact": {
          "type": "string"
        },
        "cooldown_hours": {
          "type": "integer"
        },
        "enrollment_event": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.dripSequenceRequest": {
      "properties": {
        "execution_mode": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "reentry_policy": {
          "type": "string"
        },
        "source_id": {
          "type": "string"
        },
        "source_policy": {
          "type": "string"
        },
        "stop_group": {
          "type": "string"
        },
        "stop_policy": {
          "type": "string"
        },
        "stop_tag": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.emailTemplateImportRequest": {
      "properties": {
        "exported_at": {
          "additionalProperties": true,
          "type": "object"
        },
        "format": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.flowRequest": {
      "properties": {
        "flow_data": {
          "items": {
            "$ref": "#/definitions/models.FlowNode"
          },
          "type": "array"
        },
        "is_active": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.formConfirmRequest": {
      "properties": {
        "id": {
          "type": "string"
        },
        "token": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.formDefinitionRequest": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.formSubmitRequest": {
      "properties": {
        "channel": {
          "type": "string"
        },
        "contact": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "values": {
          "additionalProperties": true,
          "type": "object"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.fundWorkspaceWalletRequest": {
      "properties": {
        "amount": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "idempotency_key": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.inviteMemberRequest": {
      "properties": {
        "email": {
          "type": "string"
        },
        "role": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.lifecycleChangeRequest": {
      "properties": {
        "plan_id": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "version": {
          "type": "integer"
        },
        "version_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.ownershipTransferActionRequest": {
      "properties": {
        "leave": {
          "type": "boolean"
        },
        "transfer_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.ownershipTransferRequest": {
      "properties": {
        "leave": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer"
        },
        "to_user_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.personalizationPreviewRequest": {
      "properties": {
        "audience": {
          "$ref": "#/definitions/handler.campaignDraftAudienceRequest"
        },
        "channel": {
          "type": "string"
        },
        "content": {
          "$ref": "#/definitions/handler.campaignDraftContentRequest"
        },
        "purpose": {
          "type": "string"
        },
        "source": {
          "$ref": "#/definitions/handler.campaignDraftSourceRequest"
        }
      },
      "type": "object"
    },
    "handler.preflightCampaignDraftRequest": {
      "properties": {
        "revision": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.previewHTMLRequest": {
      "properties": {
        "html": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.previewSegmentRequest": {
      "properties": {
        "definition": {
          "type": "string"
        },
        "sample_limit": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.previewTemplateVersionRequest": {
      "properties": {
        "values": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "handler.publicConfirmRequest": {
      "properties": {
        "token": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.publicRevokeRequest": {
      "properties": {
        "token": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.publicTokenRequest": {
      "properties": {
        "canonical_only": {
          "type": "boolean"
        },
        "path": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.publishTemplateVersionRequest": {
      "properties": {
        "expected_revision": {
          "type": "integer"
        },
        "note": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.recordConsentRequest": {
      "properties": {
        "channel": {
          "type": "string"
        },
        "endpoint": {
          "type": "string"
        },
        "form_version": {
          "type": "string"
        },
        "granted": {
          "type": "boolean"
        },
        "purpose": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.reminderEventRequest": {
      "properties": {
        "amount": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "event_id": {
          "type": "string"
        },
        "external_reference": {
          "type": "string"
        },
        "occurred_at": {
          "type": "string"
        },
        "revision": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.reminderItemRequest": {
      "properties": {
        "amount": {
          "type": "string"
        },
        "contact": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "due_date": {
          "type": "string"
        },
        "external_reference": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "policy_version": {
          "type": "string"
        },
        "revision": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "variables": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "handler.renameChannelConnectionRequest": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.sendDeviceSmsRequest": {
      "properties": {
        "attachment": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "scheduled_at": {
          "type": "string"
        },
        "sim": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.updateCampaignDraftRequest": {
      "properties": {
        "audience": {
          "$ref": "#/definitions/handler.campaignDraftAudienceRequest"
        },
        "channel": {
          "type": "string"
        },
        "content": {
          "$ref": "#/definitions/handler.campaignDraftContentRequest"
        },
        "name": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "revision": {
          "type": "integer"
        },
        "schedule": {
          "$ref": "#/definitions/handler.campaignDraftScheduleRequest"
        },
        "source": {
          "$ref": "#/definitions/handler.campaignDraftSourceRequest"
        }
      },
      "type": "object"
    },
    "handler.updateDeviceRequest": {
      "properties": {
        "country": {
          "type": "string"
        },
        "global_device": {
          "type": "integer"
        },
        "global_priority": {
          "type": "integer"
        },
        "global_slots": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "random_max": {
          "type": "integer"
        },
        "random_min": {
          "type": "integer"
        },
        "random_send": {
          "type": "boolean"
        },
        "rate": {
          "type": "string"
        },
        "receive_sms": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.updateMemberRoleRequest": {
      "properties": {
        "role": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "managed.CheckoutRequest": {
      "example": {
        "account": "payment_provider_account:example",
        "amount": "100.000000",
        "currency": "KES",
        "phone": "+254712345678"
      },
      "properties": {
        "account": {
          "type": "string"
        },
        "amount": {
          "example": "10.500000",
          "pattern": "^-?\\d+(\\.\\d{1,6})?$",
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "quoteID": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "managed.Recipient": {
      "properties": {
        "countryCode": {
          "type": "string"
        },
        "phoneNumber": {
          "type": "string"
        },
        "variables": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "managed.SendRequest": {
      "example": {
        "allowDefaultSenderFallback": false,
        "message": "Your order is ready.",
        "phoneNumber": "+254712345678",
        "senderID": "GENIUS"
      },
      "properties": {
        "allowDefaultSenderFallback": {
          "type": "boolean"
        },
        "clientReference": {
          "type": "string"
        },
        "countryCode": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "phoneNumber": {
          "type": "string"
        },
        "quoteID": {
          "type": "string"
        },
        "recipients": {
          "items": {
            "$ref": "#/definitions/managed.Recipient"
          },
          "type": "array"
        },
        "scheduledAt": {
          "format": "date-time",
          "type": "string"
        },
        "senderID": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "managed.SenderRequest": {
      "example": {
        "documents": {
          "certificate": "sender_document:example"
        },
        "fields": {
          "company_name": "Example Ltd"
        },
        "name": "GENIUS",
        "telcos": [
          "telco:example"
        ]
      },
      "properties": {
        "documents": {
          "additionalProperties": true,
          "type": "object"
        },
        "fields": {
          "additionalProperties": true,
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "telcos": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "models.Contact": {
      "properties": {
        "channels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "custom_data": {
          "additionalProperties": true,
          "type": "object"
        },
        "email": {
          "type": "string"
        },
        "groups": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "is_active": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "user_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "workspace_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "models.FlowNode": {
      "properties": {
        "config": {
          "additionalProperties": true,
          "type": "object"
        },
        "id": {
          "type": "string"
        },
        "next": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "models.SmsDeviceSim": {
      "properties": {
        "carrier": {
          "type": "string"
        },
        "country_iso": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "number": {
          "type": "string"
        },
        "slot": {
          "type": "integer"
        },
        "subscription_id": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "models.WorkflowAction": {
      "properties": {
        "config": {
          "additionalProperties": true,
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "models.WorkflowCondition": {
      "properties": {
        "field": {
          "type": "string"
        },
        "operator": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "models.WorkflowTrigger": {
      "properties": {
        "config": {
          "additionalProperties": true,
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "models.WorkspaceAgent": {
      "properties": {
        "address": {
          "type": "string"
        },
        "approval_mode": {
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "created_by": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "daily_send_budget": {
          "type": "integer"
        },
        "description": {
          "type": "string"
        },
        "dry_run": {
          "type": "boolean"
        },
        "history_scope": {
          "type": "string"
        },
        "id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "inbox_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "minute_send_budget": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "paused_reason": {
          "type": "string"
        },
        "policy": {
          "$ref": "#/definitions/models.WorkspaceAgentPolicy"
        },
        "received_7d": {
          "type": "integer"
        },
        "revision": {
          "type": "integer"
        },
        "sent_today": {
          "type": "integer"
        },
        "slug": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "workspace_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "models.WorkspaceAgentApproval": {
      "properties": {
        "agent_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "decided_at": {
          "format": "date-time",
          "type": "string"
        },
        "decided_by": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "decision_reason": {
          "type": "string"
        },
        "delivery_status": {
          "type": "string"
        },
        "email_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "expires_at": {
          "format": "date-time",
          "type": "string"
        },
        "fingerprint": {
          "type": "string"
        },
        "html": {
          "type": "string"
        },
        "id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "in_reply_to": {
          "type": "string"
        },
        "inbox_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "kind": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "recipients": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "references": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "state": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "target_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "text": {
          "type": "string"
        },
        "thread_id": {
          "type": "string"
        },
        "workspace_id": {
          "properties": {
            "ID": {
              "type": "string"
            },
            "Table": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "models.WorkspaceAgentPolicy": {
      "properties": {
        "amount_currency": {
          "type": "string"
        },
        "amount_threshold": {
          "type": "string"
        },
        "watch_words": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "services.AgentCreateInput": {
      "properties": {
        "inbox": {
          "$ref": "#/definitions/services.AgentInboxInput"
        }
      },
      "type": "object"
    },
    "services.AgentDecisionInput": {
      "properties": {
        "fingerprint": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "services.AgentInboxInput": {
      "properties": {
        "domain": {
          "type": "string"
        },
        "inbox_id": {
          "type": "string"
        },
        "local_part": {
          "type": "string"
        },
        "provision": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "services.AgentKeyInput": {
      "properties": {
        "expires_at": {
          "format": "date-time",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "rotate_key_id": {
          "type": "string"
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "services.AgentSettingsInput": {
      "properties": {
        "approval_mode": {
          "type": "string"
        },
        "daily_send_budget": {
          "type": "integer"
        },
        "description": {
          "type": "string"
        },
        "dry_run": {
          "type": "boolean"
        },
        "history_scope": {
          "type": "string"
        },
        "minute_send_budget": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "policy": {
          "$ref": "#/definitions/models.WorkspaceAgentPolicy"
        },
        "slug": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "services.CloudSendRequest": {
      "example": {
        "template_language": "en_US",
        "template_name": "hello_world",
        "to": "254700000000",
        "type": "template"
      },
      "properties": {
        "address": {
          "type": "string"
        },
        "buttons": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "caption": {
          "type": "string"
        },
        "contact_name": {
          "type": "string"
        },
        "contact_phone": {
          "type": "string"
        },
        "emoji": {
          "type": "string"
        },
        "file_name": {
          "type": "string"
        },
        "latitude": {
          "type": "number"
        },
        "location_name": {
          "type": "string"
        },
        "longitude": {
          "type": "number"
        },
        "media_id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "message_id": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "preview_url": {
          "type": "boolean"
        },
        "purpose": {
          "type": "string"
        },
        "template_components": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "template_language": {
          "type": "string"
        },
        "template_name": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "services.ContactMergeDecision": {
      "properties": {
        "field": {
          "type": "string"
        },
        "from_contact_id": {
          "type": "string"
        },
        "key": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "services.ContactMergeField": {
      "properties": {
        "field": {
          "type": "string"
        },
        "key": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "services.ContactMergeProfile": {
      "properties": {
        "custom_data": {
          "additionalProperties": true,
          "type": "object"
        },
        "email": {
          "type": "string"
        },
        "is_active": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "services.ContactMergeReview": {
      "properties": {
        "actor_id": {
          "type": "string"
        },
        "apply_allowed": {
          "type": "boolean"
        },
        "apply_blockers": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "conflicts": {
          "items": {
            "$ref": "#/definitions/services.ContactMergeField"
          },
          "type": "array"
        },
        "consent_policy": {
          "type": "string"
        },
        "decisions": {
          "items": {
            "$ref": "#/definitions/services.ContactMergeDecision"
          },
          "type": "array"
        },
        "notes_status": {
          "type": "string"
        },
        "pending_decisions": {
          "items": {
            "$ref": "#/definitions/services.ContactMergeField"
          },
          "type": "array"
        },
        "proposed_group_names": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "proposed_profile": {
          "$ref": "#/definitions/services.ContactMergeProfile"
        },
        "proposed_tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "related": {
          "additionalProperties": true,
          "type": "object"
        },
        "review_version": {
          "type": "string"
        },
        "source": {
          "$ref": "#/definitions/models.Contact"
        },
        "source_id": {
          "type": "string"
        },
        "survivor": {
          "$ref": "#/definitions/models.Contact"
        },
        "survivor_id": {
          "type": "string"
        },
        "workspace_id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "services.SmsRecipient": {
      "properties": {
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "variables": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "info": {
    "description": "Authenticated dashboard operations for workspace, members, agents, teams, campaigns, contacts, inbox, automation, billing and channels. Sign in at POST /login and pass the JWT as Authorization: Bearer YOUR_JWT, with X-Workspace-ID to select a workspace. Successful responses use the { success, message, data } envelope; branch on data.error.code. IDs in paths are full record IDs such as users:abc123.",
    "title": "Bonga Dashboard API",
    "version": "1.0"
  },
  "paths": {
    "/api/actions": {
      "get": {
        "description": "Read actions. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_automationHandler_ListActions_GET_api_actions",
        "parameters": [
          {
            "in": "query",
            "name": "source",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Actions",
        "tags": [
          "Automation"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on actions. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_automationHandler_CreateAction_POST_api_actions",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.actionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Action",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/actions/{id}": {
      "delete": {
        "description": "Remove actions {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_automationHandler_DeleteAction_DELETE_api_actions_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Action",
        "tags": [
          "Automation"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace actions {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_automationHandler_UpdateAction_PUT_api_actions_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.actionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Action",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/ai/catalog": {
      "get": {
        "description": "Read ai catalog. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_aiHandler_Catalog_GET_api_ai_catalog",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Catalog",
        "tags": [
          "AI"
        ]
      }
    },
    "/api/ai/conversations": {
      "get": {
        "description": "Read ai conversations. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_aiHandler_ListConversations_GET_api_ai_conversations",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "conversation_key",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Conversations",
        "tags": [
          "AI"
        ]
      }
    },
    "/api/ai/keys": {
      "get": {
        "description": "Read ai keys. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_aiHandler_ListAiKeys_GET_api_ai_keys",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Ai Keys",
        "tags": [
          "AI"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on ai keys. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_aiHandler_CreateAiKey_POST_api_ai_keys",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.aiKeyRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Ai Key",
        "tags": [
          "AI"
        ]
      }
    },
    "/api/ai/keys/{id}": {
      "delete": {
        "description": "Remove ai keys {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_aiHandler_DeleteAiKey_DELETE_api_ai_keys_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Ai Key",
        "tags": [
          "AI"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace ai keys {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_aiHandler_UpdateAiKey_PUT_api_ai_keys_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.aiKeyRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Ai Key",
        "tags": [
          "AI"
        ]
      }
    },
    "/api/ai/keys/{id}/test": {
      "post": {
        "description": "Create or act on ai keys {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_aiHandler_TestAiKey_POST_api_ai_keys_id_test",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Test Ai Key",
        "tags": [
          "AI"
        ]
      }
    },
    "/api/analytics/overview": {
      "get": {
        "description": "Read analytics overview. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_unifiedHandler_Overview_GET_api_analytics_overview",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Overview",
        "tags": [
          "Analytics"
        ]
      }
    },
    "/api/apikeys": {
      "get": {
        "description": "Read apikeys. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_apikeyHandler_GetApiKeys_GET_api_apikeys",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Api Keys",
        "tags": [
          "API keys"
        ]
      },
      "post": {
        "description": "Create or act on apikeys. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_apikeyHandler_CreateApiKey_POST_api_apikeys",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Api Key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/apikeys/options": {
      "get": {
        "description": "Read apikeys options. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_apikeyHandler_Options_GET_api_apikeys_options",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Options",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/apikeys/{id}": {
      "delete": {
        "description": "Remove apikeys {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_apikeyHandler_DeleteApiKey_DELETE_api_apikeys_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Api Key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/apikeys/{id}/limits": {
      "patch": {
        "description": "Update apikeys {id} limits. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_apikeyHandler_UpdateLimits_PATCH_api_apikeys_id_limits",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Limits",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/apikeys/{id}/rotate": {
      "post": {
        "description": "Create or act on apikeys {id} rotate. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_apikeyHandler_RotateApiKey_POST_api_apikeys_id_rotate",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Rotate Api Key",
        "tags": [
          "API keys"
        ]
      }
    },
    "/api/auth/forgot-password": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on auth forgot password. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_ForgotPassword_POST_api_auth_forgot_password",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ForgotPasswordRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Forgot Password",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/api/auth/logout-all": {
      "post": {
        "description": "Create or act on auth logout all. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_LogoutAll_POST_api_auth_logout_all",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Logout All",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/api/auth/reset-password": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on auth reset password. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_ResetPassword_POST_api_auth_reset_password",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ResetPasswordRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Reset Password",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/api/automation-runs": {
      "get": {
        "description": "Read automation runs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_automationRuntimeHandler_List_GET_api_automation_runs",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/automation-runs/{id}": {
      "get": {
        "description": "Read automation runs {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_automationRuntimeHandler_Get_GET_api_automation_runs_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/automation/catalog": {
      "get": {
        "description": "Read automation catalog. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_automationCatalogHandler_Catalog_GET_api_automation_catalog",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Catalog",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/campaign-drafts": {
      "get": {
        "description": "Read campaign drafts. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_campaignDraftHandler_List_GET_api_campaign_drafts",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Campaigns"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on campaign drafts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignDraftHandler_Create_POST_api_campaign_drafts",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.createCampaignDraftRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-drafts/personalization-preview": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Resolves real per-recipient values for an inline body over a saved segment or contact group and reports missing fields without sending or storing anything. Requires campaigns.create or campaigns.update, contacts.view, and contacts.pii.read for phone/email values.",
        "operationId": "dashboard_campaignDraftHandler_PreviewPersonalization_POST_api_campaign_drafts_personalization_preview",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.personalizationPreviewRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace, campaign, contact or contact PII access is missing",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview Personalization",
        "tags": [
          "Campaign Drafts"
        ]
      }
    },
    "/api/campaign-drafts/{id}": {
      "get": {
        "description": "Read campaign drafts {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_campaignDraftHandler_Get_GET_api_campaign_drafts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Campaigns"
        ]
      },
      "patch": {
        "consumes": [
          "application/json"
        ],
        "description": "Update campaign drafts {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignDraftHandler_Update_PATCH_api_campaign_drafts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.updateCampaignDraftRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-drafts/{id}/approve": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Rechecks the exact published email template pin before recording approval. Using phone or email variables requires contacts.pii.read.",
        "operationId": "dashboard_campaignDraftHandler_Approve_POST_api_campaign_drafts_id_approve",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.approveCampaignDraftRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required campaign or contact PII grant is missing",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "410": {
            "description": "Response"
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Approve",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-drafts/{id}/archive": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on campaign drafts {id} archive. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignDraftHandler_Archive_POST_api_campaign_drafts_id_archive",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.archiveCampaignDraftRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Archive",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-drafts/{id}/launch": {
      "post": {
        "description": "Available only when campaign runs are enabled. Published email freezes the referenced values; the worker rechecks the launcher's grant before rendering protected endpoint values. Using phone or email variables requires contacts.pii.read.",
        "operationId": "dashboard_campaignRunHandler_Launch_POST_api_campaign_drafts_id_launch",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required campaign or contact PII grant is missing",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Launch",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-drafts/{id}/preflight": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "When campaign runs are enabled, email can use a workspace-owned published content.template_id and an exact positive version string in content.template_version, with no inline body. Structured money and multi-select variables are supported only in inline campaign bodies. Using phone or email variables requires contacts.pii.read.",
        "operationId": "dashboard_campaignDraftHandler_Preflight_POST_api_campaign_drafts_id_preflight",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.preflightCampaignDraftRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required campaign or contact PII grant is missing",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preflight",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-runs": {
      "get": {
        "description": "Read campaign runs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_campaignRunHandler_List_GET_api_campaign_runs",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-runs/{id}": {
      "get": {
        "description": "Read campaign runs {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_campaignRunHandler_Get_GET_api_campaign_runs_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-runs/{id}/attempts": {
      "get": {
        "description": "Read campaign runs {id} attempts. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_campaignRunHandler_Attempts_GET_api_campaign_runs_id_attempts",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "evidence",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Attempts",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-runs/{id}/cancel": {
      "post": {
        "description": "Create or act on campaign runs {id} cancel. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignRunHandler_Cancel_POST_api_campaign_runs_id_cancel",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-runs/{id}/pause": {
      "post": {
        "description": "Create or act on campaign runs {id} pause. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignRunHandler_Pause_POST_api_campaign_runs_id_pause",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Pause",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-runs/{id}/resume": {
      "post": {
        "description": "Create or act on campaign runs {id} resume. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignRunHandler_Resume_POST_api_campaign_runs_id_resume",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resume",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-text-templates/publish": {
      "post": {
        "description": "Create or act on campaign text templates publish. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_textTemplates_Publish_POST_api_campaign_text_templates_publish",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Publish",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/campaign-text-templates/revoke": {
      "post": {
        "description": "Create or act on campaign text templates revoke. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_textTemplates_Revoke_POST_api_campaign_text_templates_revoke",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Revoke",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/api/channels/capabilities/{kind}": {
      "get": {
        "description": "Read channels capabilities {kind}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_channelHandler_Capabilities_GET_api_channels_capabilities_kind",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "kind",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Capabilities",
        "tags": [
          "Channels"
        ]
      }
    },
    "/api/channels/catalog": {
      "get": {
        "description": "Read channels catalog. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_channelHandler_Catalog_GET_api_channels_catalog",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Catalog",
        "tags": [
          "Channels"
        ]
      }
    },
    "/api/channels/connect": {
      "get": {
        "description": "Read channels connect. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_channelConnectionsHandler_ConnectTiles_GET_api_channels_connect",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Connect Tiles",
        "tags": [
          "Channels"
        ]
      }
    },
    "/api/channels/connections": {
      "get": {
        "description": "Read channels connections. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_channelConnectionsHandler_List_GET_api_channels_connections",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Channels"
        ]
      }
    },
    "/api/channels/connections/{id}": {
      "delete": {
        "description": "Remove channels connections {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_channelConnectionsHandler_Remove_DELETE_api_channels_connections_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Remove",
        "tags": [
          "Channels"
        ]
      },
      "get": {
        "description": "Read channels connections {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_channelConnectionsHandler_Get_GET_api_channels_connections_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Channels"
        ]
      },
      "patch": {
        "consumes": [
          "application/json"
        ],
        "description": "Update channels connections {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_channelConnectionsHandler_Update_PATCH_api_channels_connections_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.renameChannelConnectionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update",
        "tags": [
          "Channels"
        ]
      }
    },
    "/api/channels/connections/{id}/removal-impact": {
      "get": {
        "description": "Read channels connections {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_channelConnectionsHandler_RemovalImpact_GET_api_channels_connections_id_removal_impact",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Removal Impact",
        "tags": [
          "Channels"
        ]
      }
    },
    "/api/channels/connections/{id}/test": {
      "post": {
        "description": "Create or act on channels connections {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_channelConnectionsHandler_Test_POST_api_channels_connections_id_test",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Test",
        "tags": [
          "Channels"
        ]
      }
    },
    "/api/channels/web-push": {
      "get": {
        "description": "Read browser push sites and their subscriber counts. Requires channels.view.",
        "operationId": "dashboard_ListWebPushSites",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "List web-push sites",
            "schema": {
              "properties": {
                "data": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List web-push sites",
        "tags": [
          "Web push"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create a browser push site and issue its public key. Requires channels.connect.",
        "operationId": "dashboard_CreateWebPushSite",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "name": {
                  "type": "string"
                },
                "origin": {
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "name",
                "origin"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Create a web-push site",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a web-push site",
        "tags": [
          "Web push"
        ]
      }
    },
    "/api/channels/web-push/{site}": {
      "delete": {
        "description": "Stop all browser push for one site. Requires channels.update.",
        "operationId": "dashboard_RetireWebPushSite",
        "parameters": [
          {
            "description": "Web-push site ID.",
            "in": "path",
            "name": "site",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Retire a web-push site",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Retire a web-push site",
        "tags": [
          "Web push"
        ]
      }
    },
    "/api/channels/web-push/{site}/subscribers": {
      "get": {
        "description": "List browser subscribers for one site. Requires channels.view.",
        "operationId": "dashboard_ListWebPushSubscribers",
        "parameters": [
          {
            "description": "Web-push site ID.",
            "in": "path",
            "name": "site",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "List web-push subscribers",
            "schema": {
              "properties": {
                "data": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List web-push subscribers",
        "tags": [
          "Web push"
        ]
      }
    },
    "/api/channels/web-push/{site}/subscribers/{subscriber}": {
      "delete": {
        "description": "Remove one subscriber from a site. Requires channels.update.",
        "operationId": "dashboard_RevokeWebPushSubscriber",
        "parameters": [
          {
            "description": "Web-push site ID.",
            "in": "path",
            "name": "site",
            "required": true,
            "type": "string"
          },
          {
            "description": "Subscriber ID.",
            "in": "path",
            "name": "subscriber",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Revoke a web-push subscriber",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Revoke a web-push subscriber",
        "tags": [
          "Web push"
        ]
      }
    },
    "/api/channels/web-push/{site}/subscribers/{subscriber}/test": {
      "post": {
        "description": "Send one test notification to a subscriber. Requires channels.test.",
        "operationId": "dashboard_TestWebPushSubscriber",
        "parameters": [
          {
            "description": "Web-push site ID.",
            "in": "path",
            "name": "site",
            "required": true,
            "type": "string"
          },
          {
            "description": "Subscriber ID.",
            "in": "path",
            "name": "subscriber",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Send a test web push",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send a test web push",
        "tags": [
          "Web push"
        ]
      }
    },
    "/api/channels/web-push/{site}/verify": {
      "post": {
        "description": "Verify ownership of the site origin. Requires channels.update.",
        "operationId": "dashboard_VerifyWebPushSite",
        "parameters": [
          {
            "description": "Web-push site ID.",
            "in": "path",
            "name": "site",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Verify a web-push site",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Verify a web-push site",
        "tags": [
          "Web push"
        ]
      }
    },
    "/api/channels/website-widgets": {
      "get": {
        "description": "Read widget sites, their allowed origins, proof state and available actions. Requires channels.view and the team-inbox entitlement.",
        "operationId": "dashboard_ListWebsiteWidgets",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "List website widgets",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List website widgets",
        "tags": [
          "Website widget"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create a visitor chat site for one exact HTTPS origin. Requires channels.connect and the team-inbox entitlement. The origin must not be the Bonga host and the name must be 80 characters or fewer.",
        "operationId": "dashboard_CreateWebsiteWidget",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "name": {
                  "type": "string"
                },
                "origin": {
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "name",
                "origin"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Create a website widget",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a website widget",
        "tags": [
          "Website widget"
        ]
      }
    },
    "/api/channels/website-widgets/{site}/{operation}": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Apply a lifecycle operation (enable or disable) to one widget site. Requires channels.update or channels.disconnect.",
        "operationId": "dashboard_ChangeWebsiteWidget",
        "parameters": [
          {
            "description": "Widget site ID.",
            "in": "path",
            "name": "site",
            "required": true,
            "type": "string"
          },
          {
            "description": "enable or disable.",
            "in": "path",
            "name": "operation",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Change a website widget",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change a website widget",
        "tags": [
          "Website widget"
        ]
      }
    },
    "/api/contact": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contact. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_publicContactHandler_Create_POST_api_contact",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ContactRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Create",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/api/contact-fields": {
      "get": {
        "description": "Read contact fields. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactFieldsHandler_List_GET_api_contact_fields",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Contacts"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contact fields. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactFieldsHandler_Create_POST_api_contact_fields",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.createContactFieldRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contact-fields/{id}": {
      "patch": {
        "description": "Update contact fields {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactFieldsHandler_Update_PATCH_api_contact_fields_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts": {
      "get": {
        "description": "Read contacts. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_GetContacts_GET_api_contacts",
        "parameters": [
          {
            "default": 1,
            "in": "query",
            "maximum": 1000000,
            "minimum": 1,
            "name": "page",
            "required": false,
            "type": "integer"
          },
          {
            "default": 50,
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Contacts",
        "tags": [
          "Contacts"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contacts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_CreateContact_POST_api_contacts",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateContactRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Contact",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/bulk": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contacts bulk. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_BulkSaveContacts_POST_api_contacts_bulk",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.BulkSaveContactsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Bulk Save Contacts",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/export": {
      "get": {
        "description": "Read contacts export. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_ExportContacts_GET_api_contacts_export",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Export Contacts",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/groups": {
      "get": {
        "description": "Read contacts groups. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_GetGroups_GET_api_contacts_groups",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Groups",
        "tags": [
          "Contacts"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contacts groups. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_CreateGroup_POST_api_contacts_groups",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateGroupRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Group",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/groups/rebuild": {
      "post": {
        "description": "Create or act on contacts groups rebuild. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_RebuildGroups_POST_api_contacts_groups_rebuild",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Rebuild Groups",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/groups/{id}": {
      "delete": {
        "description": "Remove contacts groups {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_contactsHandler_DeleteGroup_DELETE_api_contacts_groups_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Group",
        "tags": [
          "Contacts"
        ]
      },
      "get": {
        "description": "Read contacts groups {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_GetGroup_GET_api_contacts_groups_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Group",
        "tags": [
          "Contacts"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace contacts groups {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_UpdateGroup_PUT_api_contacts_groups_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.UpdateGroupRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Group",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/groups/{id}/contacts": {
      "get": {
        "description": "Read contacts groups {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_GetGroupContacts_GET_api_contacts_groups_id_contacts",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "default": 1,
            "in": "query",
            "maximum": 1000000,
            "minimum": 1,
            "name": "page",
            "required": false,
            "type": "integer"
          },
          {
            "default": 50,
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Group Contacts",
        "tags": [
          "Contacts"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contacts groups {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_AddGroupContacts_POST_api_contacts_groups_id_contacts",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.GroupContactsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Add Group Contacts",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/groups/{id}/contacts/{contactId}": {
      "delete": {
        "description": "Remove contacts groups {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_contactsHandler_RemoveGroupContact_DELETE_api_contacts_groups_id_contacts_contactId",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "contactId",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Remove Group Contact",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/identity/merge-preview": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Read-only dashboard preview. Requires contacts.view, contacts.merge and contacts.pii.read. Supply a phone, an email or both in JSON. National phone numbers use the workspace owner\u2019s country. Only current canonical identity rows are checked; no-indexed-match does not rule out legacy contacts. The response contains contact IDs and conflict codes, never endpoint values or merge approval.",
        "operationId": "dashboard_contactsHandler_PreviewContactIdentityMerge_POST_api_contacts_identity_merge_preview",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.contactIdentityPreviewRequest"
            }
          },
          {
            "description": "Optional selector for an existing workspace you can access.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Read-only preview; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/handler.contactIdentityPreviewView"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "400": {
            "description": "INVALID_IDENTITY_CANDIDATE: invalid or missing candidate"
          },
          "401": {
            "description": "UNAUTHENTICATED: missing or invalid dashboard JWT"
          },
          "403": {
            "description": "ACCESS_DENIED: workspace access or a required contact grant is missing"
          },
          "409": {
            "description": "IDENTITY_OWNERSHIP_UNPROVEN: an indexed candidate\u2019s ownership could not be verified"
          },
          "503": {
            "description": "ACCESS_UNAVAILABLE or IDENTITY_PREVIEW_UNAVAILABLE"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview contact identity conflicts",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/import": {
      "post": {
        "consumes": [
          "text/csv"
        ],
        "description": "Create or act on contacts import. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_ImportContacts_POST_api_contacts_import",
        "parameters": [
          {
            "description": "CSV with a phone header. Optional: name, email, tags, groups. Quote comma-separated lists.",
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Import Contacts",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/imports/{id}": {
      "get": {
        "description": "Read contacts imports {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_GetImportStatus_GET_api_contacts_imports_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Import Status",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/merge-review": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Read-only JWT dashboard review that requires contacts.view, contacts.merge, and contacts.pii.read. Both contact IDs must be explicitly linked to the selected workspace. Resubmit the actor-bound if_review_version with any choices; a stale version returns 409. This endpoint does not authorize or apply a merge.",
        "operationId": "dashboard_contactsHandler_ReviewContactMerge_POST_api_contacts_merge_review",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.contactMergeReviewRequest"
            }
          },
          {
            "description": "Optional selector for an existing workspace you can access.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Read-only review; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/services.ContactMergeReview"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED: workspace access or a required contact grant is missing",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "CONTACT_MERGE_REVIEW_STALE: refresh the review before making decisions"
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "503": {
            "description": "Contact merge review or workspace access unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Review a proposed contact merge",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/tags": {
      "get": {
        "description": "Read contacts tags. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_GetContactTags_GET_api_contacts_tags",
        "parameters": [
          {
            "default": 50,
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Contact Tags",
        "tags": [
          "Contacts"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contacts tags. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_CreateContactTag_POST_api_contacts_tags",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateContactTagRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Contact Tag",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/tags/{name}": {
      "delete": {
        "description": "Remove contacts tags {name}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_contactsHandler_DeleteContactTag_DELETE_api_contacts_tags_name",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "name",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Contact Tag",
        "tags": [
          "Contacts"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace contacts tags {name}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_RenameContactTag_PUT_api_contacts_tags_name",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "name",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.RenameContactTagRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Rename Contact Tag",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/{id}": {
      "delete": {
        "description": "Remove contacts {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_contactsHandler_DeleteContact_DELETE_api_contacts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Contact",
        "tags": [
          "Contacts"
        ]
      },
      "get": {
        "description": "Read contacts {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactsHandler_GetContact_GET_api_contacts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Contact",
        "tags": [
          "Contacts"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace contacts {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactsHandler_UpdateContact_PUT_api_contacts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.UpdateContactRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Contact",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/contacts/{id}/consent": {
      "get": {
        "description": "Read contacts {id} consent. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_contactConsentHandler_Get_GET_api_contacts_id_consent",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Contacts"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on contacts {id} consent. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_contactConsentHandler_Record_POST_api_contacts_id_consent",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.recordConsentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Record",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/conversations": {
      "get": {
        "description": "Read conversations. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_conversationHandler_GetConversations_GET_api_conversations",
        "parameters": [
          {
            "in": "query",
            "name": "device_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Conversations",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/api/conversations/{chatId}": {
      "delete": {
        "description": "Remove conversations {chatId}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_conversationHandler_DeleteThread_DELETE_api_conversations_chatId",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "chatId",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Thread",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/api/conversations/{chatId}/messages": {
      "get": {
        "description": "Read conversations {chatId} messages. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_conversationHandler_GetMessages_GET_api_conversations_chatId_messages",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "chatId",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Messages",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/api/conversations/{chatId}/read": {
      "post": {
        "description": "Create or act on conversations {chatId} read. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_conversationHandler_MarkRead_POST_api_conversations_chatId_read",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "chatId",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Mark Read",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/api/conversations/{chatId}/reply": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on conversations {chatId} reply. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_conversationHandler_Reply_POST_api_conversations_chatId_reply",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "chatId",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ReplyRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Reply",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/api/countries": {
      "get": {
        "description": "Read countries. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Countries_GET_api_countries",
        "parameters": [
          {
            "in": "query",
            "name": "purpose",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Countries",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/credit-packs": {
      "get": {
        "description": "Read credit packs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_creditsHandler_ListPacks_GET_api_credit_packs",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Packs",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/credits": {
      "get": {
        "description": "Read credits. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_creditsHandler_Get_GET_api_credits",
        "parameters": [
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "credits",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/credits/convert": {
      "post": {
        "description": "Create or act on credits convert. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_creditsHandler_Convert_POST_api_credits_convert",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Convert",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/credits/purchase": {
      "post": {
        "description": "Create or act on credits purchase. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_creditsHandler_Purchase_POST_api_credits_purchase",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Purchase",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/cx/keywords": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create a keyword rule for a workspace shortcode. Requires inbox.settings.manage.",
        "operationId": "dashboard_CreateCXKeyword",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Create a CX keyword",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a CX keyword",
        "tags": [
          "CX surveys"
        ]
      }
    },
    "/api/cx/keywords/{id}/revoke": {
      "post": {
        "description": "Revoke a keyword rule. Requires inbox.settings.manage.",
        "operationId": "dashboard_RevokeCXKeyword",
        "parameters": [
          {
            "description": "Keyword record ID.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Revoke a CX keyword",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Revoke a CX keyword",
        "tags": [
          "CX surveys"
        ]
      }
    },
    "/api/cx/shortcodes": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create a shortcode/keyword binding for a survey or conversation. Requires inbox.settings.manage.",
        "operationId": "dashboard_CreateCXShortcode",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Create a CX shortcode",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a CX shortcode",
        "tags": [
          "CX surveys"
        ]
      }
    },
    "/api/cx/shortcodes/inbound": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Record a signed shortcode reply from a customer. Public; requires the X-CX-Shortcode-Signature header over the raw body and is refused without a valid signature.",
        "operationId": "dashboard_CXShortcodeInbound",
        "parameters": [
          {
            "in": "header",
            "name": "X-CX-Shortcode-Signature",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Receive a CX shortcode reply",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Receive a CX shortcode reply",
        "tags": [
          "CX surveys"
        ]
      }
    },
    "/api/dashboard": {
      "get": {
        "description": "Read dashboard. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dashboardHandler_GetDashboard_GET_api_dashboard",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Dashboard",
        "tags": [
          "Analytics"
        ]
      }
    },
    "/api/drips": {
      "get": {
        "description": "Read drips. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dripsFormsHandler_ListDripSequences_GET_api_drips",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Drip Sequences",
        "tags": [
          "Drips and forms"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on drips. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_CreateDripSequence_POST_api_drips",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.dripSequenceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Drip Sequence",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/drips/capabilities": {
      "get": {
        "description": "Read drips capabilities. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dripsFormsHandler_DripCapabilities_GET_api_drips_capabilities",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Drip Capabilities",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/drips/{id}": {
      "get": {
        "description": "Read drips {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dripsFormsHandler_DripDetail_GET_api_drips_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Drip Detail",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/drips/{id}/control": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on drips {id} control. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_ControlDripEnrollment_POST_api_drips_id_control",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.dripControlRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Control Drip Enrollment",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/drips/{id}/dry-run": {
      "post": {
        "description": "Create or act on drips {id} dry run. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_DryRunDrip_POST_api_drips_id_dry_run",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Dry Run Drip",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/drips/{id}/enroll": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on drips {id} enroll. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_EnrollDrip_POST_api_drips_id_enroll",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.dripEnrollRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Enroll Drip",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/drips/{id}/status": {
      "post": {
        "description": "Create or act on drips {id} status. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_ControlDripSequence_POST_api_drips_id_status",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Control Drip Sequence",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/drips/{id}/versions": {
      "post": {
        "description": "Create or act on drips {id} versions. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_PublishDripVersion_POST_api_drips_id_versions",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Publish Drip Version",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/email/ab-tests": {
      "get": {
        "description": "Read email ab tests. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailABTestHandler_GetABTests_GET_api_email_ab_tests",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List ABTests",
        "tags": [
          "Email"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email ab tests. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailABTestHandler_CreateABTest_POST_api_email_ab_tests",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ABTestRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create ABTest",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/ab-tests/{id}": {
      "delete": {
        "description": "Remove email ab tests {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_emailABTestHandler_DeleteABTest_DELETE_api_email_ab_tests_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete ABTest",
        "tags": [
          "Email"
        ]
      },
      "get": {
        "description": "Read email ab tests {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailABTestHandler_GetABTest_GET_api_email_ab_tests_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List ABTest",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/ab-tests/{id}/choose-winner": {
      "post": {
        "description": "Create or act on email ab tests {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailABTestHandler_ChooseWinner_POST_api_email_ab_tests_id_choose_winner",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Choose Winner",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/ab-tests/{id}/start": {
      "post": {
        "description": "Create or act on email ab tests {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailABTestHandler_StartABTest_POST_api_email_ab_tests_id_start",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Start ABTest",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/analytics": {
      "get": {
        "description": "Read email analytics. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetAnalytics_GET_api_email_analytics",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Analytics",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/analytics/daily": {
      "get": {
        "description": "Read email analytics daily. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetDailyAnalytics_GET_api_email_analytics_daily",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Daily Analytics",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns": {
      "get": {
        "description": "Read email campaigns. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetCampaigns_GET_api_email_campaigns",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Campaigns",
        "tags": [
          "Email"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email campaigns. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_CreateCampaign_POST_api_email_campaigns",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CampaignRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Campaign",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns/{id}": {
      "delete": {
        "description": "Remove email campaigns {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_emailHandler_DeleteCampaign_DELETE_api_email_campaigns_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Campaign",
        "tags": [
          "Email"
        ]
      },
      "get": {
        "description": "Read email campaigns {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetCampaign_GET_api_email_campaigns_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Campaign",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns/{id}/analytics": {
      "get": {
        "description": "Read email campaigns {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetCampaignAnalytics_GET_api_email_campaigns_id_analytics",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Campaign Analytics",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns/{id}/cancel": {
      "post": {
        "description": "Create or act on email campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_CancelCampaign_POST_api_email_campaigns_id_cancel",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel Campaign",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns/{id}/logs": {
      "get": {
        "description": "Read email campaigns {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetCampaignLogs_GET_api_email_campaigns_id_logs",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Campaign Logs",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns/{id}/pause": {
      "post": {
        "description": "Create or act on email campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_PauseCampaign_POST_api_email_campaigns_id_pause",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Pause Campaign",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns/{id}/resume": {
      "post": {
        "description": "Create or act on email campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_ResumeCampaign_POST_api_email_campaigns_id_resume",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resume Campaign",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/campaigns/{id}/send": {
      "post": {
        "description": "Create or act on email campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_SendCampaign_POST_api_email_campaigns_id_send",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Campaign",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/domains": {
      "get": {
        "description": "Read email domains. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailDomainHandler_List_GET_api_email_domains",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Email"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email domains. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailDomainHandler_Create_POST_api_email_domains",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.addDomainRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/domains/dns/providers": {
      "get": {
        "description": "Read email domains dns. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailDomainHandler_DNSProviders_GET_api_email_domains_dns_providers",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "DNSProviders",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/domains/{id}": {
      "delete": {
        "description": "Remove email domains {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_emailDomainHandler_Delete_DELETE_api_email_domains_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/domains/{id}/dns/apply": {
      "post": {
        "description": "Create or act on email domains {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailDomainHandler_ApplyDNS_POST_api_email_domains_id_dns_apply",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Apply DNS",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/domains/{id}/dns/preview": {
      "post": {
        "description": "Create or act on email domains {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailDomainHandler_PreviewDNS_POST_api_email_domains_id_dns_preview",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview DNS",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/domains/{id}/verify": {
      "post": {
        "description": "Create or act on email domains {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailDomainHandler_Verify_POST_api_email_domains_id_verify",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Verify",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/logs": {
      "get": {
        "description": "Read email logs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetLogs_GET_api_email_logs",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Logs",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/reports": {
      "get": {
        "description": "Read email reports. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetReports_GET_api_email_reports",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Reports",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/reports/preview": {
      "get": {
        "description": "Read email reports preview. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_PreviewReport_GET_api_email_reports_preview",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview Report",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/reports/send-now": {
      "post": {
        "description": "Create or act on email reports send now. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_SendReportNow_POST_api_email_reports_send_now",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Report Now",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/scheduled": {
      "get": {
        "description": "Read email scheduled. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetScheduled_GET_api_email_scheduled",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Scheduled",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/scheduled/{id}": {
      "delete": {
        "description": "Remove email scheduled {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_emailHandler_CancelScheduled_DELETE_api_email_scheduled_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel Scheduled",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/send": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email send. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_SendEmailMessage_POST_api_email_send",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.SendEmailAPIRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Email Message",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/send-bulk": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email send bulk. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_SendBulkEmail_POST_api_email_send_bulk",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.BulkEmailRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Bulk Email",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/sending-ip": {
      "get": {
        "description": "Read email sending ip. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_sendingIPStatusHandler_Status_GET_api_email_sending_ip",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Status",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/settings": {
      "get": {
        "description": "Read email settings. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_GetSettings_GET_api_email_settings",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Settings",
        "tags": [
          "Email"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace email settings. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_SaveSettings_PUT_api_email_settings",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.EmailSettingsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Save Settings",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/settings/test": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email settings test. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_TestSettings_POST_api_email_settings_test",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.EmailSettingsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Test Settings",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates": {
      "get": {
        "description": "Read email templates. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailTemplateHandler_GetTemplates_GET_api_email_templates",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Templates",
        "tags": [
          "Email"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email templates. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailTemplateHandler_CreateTemplate_POST_api_email_templates",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.EmailTemplateRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Template",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/import": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email templates import. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailTemplateHandler_ImportTemplate_POST_api_email_templates_import",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.emailTemplateImportRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Import Template",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/preview": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email templates preview. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailTemplateVersionHandler_PreviewHTML_POST_api_email_templates_preview",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.previewHTMLRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview HTML",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/{id}": {
      "delete": {
        "description": "Remove email templates {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_emailTemplateHandler_DeleteTemplate_DELETE_api_email_templates_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Template",
        "tags": [
          "Email"
        ]
      },
      "get": {
        "description": "Read email templates {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailTemplateHandler_GetTemplate_GET_api_email_templates_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Template",
        "tags": [
          "Email"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace email templates {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailTemplateHandler_UpdateTemplate_PUT_api_email_templates_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.EmailTemplateRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Template",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/{id}/export": {
      "get": {
        "description": "Read email templates {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailTemplateHandler_ExportTemplate_GET_api_email_templates_id_export",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Export Template",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/{id}/versions": {
      "get": {
        "description": "Read email templates {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailTemplateVersionHandler_List_GET_api_email_templates_id_versions",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Email"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email templates {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailTemplateVersionHandler_Publish_POST_api_email_templates_id_versions",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.publishTemplateVersionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Publish",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/{id}/versions/{version}": {
      "get": {
        "description": "Read email templates {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailTemplateVersionHandler_Get_GET_api_email_templates_id_versions_version",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "version",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/{id}/versions/{version}/preview": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email templates {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailTemplateVersionHandler_Preview_POST_api_email_templates_id_versions_version_preview",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "version",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.previewTemplateVersionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/templates/{id}/versions/{version}/restore": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on email templates {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailTemplateVersionHandler_Restore_POST_api_email_templates_id_versions_version_restore",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "version",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.publishTemplateVersionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Restore",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/webhooks/kumomta": {
      "post": {
        "description": "Create or act on email webhooks kumomta. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_kumoWebhookHandler_Receive_POST_api_email_webhooks_kumomta",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Receive",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/webhooks/kumomta/inbound": {
      "post": {
        "description": "Create or act on email webhooks kumomta. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_kumoWebhookHandler_ReceiveInbound_POST_api_email_webhooks_kumomta_inbound",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Receive Inbound",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/email/webhooks/resend": {
      "post": {
        "description": "Create or act on email webhooks resend. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_resendWebhookHandler_Receive_POST_api_email_webhooks_resend",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Receive",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/files": {
      "get": {
        "description": "Read files. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_filesHandler_List_GET_api_files",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Files and media"
        ]
      },
      "post": {
        "description": "Create or act on files. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_filesHandler_Upload_POST_api_files",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Upload",
        "tags": [
          "Files and media"
        ]
      }
    },
    "/api/files/{id}": {
      "delete": {
        "description": "Remove files {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_filesHandler_Delete_DELETE_api_files_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete",
        "tags": [
          "Files and media"
        ]
      },
      "get": {
        "description": "Read files {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_filesHandler_Metadata_GET_api_files_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Metadata",
        "tags": [
          "Files and media"
        ]
      }
    },
    "/api/files/{id}/download": {
      "get": {
        "description": "Read files {id} download. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_filesHandler_Download_GET_api_files_id_download",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Download",
        "tags": [
          "Files and media"
        ]
      }
    },
    "/api/flows": {
      "get": {
        "description": "Read flows. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_automationHandler_ListFlows_GET_api_flows",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Flows",
        "tags": [
          "Flows"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on flows. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_automationHandler_CreateFlow_POST_api_flows",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.flowRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Flow",
        "tags": [
          "Flows"
        ]
      }
    },
    "/api/flows/runs": {
      "get": {
        "description": "Read flows runs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_automationHandler_ListFlowRuns_GET_api_flows_runs",
        "parameters": [
          {
            "in": "query",
            "name": "flow_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Flow Runs",
        "tags": [
          "Flows"
        ]
      }
    },
    "/api/flows/simulate": {
      "post": {
        "description": "Create or act on flows simulate. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_automationHandler_SimulateFlowDraft_POST_api_flows_simulate",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Simulate Flow Draft",
        "tags": [
          "Flows"
        ]
      }
    },
    "/api/flows/{id}": {
      "delete": {
        "description": "Remove flows {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_automationHandler_DeleteFlow_DELETE_api_flows_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Flow",
        "tags": [
          "Flows"
        ]
      },
      "get": {
        "description": "Read flows {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_automationHandler_GetFlow_GET_api_flows_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Flow",
        "tags": [
          "Flows"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace flows {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_automationHandler_UpdateFlow_PUT_api_flows_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.flowRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Flow",
        "tags": [
          "Flows"
        ]
      }
    },
    "/api/flows/{id}/test-run": {
      "post": {
        "description": "Create or act on flows {id} test run. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_automationHandler_TestRunFlow_POST_api_flows_id_test_run",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Test Run Flow",
        "tags": [
          "Flows"
        ]
      }
    },
    "/api/forms": {
      "get": {
        "description": "Read forms. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dripsFormsHandler_ListFormDefinitions_GET_api_forms",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Form Definitions",
        "tags": [
          "Forms"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on forms. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_CreateFormDefinition_POST_api_forms",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.formDefinitionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Form Definition",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/confirm": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on forms confirm. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_ConfirmFormSubmission_POST_api_forms_confirm",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.formConfirmRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Confirm Form Submission",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/public-link-policy": {
      "get": {
        "description": "Read forms public link policy. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_publicTokenHandler_LinkPolicy_GET_api_forms_public_link_policy",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Link Policy",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/public/{token}": {
      "get": {
        "description": "Read forms public {token}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_publicFormsHandler_Metadata_GET_api_forms_public_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Metadata",
        "tags": [
          "Forms"
        ]
      },
      "post": {
        "description": "Create or act on forms public {token}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_publicFormsHandler_Submit_POST_api_forms_public_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Submit",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/public/{token}/confirm": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on forms public {token}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_publicFormsHandler_Confirm_POST_api_forms_public_token_confirm",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.publicConfirmRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Confirm",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/{id}/plan": {
      "get": {
        "description": "Read forms {id} plan. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dripsFormsHandler_GetFormPlan_GET_api_forms_id_plan",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Form Plan",
        "tags": [
          "Forms"
        ]
      },
      "put": {
        "description": "Replace forms {id} plan. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_SaveFormDraft_PUT_api_forms_id_plan",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Save Form Draft",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/{id}/public/tokens": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on forms {id} public. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_publicTokenHandler_Mint_POST_api_forms_id_public_tokens",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.publicTokenRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Mint",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/{id}/public/tokens/revoke": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on forms {id} public. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_publicTokenHandler_Revoke_POST_api_forms_id_public_tokens_revoke",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.publicRevokeRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Revoke",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/{id}/submissions": {
      "get": {
        "description": "Read forms {id} submissions. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dripsFormsHandler_ListFormSubmissions_GET_api_forms_id_submissions",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Form Submissions",
        "tags": [
          "Forms"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on forms {id} submissions. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_SubmitForm_POST_api_forms_id_submissions",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.formSubmitRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Submit Form",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/forms/{id}/versions": {
      "post": {
        "description": "Create or act on forms {id} versions. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_PublishFormVersion_POST_api_forms_id_versions",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Publish Form Version",
        "tags": [
          "Forms"
        ]
      }
    },
    "/api/inbound-email/addons": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials.",
        "operationId": "dashboard_kumo_Catalog",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "500": {
            "description": "Could not load inbound add-ons"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List active inbound add-ons",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": []
      }
    },
    "/api/inbound-email/addons/limits": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_Limits",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read effective workspace incoming email limits",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_Rules",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List incoming address rules",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.connect. KUMOMTA_INBOUND_RULES_EXTENDED_ENABLED=true is required for prefix, suffix, or catch_all matches, reject or drop actions, or a positive max_messages cap. With that flag off, only uncapped exact store and forward rules can be created or enabled. Forwarding requires confirmed destinations. Disposable addresses require KUMOMTA_RECEIVING_DOMAINS_ENABLED=true; reply_through also requires KUMOMTA_RECEIVING_MASKS_ENABLED=true. A webhook rule requires an enabled workspace endpoint subscribed to message.received and the inbound webhook callback URL; Bonga creates the endpoint and seals its secret.",
        "operationId": "dashboard_kumo_CreateRule",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "action": {
                  "description": "webhook requires a workspace endpoint and the inbound webhook callback URL. reject and drop require KUMOMTA_INBOUND_RULES_EXTENDED_ENABLED=true. catch_all cannot forward.",
                  "enum": [
                    "store",
                    "webhook",
                    "forward",
                    "reject",
                    "drop"
                  ],
                  "type": "string"
                },
                "destinations": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "disposable": {
                  "type": "boolean"
                },
                "domain": {
                  "type": "string"
                },
                "expires_at": {
                  "format": "date-time",
                  "type": "string"
                },
                "local_part": {
                  "type": "string"
                },
                "match": {
                  "default": "exact",
                  "description": "Non-exact matches require KUMOMTA_INBOUND_RULES_EXTENDED_ENABLED=true, KUMOMTA_RECEIVING_DOMAINS_ENABLED=true, and a ready receiving domain with independent workspace ownership proof. They are unavailable for platform domains and disposable addresses. Prefixes or suffixes matching fixed reserved role addresses and prefixes overlapping registration- are refused. catch_all requires an empty local_part.",
                  "enum": [
                    "exact",
                    "prefix",
                    "suffix",
                    "catch_all"
                  ],
                  "type": "string"
                },
                "max_messages": {
                  "default": 0,
                  "description": "Omit or set to 0 for no cap. Positive values require KUMOMTA_INBOUND_RULES_EXTENDED_ENABLED=true.",
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": "integer"
                },
                "reply_through": {
                  "type": "boolean"
                },
                "webhook_endpoint": {
                  "description": "Required for action=webhook. Public web_\u2026 ID of an enabled workspace endpoint subscribed to message.received.",
                  "type": "string"
                }
              },
              "required": [
                "action",
                "domain"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a disabled incoming address rule",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.connect"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses/{rule}": {
      "delete": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.disconnect.",
        "operationId": "dashboard_kumo_RemoveRule",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Remove an incoming address rule",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.disconnect"
        ]
      },
      "patch": {
        "consumes": [
          "application/json"
        ],
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.update. KUMOMTA_INBOUND_RULES_EXTENDED_ENABLED=true is required for prefix, suffix, or catch_all matches, reject or drop actions, or a positive max_messages cap. With that flag off, only uncapped exact store and forward rules can be created or enabled. Enabling rechecks the rule policy, workspace ownership and the bound webhook endpoint. Disabling remains available with the extended rules flag off.",
        "operationId": "dashboard_kumo_SetRuleEnabled",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "enabled": {
                  "type": "boolean"
                }
              },
              "required": [
                "enabled"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Enable or disable an incoming address rule",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.update"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses/{rule}/captured": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_CapturedList",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List locally captured message previews",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses/{rule}/captured/{message}": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_Captured",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Opaque message ID returned by the corresponding captured or stored message list.",
            "in": "path",
            "name": "message",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a locally captured message preview",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses/{rule}/captured/{message}/attachments/{index}": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_CapturedAttachment",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Opaque message ID returned by the corresponding captured or stored message list.",
            "in": "path",
            "name": "message",
            "required": true,
            "type": "string"
          },
          {
            "description": "Zero-based attachment index from the captured detail.",
            "in": "path",
            "name": "index",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/octet-stream"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "format": "binary",
              "type": "string"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Download one scanned attachment of a locally captured message",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses/{rule}/captured/{message}/raw": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_CapturedRaw",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Opaque message ID returned by the corresponding captured or stored message list.",
            "in": "path",
            "name": "message",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "message/rfc822"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "format": "binary",
              "type": "string"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Download the raw MIME of a locally captured message",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses/{rule}/messages": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view and inbox.view.",
        "operationId": "dashboard_kumo_Messages",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "Opaque cursor returned by the previous page.",
            "in": "query",
            "name": "before",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List stored messages for a store rule",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view",
          "inbox.view"
        ]
      }
    },
    "/api/inbound-email/kumo/addresses/{rule}/messages/{message}": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view and inbox.view.",
        "operationId": "dashboard_kumo_Message",
        "parameters": [
          {
            "description": "Opaque rule ID returned by the incoming address list.",
            "in": "path",
            "name": "rule",
            "required": true,
            "type": "string"
          },
          {
            "description": "Opaque message ID returned by the corresponding captured or stored message list.",
            "in": "path",
            "name": "message",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a bounded text preview for a store rule",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view",
          "inbox.view"
        ]
      }
    },
    "/api/inbound-email/kumo/destinations": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_Destinations",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List forwarding destinations",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.connect.",
        "operationId": "dashboard_kumo_CreateDestination",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "address": {
                  "format": "email",
                  "type": "string"
                }
              },
              "required": [
                "address"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a forwarding destination and request confirmation",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.connect"
        ]
      }
    },
    "/api/inbound-email/kumo/destinations/{destination}": {
      "delete": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.disconnect.",
        "operationId": "dashboard_kumo_RemoveDestination",
        "parameters": [
          {
            "description": "Opaque destination ID returned by the forwarding destination list.",
            "in": "path",
            "name": "destination",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Remove a forwarding destination",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.disconnect"
        ]
      }
    },
    "/api/inbound-email/kumo/destinations/{destination}/resend": {
      "post": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.update.",
        "operationId": "dashboard_kumo_Resend",
        "parameters": [
          {
            "description": "Opaque destination ID returned by the forwarding destination list.",
            "in": "path",
            "name": "destination",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resend a forwarding destination confirmation",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.update"
        ]
      }
    },
    "/api/inbound-email/kumo/domains": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_Domains",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List domains available for incoming mail",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/inboxes": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view. Reads opaque inbox identities bound to live rules in this workspace.",
        "operationId": "dashboard_kumo_Inboxes",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List opaque inboxes in the workspace",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/inboxes/{inbox}": {
      "delete": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.disconnect. Retires the rule bound to the opaque inbox and keeps its history.",
        "operationId": "dashboard_kumo_RemoveInbox",
        "parameters": [
          {
            "description": "Opaque ibx_ inbox ID returned by the incoming inbox list.",
            "in": "path",
            "name": "inbox",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Retire an opaque inbox",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.disconnect"
        ]
      },
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view. Reads one opaque inbox by its ibx_ identifier. The upstream rule id is not required.",
        "operationId": "dashboard_kumo_Inbox",
        "parameters": [
          {
            "description": "Opaque ibx_ inbox ID returned by the incoming inbox list.",
            "in": "path",
            "name": "inbox",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read one opaque inbox",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      },
      "patch": {
        "consumes": [
          "application/json"
        ],
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.update. Enables or disables the rule bound to the opaque inbox. The upstream rule id is not required.",
        "operationId": "dashboard_kumo_SetInboxEnabled",
        "parameters": [
          {
            "description": "Opaque ibx_ inbox ID returned by the incoming inbox list.",
            "in": "path",
            "name": "inbox",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "enabled": {
                  "type": "boolean"
                }
              },
              "required": [
                "enabled"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Enable or pause an opaque inbox",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.update"
        ]
      }
    },
    "/api/inbound-email/kumo/inboxes/{inbox}/captured": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view. Reads saved previews for the bound inbox. No raw MIME or attachment bytes are returned.",
        "operationId": "dashboard_kumo_InboxCapturedList",
        "parameters": [
          {
            "description": "Opaque ibx_ inbox ID returned by the incoming inbox list.",
            "in": "path",
            "name": "inbox",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List locally captured previews for an opaque inbox",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/inboxes/{inbox}/captured/{message}": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view. Reads one saved preview for the bound inbox. No raw MIME or attachment bytes are returned.",
        "operationId": "dashboard_kumo_InboxCaptured",
        "parameters": [
          {
            "description": "Opaque ibx_ inbox ID returned by the incoming inbox list.",
            "in": "path",
            "name": "inbox",
            "required": true,
            "type": "string"
          },
          {
            "description": "Opaque message ID returned by the corresponding captured or stored message list.",
            "in": "path",
            "name": "message",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a locally captured preview for an opaque inbox",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/receiving-domains": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and KUMOMTA_RECEIVING_DOMAINS_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_ReceivingDomains",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List receiving domains and platform options",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/receiving-domains/setup": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and KUMOMTA_RECEIVING_DOMAINS_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.connect. Supply exactly one of domain or platform. Set confirm=true to verify DNS and configure receiving when ready; omit it to preview the DNS records.",
        "operationId": "dashboard_kumo_ReceivingSetup",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "confirm": {
                  "type": "boolean"
                },
                "domain": {
                  "type": "string"
                },
                "platform": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview or confirm receiving-domain setup",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.connect"
        ]
      }
    },
    "/api/inbound-email/kumo/receiving-domains/{domain}/mx": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and KUMOMTA_RECEIVING_DOMAINS_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view. Returns DNS writer availability and the manual MX record; read-only.",
        "operationId": "dashboard_kumo_ReceivingMXStatus",
        "parameters": [
          {
            "description": "Verified receiving domain name accepted by the workspace.",
            "in": "path",
            "name": "domain",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read the receiving MX plan and writer availability",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/receiving-domains/{domain}/mx/apply": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and KUMOMTA_RECEIVING_DOMAINS_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.update. Writes only through an authorized zone-bound writer, refuses conflicting MX/CNAME and rechecks ownership. Manual MX remains available.",
        "operationId": "dashboard_kumo_ApplyReceivingMX",
        "parameters": [
          {
            "description": "Verified receiving domain name accepted by the workspace.",
            "in": "path",
            "name": "domain",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "confirm": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Apply a zone-scoped receiving MX change",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.update"
        ]
      }
    },
    "/api/inbound-email/kumo/receiving-domains/{domain}/mx/preview": {
      "post": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and KUMOMTA_RECEIVING_DOMAINS_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view. Read-only: returns the planned change, conflicts and propagation state; no DNS mutation.",
        "operationId": "dashboard_kumo_PreviewReceivingMX",
        "parameters": [
          {
            "description": "Verified receiving domain name accepted by the workspace.",
            "in": "path",
            "name": "domain",
            "required": true,
            "type": "string"
          },
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "402": {
            "description": "Incoming email requires an eligible subscription"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "409": {
            "description": "Plan limit reached, existing resource, or operation needs review"
          },
          "413": {
            "description": "Request body exceeds the 8 KiB limit"
          },
          "422": {
            "description": "Invalid incoming address or forwarding settings"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "502": {
            "description": "Incoming email settings could not be confirmed"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview a zone-scoped receiving MX change",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/inbound-email/kumo/usage": {
      "get": {
        "description": "Private dashboard operation, disabled by default. Requires KUMOMTA_INBOUND_ENABLED=true and configured inbound-email credentials. The selected workspace must grant channels.view.",
        "operationId": "dashboard_kumo_InboundUsage",
        "parameters": [
          {
            "description": "Select an authorized workspace; must agree with workspace_id if both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional authorized workspace selector.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "properties": {
                "data": {},
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session"
          },
          "403": {
            "description": "Workspace, grant, domain, or entitlement denied"
          },
          "404": {
            "description": "Feature unavailable or resource not found in this workspace"
          },
          "503": {
            "description": "Workspace access or incoming email service unavailable"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read workspace incoming email usage",
        "tags": [
          "Inbound email"
        ],
        "x-workspace-grants": [
          "channels.view"
        ]
      }
    },
    "/api/links": {
      "get": {
        "description": "List branded short links in the workspace. Requires links:read. The surface is enabled only when the short-link pilot is on.",
        "operationId": "dashboard_ListShortLinks",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "List short links",
            "schema": {
              "properties": {
                "data": {
                  "items": {
                    "$ref": "#/definitions/handler.customerLink"
                  },
                  "type": "array"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List short links",
        "tags": [
          "Short links"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create a branded short link with an optional expiry and custom path. Requires links:write and an Idempotency-Key. A repeated key with the same payload returns the existing link.",
        "operationId": "dashboard_CreateShortLink",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "destination": {
                  "format": "uri",
                  "type": "string"
                },
                "expiry_days": {
                  "maximum": 3650,
                  "minimum": 0,
                  "type": "integer"
                },
                "hostname": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "required": [
                "destination"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Create a short link",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/handler.customerLink"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a short link",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/links/policy": {
      "get": {
        "description": "Read the workspace's allowed hosts, expiry policy and link limits. Requires links:read.",
        "operationId": "dashboard_ShortLinkPolicy",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Read short-link policy",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read short-link policy",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/links/preference": {
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Choose the workspace's default short-link hostname. Requires links:write.",
        "operationId": "dashboard_ShortLinkPreference",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Update short-link preference",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update short-link preference",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/links/{id}/analytics": {
      "get": {
        "description": "Read click activity for one link when analytics is enabled. Requires links:read.",
        "operationId": "dashboard_ShortLinkAnalytics",
        "parameters": [
          {
            "description": "Short-link record ID.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Read short-link analytics",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read short-link analytics",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/links/{id}/disable": {
      "post": {
        "description": "Stop redirects immediately. Requires links:write.",
        "operationId": "dashboard_DisableShortLink",
        "parameters": [
          {
            "description": "Short-link record ID.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Disable a short link",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/handler.customerLink"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Disable a short link",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/links/{id}/renew": {
      "post": {
        "description": "Renew a link under the current plan policy. Requires links:write.",
        "operationId": "dashboard_RenewShortLink",
        "parameters": [
          {
            "description": "Short-link record ID.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Renew a short link",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/handler.customerLink"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Renew a short link",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/me": {
      "get": {
        "description": "Read me. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_authHandler_Me_GET_api_me",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Me",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/api/media": {
      "get": {
        "description": "Read media. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_mediaHandler_GetMedia_GET_api_media",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Media",
        "tags": [
          "Files and media"
        ]
      }
    },
    "/api/media/upload": {
      "post": {
        "description": "Create or act on media upload. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_mediaHandler_UploadMedia_POST_api_media_upload",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Upload Media",
        "tags": [
          "Files and media"
        ]
      }
    },
    "/api/media/url": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on media url. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_mediaHandler_RegisterMedia_POST_api_media_url",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.MediaURLRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Register Media",
        "tags": [
          "Files and media"
        ]
      }
    },
    "/api/media/{id}": {
      "delete": {
        "description": "Remove media {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_mediaHandler_DeleteMedia_DELETE_api_media_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "MEDIA_DELETION_GATED: physical deletion of a legacy upload is frozen by the private-media cutover or retention guard.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "enum": [
                            "MEDIA_DELETION_GATED"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Media",
        "tags": [
          "Files and media"
        ]
      }
    },
    "/api/messages/send": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on messages send. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_unifiedHandler_Send_POST_api_messages_send",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.UnifiedSendRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send",
        "tags": [
          "Messages"
        ]
      }
    },
    "/api/notifications": {
      "get": {
        "description": "Read notifications. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_notificationHandler_GetNotifications_GET_api_notifications",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Notifications",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/api/notifications/read-all": {
      "put": {
        "description": "Replace notifications read all. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_notificationHandler_MarkAllAsRead_PUT_api_notifications_read_all",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Mark All As Read",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/api/notifications/unread": {
      "get": {
        "description": "Read notifications unread. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_notificationHandler_GetUnreadCount_GET_api_notifications_unread",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Unread Count",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/api/notifications/{id}/read": {
      "put": {
        "description": "Replace notifications {id} read. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_notificationHandler_MarkAsRead_PUT_api_notifications_id_read",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Mark As Read",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/api/otp/projects": {
      "get": {
        "description": "Optional, no-network sandbox. Disabled by default. Only synthetic data is supported; live sends are not available. Use the owner\u2019s dashboard JWT. A project key cannot administer projects. ",
        "operationId": "dashboard_verifyHandler_ListProjects_GET_api_otp_projects",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "UNAUTHENTICATED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "OTP_NOT_FOUND",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "OTP_NOT_PENDING, OTP_RESEND_LIMIT, VERIFICATION_ALREADY_PENDING or idempotency conflict/expiry",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "OTP_INVALID_REQUEST or OTP_INVALID",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "429": {
            "description": "OTP_RATE_LIMITED or RESEND_COOLDOWN; respect Retry-After",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "OTP_UNAVAILABLE; retry the same command key if applicable",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Projects",
        "tags": [
          "Verify sandbox"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Optional, no-network sandbox. Disabled by default. Only synthetic data is supported; live sends are not available. Use the owner\u2019s dashboard JWT. A project key cannot administer projects. ",
        "operationId": "dashboard_verifyHandler_CreateProject_POST_api_otp_projects",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.VerifySandboxProjectRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Success; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "project": {
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "UNAUTHENTICATED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "OTP_NOT_FOUND",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "OTP_NOT_PENDING, OTP_RESEND_LIMIT, VERIFICATION_ALREADY_PENDING or idempotency conflict/expiry",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "OTP_INVALID_REQUEST or OTP_INVALID",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "429": {
            "description": "OTP_RATE_LIMITED or RESEND_COOLDOWN; respect Retry-After",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "OTP_UNAVAILABLE; retry the same command key if applicable",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Project",
        "tags": [
          "Verify sandbox"
        ]
      }
    },
    "/api/otp/projects/{project}/callbacks": {
      "get": {
        "description": "Read otp projects {project}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_callbackHandler_List_GET_api_otp_projects_project_callbacks",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List OTP callback endpoints",
        "tags": [
          "OTP and Verify"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on otp projects {project}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.\nOwner-only. The signing secret is returned once in this response and is never included by the list endpoint. Store it server-side. Rotation keeps the previous key valid for 24 hours.",
        "operationId": "dashboard_callbackHandler_Create_POST_api_otp_projects_project_callbacks",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.VerifyCallbackCreateRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create OTP callback endpoint",
        "tags": [
          "OTP and Verify"
        ]
      }
    },
    "/api/otp/projects/{project}/callbacks/{endpoint}": {
      "delete": {
        "description": "Remove otp projects {project}. State-changing; it is audited and requires the matching workspace permission.\nDelivery stops immediately. A disabled endpoint remains visible but cannot be rotated or re-enabled; create a replacement instead.",
        "operationId": "dashboard_callbackHandler_Disable_DELETE_api_otp_projects_project_callbacks_endpoint",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "endpoint",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Disable OTP callback endpoint",
        "tags": [
          "OTP and Verify"
        ]
      }
    },
    "/api/otp/projects/{project}/callbacks/{endpoint}/rotate": {
      "post": {
        "description": "Create or act on otp projects {project}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.\nOwner-only. The signing secret is returned once in this response and is never included by the list endpoint. Store it server-side. Rotation keeps the previous key valid for 24 hours.",
        "operationId": "dashboard_callbackHandler_Rotate_POST_api_otp_projects_project_callbacks_endpoint_rotate",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "endpoint",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Rotate OTP callback signing key",
        "tags": [
          "OTP and Verify"
        ]
      }
    },
    "/api/otp/projects/{project}/keys": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Optional, no-network sandbox. Disabled by default. Only synthetic data is supported; live sends are not available. Use the owner\u2019s dashboard JWT. A project key cannot administer projects. The credential is returned once; store it server-side.",
        "operationId": "dashboard_verifyHandler_IssueKey_POST_api_otp_projects_project_keys",
        "parameters": [
          {
            "description": "Exact opaque identifier returned by Verify, including any table prefix.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.VerifySandboxKeyRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Success; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "credential": {
                      "format": "password",
                      "type": "string"
                    },
                    "key": {
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "UNAUTHENTICATED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "OTP_NOT_FOUND",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "OTP_NOT_PENDING, OTP_RESEND_LIMIT, VERIFICATION_ALREADY_PENDING or idempotency conflict/expiry",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "OTP_INVALID_REQUEST or OTP_INVALID",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "429": {
            "description": "OTP_RATE_LIMITED or RESEND_COOLDOWN; respect Retry-After",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "OTP_UNAVAILABLE; retry the same command key if applicable",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Issue Key",
        "tags": [
          "Verify sandbox"
        ]
      }
    },
    "/api/otp/projects/{project}/keys/{key}": {
      "delete": {
        "description": "Optional, no-network sandbox. Disabled by default. Only synthetic data is supported; live sends are not available. Use the owner\u2019s dashboard JWT. A project key cannot administer projects. ",
        "operationId": "dashboard_verifyHandler_RevokeKey_DELETE_api_otp_projects_project_keys_key",
        "parameters": [
          {
            "description": "Exact opaque identifier returned by Verify, including any table prefix.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          },
          {
            "description": "Exact opaque identifier returned by Verify, including any table prefix.",
            "in": "path",
            "name": "key",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "UNAUTHENTICATED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "OTP_NOT_FOUND",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "OTP_NOT_PENDING, OTP_RESEND_LIMIT, VERIFICATION_ALREADY_PENDING or idempotency conflict/expiry",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "OTP_INVALID_REQUEST or OTP_INVALID",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "429": {
            "description": "OTP_RATE_LIMITED or RESEND_COOLDOWN; respect Retry-After",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "OTP_UNAVAILABLE; retry the same command key if applicable",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Revoke Key",
        "tags": [
          "Verify sandbox"
        ]
      }
    },
    "/api/otp/projects/{project}/settings": {
      "get": {
        "description": "Optional, no-network sandbox. Disabled by default. Only synthetic data is supported; live sends are not available. Use the owner\u2019s dashboard JWT. A project key cannot administer projects. ",
        "operationId": "dashboard_verifyHandler_Settings_GET_api_otp_projects_project_settings",
        "parameters": [
          {
            "description": "Exact opaque identifier returned by Verify, including any table prefix.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "UNAUTHENTICATED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "OTP_NOT_FOUND",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "OTP_NOT_PENDING, OTP_RESEND_LIMIT, VERIFICATION_ALREADY_PENDING or idempotency conflict/expiry",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "OTP_INVALID_REQUEST or OTP_INVALID",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "429": {
            "description": "OTP_RATE_LIMITED or RESEND_COOLDOWN; respect Retry-After",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "OTP_UNAVAILABLE; retry the same command key if applicable",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Settings",
        "tags": [
          "Verify sandbox"
        ]
      }
    },
    "/api/otp/projects/{project}/usage": {
      "get": {
        "description": "Optional, no-network sandbox. Disabled by default. Only synthetic data is supported; live sends are not available. Use the owner\u2019s dashboard JWT. A project key cannot administer projects. ",
        "operationId": "dashboard_verifyHandler_Usage_GET_api_otp_projects_project_usage",
        "parameters": [
          {
            "description": "Exact opaque identifier returned by Verify, including any table prefix.",
            "in": "path",
            "name": "project",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "UNAUTHENTICATED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "OTP_NOT_FOUND",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "OTP_NOT_PENDING, OTP_RESEND_LIMIT, VERIFICATION_ALREADY_PENDING or idempotency conflict/expiry",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "OTP_INVALID_REQUEST or OTP_INVALID",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "429": {
            "description": "OTP_RATE_LIMITED or RESEND_COOLDOWN; respect Retry-After",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "OTP_UNAVAILABLE; retry the same command key if applicable",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Usage",
        "tags": [
          "Verify sandbox"
        ]
      }
    },
    "/api/otp/whatsapp-readiness": {
      "get": {
        "description": "Read otp whatsapp readiness. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_whatsappReadinessHandler_Get_GET_api_otp_whatsapp_readiness",
        "parameters": [
          {
            "in": "query",
            "name": "account_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "OTP and Verify"
        ]
      }
    },
    "/api/overview": {
      "get": {
        "description": "Read overview. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_overviewHandler_Get_GET_api_overview",
        "parameters": [
          {
            "in": "query",
            "name": "period",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Analytics"
        ]
      }
    },
    "/api/payments/checkout": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on payments checkout. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_Checkout_POST_api_payments_checkout",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/managed.CheckoutRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Checkout",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/payments/intents/{id}": {
      "get": {
        "description": "Read payments intents {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_PaymentStatus_GET_api_payments_intents_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Payment Status",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/payments/intents/{id}/verify": {
      "post": {
        "description": "Create or act on payments intents {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_VerifyPayment_POST_api_payments_intents_id_verify",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Verify Payment",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/payments/options": {
      "get": {
        "description": "Read payments options. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_PaymentOptions_GET_api_payments_options",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Payment Options",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/payments/quote": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on payments quote. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_PaymentQuote_POST_api_payments_quote",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/managed.CheckoutRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Payment Quote",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/payments/webhooks/{account}": {
      "post": {
        "description": "Create or act on payments webhooks {account}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_PaymentWebhook_POST_api_payments_webhooks_account",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "account",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "token",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Payment Webhook",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/payouts": {
      "get": {
        "description": "Read payouts. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_walletHandler_ListPayouts_GET_api_payouts",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Payouts",
        "tags": [
          "Credits and billing"
        ]
      },
      "post": {
        "description": "Create or act on payouts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_walletHandler_RequestPayout_POST_api_payouts",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Request Payout",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/plan-features": {
      "get": {
        "description": "Read plan features. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_planHandler_PlanFeatures_GET_api_plan_features",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Plan Features",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/plans": {
      "get": {
        "description": "Read plans. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_planHandler_GetPlans_GET_api_plans",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "List Plans",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/plans/{id}": {
      "get": {
        "description": "Read plans {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_planHandler_GetPlan_GET_api_plans_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "List Plan",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/profile": {
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace profile. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_UpdateProfile_PUT_api_profile",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.UpdateProfileRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Profile",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/profile/password": {
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace profile password. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_ChangePassword_PUT_api_profile_password",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ChangePasswordRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change Password",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/profile/sharing": {
      "get": {
        "description": "Read profile sharing. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_profiles_Get_GET_api_profile_sharing",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Account"
        ]
      },
      "post": {
        "description": "Create or act on profile sharing. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_profiles_Save_POST_api_profile_sharing",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Save",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/profile/username": {
      "get": {
        "description": "Read profile username. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_profiles_Available_GET_api_profile_username",
        "parameters": [
          {
            "in": "query",
            "name": "username",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Available",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/public/ai/catalog": {
      "get": {
        "description": "Read public ai catalog. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_aiHandler_PublicCatalog_GET_api_public_ai_catalog",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Public Catalog",
        "tags": [
          "AI"
        ]
      }
    },
    "/api/public/pricing/credits": {
      "get": {
        "description": "Read public pricing credits. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_creditsHandler_PublicPricing_GET_api_public_pricing_credits",
        "parameters": [
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "plan",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Public Pricing",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/public/pricing/sms": {
      "get": {
        "description": "Read public pricing sms. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_PublicSMSPricing_GET_api_public_pricing_sms",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Public SMSPricing",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/public/profiles/{username}": {
      "get": {
        "description": "Read public profiles {username}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_profiles_Public_GET_api_public_profiles_username",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "username",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Public",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/realtime/stream": {
      "get": {
        "description": "Read realtime stream. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_realtimeHandler_Stream_GET_api_realtime_stream",
        "parameters": [
          {
            "in": "query",
            "name": "token",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Stream",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/api/reminder-events": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on reminder events. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_ApplyReminderEvent_POST_api_reminder_events",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.reminderEventRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Apply Reminder Event",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/reminder-items": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on reminder items. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_dripsFormsHandler_UpsertReminderItem_POST_api_reminder_items",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.reminderItemRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Upsert Reminder Item",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/reminder-items/{id}/occurrences": {
      "get": {
        "description": "Read reminder items {id} occurrences. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_dripsFormsHandler_PreviewReminderOccurrences_GET_api_reminder_items_id_occurrences",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview Reminder Occurrences",
        "tags": [
          "Drips and forms"
        ]
      }
    },
    "/api/reseller": {
      "get": {
        "description": "Read reseller. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_resellerHandler_Me_GET_api_reseller",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Me",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/api/reseller/ledger": {
      "get": {
        "description": "Read reseller ledger. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_resellerHandler_Ledger_GET_api_reseller_ledger",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Ledger",
        "tags": [
          "Reseller"
        ]
      }
    },
    "/api/security/two-factor": {
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace security two factor. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_UpdateTwoFactor_PUT_api_security_two_factor",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.UpdateTwoFactorRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Two Factor",
        "tags": [
          "Account"
        ]
      }
    },
    "/api/segments": {
      "get": {
        "description": "Read segments. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_segmentsHandler_List_GET_api_segments",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Contacts"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on segments. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_segmentsHandler_Create_POST_api_segments",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.createSegmentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/segments/preview": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on segments preview. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_segmentsHandler_Preview_POST_api_segments_preview",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.previewSegmentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Preview",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/segments/{id}": {
      "patch": {
        "consumes": [
          "application/json"
        ],
        "description": "Update segments {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_segmentsHandler_Archive_PATCH_api_segments_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.archiveSegmentRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Archive",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/api/sender-documents": {
      "post": {
        "description": "Create or act on sender documents. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_UploadDocument_POST_api_sender_documents",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Upload Document",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sender-documents/{id}": {
      "get": {
        "description": "Read sender documents {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Document_GET_api_sender_documents_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Document",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sender-ids": {
      "get": {
        "description": "Read sender ids. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Senders_GET_api_sender_ids",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Senders",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sender-ids/default": {
      "post": {
        "description": "Create or act on sender ids default. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_DefaultSender_POST_api_sender_ids_default",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Default Sender",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sender-orders": {
      "get": {
        "description": "Read sender orders. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Orders_GET_api_sender_orders",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Orders",
        "tags": [
          "SMS"
        ]
      },
      "post": {
        "description": "Create or act on sender orders. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_Purchase_POST_api_sender_orders",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Purchase",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sender-orders/quote": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sender orders quote. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_SenderQuote_POST_api_sender_orders_quote",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/managed.SenderRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Sender Quote",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sender-orders/{id}/information": {
      "post": {
        "description": "Create or act on sender orders {id} information. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_SupplementOrder_POST_api_sender_orders_id_information",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Supplement Order",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/shorteners": {
      "get": {
        "description": "Read shorteners. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_shortenerHandler_ListShorteners_GET_api_shorteners",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Shorteners",
        "tags": [
          "Short links"
        ]
      },
      "post": {
        "description": "Create or act on shorteners. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_shortenerHandler_CreateShortener_POST_api_shorteners",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Shortener",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/shorteners/{id}": {
      "delete": {
        "description": "Remove shorteners {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_shortenerHandler_DeleteShortener_DELETE_api_shorteners_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Shortener",
        "tags": [
          "Short links"
        ]
      },
      "put": {
        "description": "Replace shorteners {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_shortenerHandler_UpdateShortener_PUT_api_shorteners_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Shortener",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/shorteners/{id}/test": {
      "post": {
        "description": "Create or act on shorteners {id} test. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_shortenerHandler_TestShortener_POST_api_shorteners_id_test",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Test Shortener",
        "tags": [
          "Short links"
        ]
      }
    },
    "/api/sms/analytics": {
      "get": {
        "description": "Read sms analytics. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsHandler_GetAnalytics_GET_api_sms_analytics",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Analytics",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/batches/{id}": {
      "get": {
        "description": "Read sms batches {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Batch_GET_api_sms_batches_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Batch",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/batches/{id}/messages": {
      "get": {
        "description": "Read sms batches {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_BatchReports_GET_api_sms_batches_id_messages",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Batch Reports",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/callbacks/{account}/{version}": {
      "post": {
        "description": "Create or act on sms callbacks {account}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_DeliveryWebhook_POST_api_sms_callbacks_account_version",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "account",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "version",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Delivery Webhook",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/campaigns": {
      "get": {
        "description": "Read sms campaigns. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_campaignHandler_ListCampaigns_GET_api_sms_campaigns",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Campaigns",
        "tags": [
          "SMS"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms campaigns. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignHandler_CreateCampaign_POST_api_sms_campaigns",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.campaignRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Campaign",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/campaigns/{id}": {
      "delete": {
        "description": "Remove sms campaigns {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_campaignHandler_DeleteCampaign_DELETE_api_sms_campaigns_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Campaign",
        "tags": [
          "SMS"
        ]
      },
      "get": {
        "description": "Read sms campaigns {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_campaignHandler_GetCampaign_GET_api_sms_campaigns_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Campaign",
        "tags": [
          "SMS"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace sms campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignHandler_UpdateCampaign_PUT_api_sms_campaigns_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.campaignRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Campaign",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/campaigns/{id}/messages": {
      "get": {
        "description": "Read sms campaigns {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_CampaignReports_GET_api_sms_campaigns_id_messages",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Campaign Reports",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/campaigns/{id}/pause": {
      "post": {
        "description": "Create or act on sms campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignHandler_PauseCampaign_POST_api_sms_campaigns_id_pause",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Pause Campaign",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/campaigns/{id}/resume": {
      "post": {
        "description": "Create or act on sms campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignHandler_ResumeCampaign_POST_api_sms_campaigns_id_resume",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resume Campaign",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/campaigns/{id}/start": {
      "post": {
        "description": "Create or act on sms campaigns {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_campaignHandler_StartCampaign_POST_api_sms_campaigns_id_start",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Start Campaign",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/catalog": {
      "get": {
        "description": "Read sms catalog. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Catalog_GET_api_sms_catalog",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Catalog",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/devices": {
      "get": {
        "description": "Read sms devices. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsDeviceHandler_ListDevices_GET_api_sms_devices",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Devices",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/devices/pairing": {
      "post": {
        "description": "Create or act on sms devices pairing. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsDeviceHandler_CreatePairing_POST_api_sms_devices_pairing",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Pairing",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/devices/pairing/{id}": {
      "get": {
        "description": "Read sms devices pairing. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsDeviceHandler_PairingStatus_GET_api_sms_devices_pairing_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Pairing Status",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/devices/{id}": {
      "delete": {
        "description": "Remove sms devices {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_smsDeviceHandler_DeleteDevice_DELETE_api_sms_devices_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Device",
        "tags": [
          "SMS"
        ]
      },
      "get": {
        "description": "Read sms devices {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsDeviceHandler_GetDevice_GET_api_sms_devices_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Device",
        "tags": [
          "SMS"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace sms devices {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsDeviceHandler_UpdateDevice_PUT_api_sms_devices_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.updateDeviceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Device",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/devices/{id}/send": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms devices {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsDeviceHandler_SendSMS_POST_api_sms_devices_id_send",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.sendDeviceSmsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send SMS",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/devices/{id}/send-bulk": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms devices {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsDeviceHandler_SendBulkSMS_POST_api_sms_devices_id_send_bulk",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.bulkDeviceSmsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Bulk SMS",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/devices/{id}/token": {
      "post": {
        "description": "Create or act on sms devices {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsDeviceHandler_RotateToken_POST_api_sms_devices_id_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Rotate Token",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/logs": {
      "get": {
        "description": "Read sms logs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Messages_GET_api_sms_logs",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Messages",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/messages": {
      "get": {
        "description": "Read sms messages. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsDeviceHandler_ListMessages_GET_api_sms_messages",
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "device_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "sim",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Messages",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/providers": {
      "get": {
        "description": "Read sms providers. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsUserProviderHandler_GetProviders_GET_api_sms_providers",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Providers",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/quote": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms quote. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_Quote_POST_api_sms_quote",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/managed.SendRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Quote",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/received": {
      "get": {
        "description": "Read sms received. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsDeviceHandler_ListReceived_GET_api_sms_received",
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Received",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/reports": {
      "get": {
        "description": "Read sms reports. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Reports_GET_api_sms_reports",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "sender_id",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Reports",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/reports/{id}": {
      "get": {
        "description": "Read sms reports {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Message_GET_api_sms_reports_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Message",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/reports/{id}/cancel": {
      "post": {
        "description": "Create or act on sms reports {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_Cancel_POST_api_sms_reports_id_cancel",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/send": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms send. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_Send_POST_api_sms_send",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/managed.SendRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/send-bulk": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms send bulk. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_managedHandler_Send_POST_api_sms_send_bulk",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/managed.SendRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/shared-device/send": {
      "post": {
        "description": "Create or act on sms shared device send. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_walletHandler_SendSharedDevice_POST_api_sms_shared_device_send",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Shared Device",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/templates": {
      "get": {
        "description": "Read sms templates. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsTemplateHandler_GetTemplates_GET_api_sms_templates",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Templates",
        "tags": [
          "SMS"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms templates. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsTemplateHandler_CreateTemplate_POST_api_sms_templates",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateTemplateRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Template",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/templates/{id}": {
      "delete": {
        "description": "Remove sms templates {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_smsTemplateHandler_DeleteTemplate_DELETE_api_sms_templates_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Template",
        "tags": [
          "SMS"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace sms templates {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsTemplateHandler_UpdateTemplate_PUT_api_sms_templates_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateTemplateRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Template",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/templates/{id}/apply": {
      "post": {
        "description": "Create or act on sms templates {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsTemplateHandler_ApplyTemplate_POST_api_sms_templates_id_apply",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Apply Template",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/user-providers": {
      "get": {
        "description": "Read sms user providers. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsUserProviderHandler_GetUserProviders_GET_api_sms_user_providers",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List User Providers",
        "tags": [
          "SMS"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on sms user providers. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsUserProviderHandler_CreateUserProvider_POST_api_sms_user_providers",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateUserProviderRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create User Provider",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/user-providers/{id}": {
      "delete": {
        "description": "Remove sms user providers {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_smsUserProviderHandler_DeleteUserProvider_DELETE_api_sms_user_providers_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete User Provider",
        "tags": [
          "SMS"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace sms user providers {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsUserProviderHandler_UpdateUserProvider_PUT_api_sms_user_providers_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateUserProviderRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update User Provider",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/sms/ussd": {
      "get": {
        "description": "Read sms ussd. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_smsDeviceHandler_ListUssd_GET_api_sms_ussd",
        "parameters": [
          {
            "in": "query",
            "name": "device_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Ussd",
        "tags": [
          "SMS"
        ]
      },
      "post": {
        "description": "Create or act on sms ussd. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_smsDeviceHandler_QueueUssd_POST_api_sms_ussd",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Queue Ussd",
        "tags": [
          "SMS"
        ]
      }
    },
    "/api/subscription": {
      "get": {
        "description": "Read subscription. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_subscriptionHandler_GetSubscription_GET_api_subscription",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Subscription",
        "tags": [
          "Credits and billing"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on subscription. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_subscriptionHandler_CreateSubscription_POST_api_subscription",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CreateSubscriptionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Subscription",
        "tags": [
          "Credits and billing"
        ]
      },
      "put": {
        "description": "Replace subscription. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_subscriptionHandler_UpdateSubscription_PUT_api_subscription",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Subscription",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/subscription/cancel": {
      "post": {
        "description": "Create or act on subscription cancel. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_subscriptionHandler_CancelSubscription_POST_api_subscription_cancel",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel Subscription",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/subscription/change": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on subscription change. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_billingLifecycleHandler_Change_POST_api_subscription_change",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.lifecycleChangeRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/subscription/change/cancel": {
      "post": {
        "description": "Create or act on subscription change cancel. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_billingLifecycleHandler_CancelChange_POST_api_subscription_change_cancel",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel Change",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/subscription/lifecycle": {
      "get": {
        "description": "Read subscription lifecycle. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_billingLifecycleHandler_Get_GET_api_subscription_lifecycle",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/subscription/payments": {
      "get": {
        "description": "Read subscription payments. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_PaymentHistory_GET_api_subscription_payments",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Payment History",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/track/click/{logId}": {
      "get": {
        "description": "Read track click {logId}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_TrackClick_GET_api_track_click_logId",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "logId",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "u",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Track Click",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/track/open/{logId}": {
      "get": {
        "description": "Read track open {logId}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_TrackOpen_GET_api_track_open_logId",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "logId",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Track Open",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/track/unsub/{logId}": {
      "get": {
        "description": "Read track unsub {logId}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_TrackUnsubscribe_GET_api_track_unsub_logId",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "logId",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Track Unsubscribe",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/unsubscribe/email/{token}": {
      "get": {
        "description": "Read unsubscribe email {token}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_emailHandler_PublicEmailUnsubscribe_GET_api_unsubscribe_email_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Public Email Unsubscribe",
        "tags": [
          "Email"
        ]
      },
      "post": {
        "description": "Create or act on unsubscribe email {token}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_emailHandler_PublicEmailUnsubscribe_POST_api_unsubscribe_email_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Public Email Unsubscribe",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/unsubscribed": {
      "get": {
        "description": "Read unsubscribed. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_unsubscribeHandler_List_GET_api_unsubscribed",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Email"
        ]
      },
      "post": {
        "description": "Create or act on unsubscribed. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_unsubscribeHandler_Add_POST_api_unsubscribed",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Add",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/unsubscribed/link": {
      "get": {
        "description": "Read unsubscribed link. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_unsubscribeHandler_Link_GET_api_unsubscribed_link",
        "parameters": [
          {
            "in": "query",
            "name": "phone",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Link",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/unsubscribed/{id}": {
      "delete": {
        "description": "Remove unsubscribed {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_unsubscribeHandler_Delete_DELETE_api_unsubscribed_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete",
        "tags": [
          "Email"
        ]
      }
    },
    "/api/usage": {
      "get": {
        "description": "Read usage. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_subscriptionHandler_GetUsage_GET_api_usage",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Usage",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/v1/otp/live/verifications": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Start a live OTP challenge with a project-scoped live key. The route exists only when the live Verify pilot is enabled. The code is never returned.",
        "operationId": "dashboard_StartLiveVerification",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "destination": {
                  "properties": {
                    "type": {
                      "enum": [
                        "email",
                        "sms"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "goal": {
                  "type": "string"
                },
                "purpose": {
                  "type": "string"
                },
                "subject_id": {
                  "type": "string"
                }
              },
              "required": [
                "goal",
                "purpose",
                "subject_id",
                "destination"
              ],
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "202": {
            "description": "Start a live verification",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Start a live verification",
        "tags": [
          "OTP and Verify"
        ]
      }
    },
    "/api/v1/otp/live/verifications/{id}/check": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Check a live OTP code, consuming the challenge. A replay is refused.",
        "operationId": "dashboard_CheckLiveVerification",
        "parameters": [
          {
            "description": "Verification ID.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "purpose": {
                  "type": "string"
                },
                "subject_id": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Check a live verification",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Check a live verification",
        "tags": [
          "OTP and Verify"
        ]
      }
    },
    "/api/vouchers/redeem": {
      "post": {
        "description": "Create or act on vouchers redeem. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_walletHandler_RedeemVoucher_POST_api_vouchers_redeem",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Redeem Voucher",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/wallet": {
      "get": {
        "description": "Read wallet. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Wallet_GET_api_wallet",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Wallet",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/wallet/transactions": {
      "get": {
        "description": "Read wallet transactions. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_managedHandler_Ledger_GET_api_wallet_transactions",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Ledger",
        "tags": [
          "Credits and billing"
        ]
      }
    },
    "/api/webhooks": {
      "get": {
        "description": "Read webhooks. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_webhookHandler_ListWebhooks_GET_api_webhooks",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Webhooks",
        "tags": [
          "Webhooks"
        ]
      },
      "post": {
        "description": "Create or act on webhooks. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_webhookHandler_CreateWebhook_POST_api_webhooks",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Webhook",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/api/webhooks/events": {
      "get": {
        "description": "Read webhooks events. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_webhookHandler_EventOptions_GET_api_webhooks_events",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Event Options",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/api/webhooks/{id}": {
      "delete": {
        "description": "Remove webhooks {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_webhookHandler_DeleteWebhook_DELETE_api_webhooks_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Webhook",
        "tags": [
          "Webhooks"
        ]
      },
      "put": {
        "description": "Replace webhooks {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_webhookHandler_UpdateWebhook_PUT_api_webhooks_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Webhook",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/api/webhooks/{id}/deliveries": {
      "get": {
        "description": "Read webhooks {id} deliveries. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_webhookHandler_ListDeliveries_GET_api_webhooks_id_deliveries",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Deliveries",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/api/webhooks/{id}/rotate": {
      "post": {
        "description": "Create or act on webhooks {id} rotate. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_webhookHandler_RotateWebhook_POST_api_webhooks_id_rotate",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Rotate Webhook",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/api/webhooks/{id}/test": {
      "post": {
        "description": "Create or act on webhooks {id} test. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_webhookHandler_TestWebhook_POST_api_webhooks_id_test",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "sample",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Test Webhook",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/api/whatsapp/cloud/accounts": {
      "get": {
        "description": "Read whatsapp cloud accounts. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_whatsappCloudHandler_GetCloudAccounts_GET_api_whatsapp_cloud_accounts",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Accounts",
        "tags": [
          "WhatsApp"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_CreateCloudAccount_POST_api_whatsapp_cloud_accounts",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CloudAccountRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Account",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/accounts/verify": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_VerifyCloudAccountCredentials_POST_api_whatsapp_cloud_accounts_verify",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CloudAccountRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Verify Account Credentials",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/accounts/{id}": {
      "delete": {
        "description": "Remove whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_whatsappCloudHandler_DeleteCloudAccount_DELETE_api_whatsapp_cloud_accounts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Account",
        "tags": [
          "WhatsApp"
        ]
      },
      "get": {
        "description": "Read whatsapp cloud accounts. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_whatsappCloudHandler_GetCloudAccount_GET_api_whatsapp_cloud_accounts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Account",
        "tags": [
          "WhatsApp"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_UpdateCloudAccount_PUT_api_whatsapp_cloud_accounts_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CloudAccountRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Account",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/accounts/{id}/mark-read": {
      "post": {
        "description": "Create or act on whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_CloudMarkRead_POST_api_whatsapp_cloud_accounts_id_mark_read",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Mark Read",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/accounts/{id}/send": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_CloudSendMessage_POST_api_whatsapp_cloud_accounts_id_send",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/services.CloudSendRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Message",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/accounts/{id}/send-bulk": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.\nFor immediate bulk sending omit scheduled_at. To schedule, set scheduled_at to a future RFC3339 timestamp. The queued response means accepted for processing; run the Asynq worker and Valkey.",
        "operationId": "dashboard_whatsappCloudHandler_CloudSendBulk_POST_api_whatsapp_cloud_accounts_id_send_bulk",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CloudBulkSendRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Send Bulk",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/accounts/{id}/templates": {
      "delete": {
        "description": "Remove whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_whatsappCloudHandler_DeleteCloudTemplate_DELETE_api_whatsapp_cloud_accounts_id_templates",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "hsm_id",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Template",
        "tags": [
          "WhatsApp"
        ]
      },
      "get": {
        "description": "Read whatsapp cloud accounts. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_whatsappCloudHandler_GetCloudTemplates_GET_api_whatsapp_cloud_accounts_id_templates",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Templates",
        "tags": [
          "WhatsApp"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on whatsapp cloud accounts. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_CreateCloudTemplate_POST_api_whatsapp_cloud_accounts_id_templates",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.CloudTemplateRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Template",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/webhook": {
      "get": {
        "description": "Read whatsapp cloud webhook. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_whatsappCloudHandler_VerifyWebhook_GET_api_whatsapp_cloud_webhook",
        "parameters": [
          {
            "in": "query",
            "name": "hub.mode",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "hub.verify_token",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "hub.challenge",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Verify Webhook",
        "tags": [
          "WhatsApp"
        ]
      },
      "post": {
        "description": "Create or act on whatsapp cloud webhook. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_ReceiveWebhook_POST_api_whatsapp_cloud_webhook",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Receive Webhook",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/cloud/webhook/{appID}": {
      "get": {
        "description": "Read whatsapp cloud webhook. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_whatsappCloudHandler_VerifyWebhook_GET_api_whatsapp_cloud_webhook_appID",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "appID",
            "required": true,
            "type": "string"
          },
          {
            "in": "query",
            "name": "hub.mode",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "hub.verify_token",
            "required": false,
            "type": "string"
          },
          {
            "in": "query",
            "name": "hub.challenge",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Verify Webhook",
        "tags": [
          "WhatsApp"
        ]
      },
      "post": {
        "description": "Create or act on whatsapp cloud webhook. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappCloudHandler_ReceiveWebhook_POST_api_whatsapp_cloud_webhook_appID",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "appID",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Receive Webhook",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/pairings": {
      "post": {
        "description": "Create or act on whatsapp pairings. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_whatsappHandler_StartPairing_POST_api_whatsapp_pairings",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Start Pairing",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/whatsapp/pairings/{id}": {
      "get": {
        "description": "Read whatsapp pairings {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_whatsappHandler_GetPairing_GET_api_whatsapp_pairings_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Pairing",
        "tags": [
          "WhatsApp"
        ]
      }
    },
    "/api/workflows": {
      "get": {
        "description": "Read workflows. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workflowHandler_GetWorkflows_GET_api_workflows",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Workflows",
        "tags": [
          "Automation"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workflows. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workflowHandler_CreateWorkflow_POST_api_workflows",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.WorkflowRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Workflow",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/workflows/runs": {
      "get": {
        "description": "Read workflows runs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workflowHandler_GetRuns_GET_api_workflows_runs",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Runs",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/workflows/{id}": {
      "delete": {
        "description": "Remove workflows {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_workflowHandler_DeleteWorkflow_DELETE_api_workflows_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete Workflow",
        "tags": [
          "Automation"
        ]
      },
      "get": {
        "description": "Read workflows {id}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workflowHandler_GetWorkflow_GET_api_workflows_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Workflow",
        "tags": [
          "Automation"
        ]
      },
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace workflows {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workflowHandler_UpdateWorkflow_PUT_api_workflows_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.WorkflowRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Workflow",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/workflows/{id}/publish": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workflows {id} publish. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workflowHandler_PublishWorkflow_POST_api_workflows_id_publish",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.PublishRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Publish Workflow",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/workflows/{id}/runs": {
      "get": {
        "description": "Read workflows {id} runs. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workflowHandler_GetRuns_GET_api_workflows_id_runs",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Runs",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/workflows/{id}/test-run": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workflows {id} test run. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workflowHandler_TestRun_POST_api_workflows_id_test_run",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.WorkflowTestRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Test Run",
        "tags": [
          "Automation"
        ]
      }
    },
    "/api/workspace/agents": {
      "get": {
        "description": "Read agents in the selected workspace. Requires agents.view. The response excludes deleted agents and never contains key hashes or plaintext keys.",
        "operationId": "dashboard_ListWorkspaceAgents",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "List agents",
            "schema": {
              "properties": {
                "data": {
                  "items": {
                    "$ref": "#/definitions/models.WorkspaceAgent"
                  },
                  "type": "array"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List agents",
        "tags": [
          "AI agents"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create a non-human agent with its own inbox and policy. Requires agents.manage. Provisioning requires Kumo inbound, a paid workspace and a verified receiving domain; a failed condition writes nothing.",
        "operationId": "dashboard_CreateWorkspaceAgent",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/services.AgentCreateInput"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Create an agent",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/models.WorkspaceAgent"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create an agent",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/agents/{agent}": {
      "delete": {
        "description": "Delete an agent, revoke every key and cancel pending approvals. Sent-mail evidence is retained. Requires agents.manage.",
        "operationId": "dashboard_DeleteWorkspaceAgent",
        "parameters": [
          {
            "description": "Agent record ID.",
            "in": "path",
            "name": "agent",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Delete an agent",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete an agent",
        "tags": [
          "AI agents"
        ]
      },
      "get": {
        "description": "Read one agent and, for agents.manage, its key metadata. The secret is never returned.",
        "operationId": "dashboard_GetWorkspaceAgent",
        "parameters": [
          {
            "description": "Agent record ID.",
            "in": "path",
            "name": "agent",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Read an agent",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read an agent",
        "tags": [
          "AI agents"
        ]
      },
      "patch": {
        "consumes": [
          "application/json"
        ],
        "description": "Update name, description, approval mode, history scope, budgets, dry-run state or policy. Requires agents.manage and uses the current revision.",
        "operationId": "dashboard_UpdateWorkspaceAgent",
        "parameters": [
          {
            "description": "Agent record ID.",
            "in": "path",
            "name": "agent",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/services.AgentSettingsInput"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Update agent settings",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/models.WorkspaceAgent"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update agent settings",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/agents/{agent}/keys": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Issue a reveal-once scoped key for one agent. The key is returned only in this response; store it server-side. Requires agents.manage.",
        "operationId": "dashboard_CreateWorkspaceAgentKey",
        "parameters": [
          {
            "description": "Agent record ID.",
            "in": "path",
            "name": "agent",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/services.AgentKeyInput"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "201": {
            "description": "Issue an agent key",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Issue an agent key",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/agents/{agent}/keys/{key}": {
      "delete": {
        "description": "Revoke one key immediately. The agent and its other keys are unaffected. Requires agents.manage.",
        "operationId": "dashboard_RevokeWorkspaceAgentKey",
        "parameters": [
          {
            "description": "Agent record ID.",
            "in": "path",
            "name": "agent",
            "required": true,
            "type": "string"
          },
          {
            "description": "Key record ID.",
            "in": "path",
            "name": "key",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Revoke an agent key",
            "schema": {
              "properties": {
                "data": {
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Revoke an agent key",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/agents/{agent}/pause": {
      "post": {
        "description": "Pause sending for one agent. Existing keys remain valid for reads and approval lookup. Requires agents.manage.",
        "operationId": "dashboard_PauseWorkspaceAgent",
        "parameters": [
          {
            "description": "Agent record ID.",
            "in": "path",
            "name": "agent",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Pause an agent",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/models.WorkspaceAgent"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Pause an agent",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/agents/{agent}/resume": {
      "post": {
        "description": "Resume sending for one agent. A budget pause must be resumed explicitly. Requires agents.manage.",
        "operationId": "dashboard_ResumeWorkspaceAgent",
        "parameters": [
          {
            "description": "Agent record ID.",
            "in": "path",
            "name": "agent",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Resume an agent",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/models.WorkspaceAgent"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resume an agent",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/approvals": {
      "get": {
        "description": "List held sends and replies, newest first. Use state=pending to see the queue. Requires approvals.view.",
        "operationId": "dashboard_ListWorkspaceApprovals",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "List held agent mail",
            "schema": {
              "properties": {
                "data": {
                  "items": {
                    "$ref": "#/definitions/models.WorkspaceAgentApproval"
                  },
                  "type": "array"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List held agent mail",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/approvals/{approval}": {
      "get": {
        "description": "Read one hold, including the body and fingerprint. Requires approvals.view.",
        "operationId": "dashboard_GetWorkspaceApproval",
        "parameters": [
          {
            "description": "Approval record ID.",
            "in": "path",
            "name": "approval",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Read a held email",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/models.WorkspaceAgentApproval"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a held email",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/approvals/{approval}/approve": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Approve the exact reviewed content. The fingerprint is rechecked; a changed draft returns 409. Submission happens through the shared email path and records the delivery outcome. Requires approvals.decide.",
        "operationId": "dashboard_ApproveWorkspaceApproval",
        "parameters": [
          {
            "description": "Approval record ID.",
            "in": "path",
            "name": "approval",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/services.AgentDecisionInput"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Approve a held email",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/models.WorkspaceAgentApproval"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Approve a held email",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/approvals/{approval}/reject": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Reject a held email with an optional reason. Nothing is sent. Requires approvals.decide.",
        "operationId": "dashboard_RejectWorkspaceApproval",
        "parameters": [
          {
            "description": "Approval record ID.",
            "in": "path",
            "name": "approval",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/services.AgentDecisionInput"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Reject a held email",
            "schema": {
              "properties": {
                "data": {
                  "$ref": "#/definitions/models.WorkspaceAgentApproval"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "400": {
            "description": "Invalid request.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid dashboard session.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "Workspace access or a required grant is missing.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "404": {
            "description": "The resource is unknown or outside this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "409": {
            "description": "A revision, revision-safe update or provider state conflicted.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "422": {
            "description": "The request cannot be applied to this workspace.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "A policy, billing or provider dependency is unavailable.",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "data": {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Reject a held email",
        "tags": [
          "AI agents"
        ]
      }
    },
    "/api/workspace/context": {
      "get": {
        "description": "P0 owner-only compatibility context. Lazily creates one durable default workspace without changing the legacy users-based wallet owner. Reloads account/workspace policy; denies suspended accounts and other workspace selectors. Permissions are not plan entitlements. No member or team access is enabled.",
        "operationId": "dashboard_accessHandler_WorkspaceContext_GET_api_workspace_context",
        "parameters": [
          {
            "description": "Optional narrowing selector; only the authenticated owner default workspace is allowed.",
            "in": "query",
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "Optional narrowing selector; must agree with workspace_id when both are supplied.",
            "in": "header",
            "name": "X-Workspace-ID",
            "required": false,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Owner-only workspace context; Cache-Control: no-store",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "context": {
                      "properties": {
                        "access_revision": {
                          "type": "integer"
                        },
                        "actor_id": {
                          "type": "string"
                        },
                        "billing_account_id": {
                          "type": "string"
                        },
                        "legacy_owner_id": {
                          "type": "string"
                        },
                        "permissions": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "principal_id": {
                          "type": "string"
                        },
                        "principal_kind": {
                          "type": "string"
                        },
                        "workspace_id": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: missing or invalid dashboard JWT",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "403": {
            "description": "ACCESS_DENIED: suspended account/workspace or out-of-scope selector",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          },
          "503": {
            "description": "ACCESS_UNAVAILABLE: policy datastore or mapping unavailable",
            "schema": {
              "properties": {
                "data": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "message": {
                  "type": "string"
                },
                "success": {
                  "example": false,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "message",
                "data"
              ],
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resolve owner-only workspace access context",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/features": {
      "get": {
        "description": "Read workspace features. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceMembersHandler_Features_GET_api_workspace_features",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Features",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members": {
      "get": {
        "description": "Read workspace members. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceMembersHandler_List_GET_api_workspace_members",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/accept": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspace members accept. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceMembersHandler_Accept_POST_api_workspace_members_accept",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.acceptInviteRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Accept",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/email-proof": {
      "post": {
        "description": "Create or act on workspace members email proof. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_StartWorkspaceEmailProof_POST_api_workspace_members_email_proof",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Start Workspace Email Proof",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/email-proof/verify": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspace members email proof. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_VerifyWorkspaceEmailProof_POST_api_workspace_members_email_proof_verify",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.VerifyLoginOTPRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Verify Workspace Email Proof",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/invites": {
      "get": {
        "description": "Read workspace members invites. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceMembersHandler_ListInvites_GET_api_workspace_members_invites",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Invites",
        "tags": [
          "Workspace"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspace members invites. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceMembersHandler_CreateInvite_POST_api_workspace_members_invites",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.inviteMemberRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create Invite",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/invites/{id}": {
      "delete": {
        "description": "Remove workspace members invites. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_workspaceMembersHandler_RevokeInvite_DELETE_api_workspace_members_invites_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Revoke Invite",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/invites/{id}/resend": {
      "post": {
        "description": "Create or act on workspace members invites. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceMembersHandler_ResendInvite_POST_api_workspace_members_invites_id_resend",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Resend Invite",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/options": {
      "get": {
        "description": "Read workspace members options. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceMembersHandler_Options_GET_api_workspace_members_options",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Options",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/{id}": {
      "delete": {
        "description": "Remove workspace members {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_workspaceMembersHandler_RemoveMember_DELETE_api_workspace_members_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Remove Member",
        "tags": [
          "Workspace"
        ]
      },
      "patch": {
        "consumes": [
          "application/json"
        ],
        "description": "Update workspace members {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceMembersHandler_UpdateRole_PATCH_api_workspace_members_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.updateMemberRoleRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update Role",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/{id}/denied-actions": {
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace workspace members {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceMembersHandler_SetDeniedActions_PUT_api_workspace_members_id_denied_actions",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.deniedActionsRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Set Denied Actions",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/{member}/messenger-access": {
      "get": {
        "description": "Read workspace members {member}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_messengerHandler_MemberAccess_GET_api_workspace_members_member_messenger_access",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "member",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Member Access",
        "tags": [
          "Workspace"
        ]
      },
      "put": {
        "description": "Replace workspace members {member}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_messengerHandler_MemberAccess_PUT_api_workspace_members_member_messenger_access",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "member",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Member Access",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/members/{member}/routing": {
      "get": {
        "description": "Read workspace members {member}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_messengerHandler_MemberRouting_GET_api_workspace_members_member_routing",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "member",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Member Routing",
        "tags": [
          "Workspace"
        ]
      },
      "put": {
        "description": "Replace workspace members {member}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_messengerHandler_MemberRouting_PUT_api_workspace_members_member_routing",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "member",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Member Routing",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/roles": {
      "get": {
        "description": "Read workspace roles. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceMembersHandler_ListCustomRoles_GET_api_workspace_roles",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Custom Roles",
        "tags": [
          "Workspace"
        ]
      },
      "post": {
        "description": "Create or act on workspace roles. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceMembersHandler_ChangeCustomRole_POST_api_workspace_roles",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change Custom Role",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/roles/{id}": {
      "delete": {
        "description": "Remove workspace roles {id}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_workspaceMembersHandler_ChangeCustomRole_DELETE_api_workspace_roles_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change Custom Role",
        "tags": [
          "Workspace"
        ]
      },
      "put": {
        "description": "Replace workspace roles {id}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceMembersHandler_ChangeCustomRole_PUT_api_workspace_roles_id",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change Custom Role",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/settings": {
      "get": {
        "description": "Read workspace settings. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspacesHandler_GetSettings_GET_api_workspace_settings",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Settings",
        "tags": [
          "Workspace"
        ]
      },
      "patch": {
        "description": "Update workspace settings. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspacesHandler_PatchSettings_PATCH_api_workspace_settings",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Patch Settings",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/teams": {
      "get": {
        "description": "Read workspace teams. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceTeams_List_GET_api_workspace_teams",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Workspace"
        ]
      },
      "post": {
        "description": "Create or act on workspace teams. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceTeams_Save_POST_api_workspace_teams",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Save",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspace/teams/{team}": {
      "delete": {
        "description": "Remove workspace teams {team}. State-changing; it is audited and requires the matching workspace permission.",
        "operationId": "dashboard_workspaceTeams_Delete_DELETE_api_workspace_teams_team",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "team",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Delete",
        "tags": [
          "Workspace"
        ]
      },
      "get": {
        "description": "Read workspace teams {team}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceTeams_Get_GET_api_workspace_teams_team",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "team",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Workspace"
        ]
      },
      "patch": {
        "description": "Update workspace teams {team}. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceTeams_Save_PATCH_api_workspace_teams_team",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "team",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Save",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces": {
      "get": {
        "description": "Read workspaces. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspacesHandler_List_GET_api_workspaces",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Workspace"
        ]
      },
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspaces. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspacesHandler_Create_POST_api_workspaces",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.createWorkspaceRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/billing": {
      "get": {
        "description": "Read workspaces {id} billing. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceBillingHandler_Get_GET_api_workspaces_id_billing",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/billing-mode": {
      "put": {
        "consumes": [
          "application/json"
        ],
        "description": "Replace workspaces {id} billing mode. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceBillingHandler_Switch_PUT_api_workspaces_id_billing_mode",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.billingModeRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Switch",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/credits/transfer": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspaces {id} credits. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceCreditTransferHandler_Transfer_POST_api_workspaces_id_credits_transfer",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.creditTransferRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Transfer",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/credits/transfers": {
      "get": {
        "description": "Read workspaces {id} credits. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceCreditTransferHandler_List_GET_api_workspaces_id_credits_transfers",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/ownership/recuse": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspaces {id} ownership. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceOwnershipHandler_Recuse_POST_api_workspaces_id_ownership_recuse",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ownershipTransferRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Recuse",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/ownership/transfer": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspaces {id} ownership. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceOwnershipHandler_Transfer_POST_api_workspaces_id_ownership_transfer",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ownershipTransferRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Transfer",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/ownership/transfer/accept": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspaces {id} ownership. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceOwnershipHandler_Accept_POST_api_workspaces_id_ownership_transfer_accept",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ownershipTransferActionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Accept",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/ownership/transfer/cancel": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspaces {id} ownership. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceOwnershipHandler_Cancel_POST_api_workspaces_id_ownership_transfer_cancel",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.ownershipTransferActionRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/wallet": {
      "get": {
        "description": "Read workspaces {id} wallet. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_workspaceWalletHandler_Get_GET_api_workspaces_id_wallet",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/api/workspaces/{id}/wallet/fund": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on workspaces {id} wallet. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_workspaceWalletHandler_Fund_POST_api_workspaces_id_wallet_fund",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.fundWorkspaceWalletRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Fund",
        "tags": [
          "Workspace"
        ]
      }
    },
    "/cron/{job}/{token}": {
      "get": {
        "description": "Read cron {job} {token}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_cronHandler_Run_GET_cron_job_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "job",
            "required": true,
            "type": "string"
          },
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Run",
        "tags": [
          "Operations"
        ]
      }
    },
    "/device/login": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on device login. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_deviceHandler_Login_POST_device_login",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.deviceLoginRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Login",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/device/pair": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on device pair. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_deviceHandler_Pair_POST_device_pair",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.devicePairRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Pair",
        "tags": [
          "Android gateway"
        ]
      }
    },
    "/device/scan": {
      "post": {
        "description": "Create or act on device scan. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_deviceHandler_Scan_POST_device_scan",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Scan",
        "tags": [
          "Android gateway"
        ]
      }
    },
    "/device/update": {
      "get": {
        "description": "Read device update. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_deviceHandler_Update_GET_device_update",
        "parameters": [],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Update",
        "tags": [
          "Android gateway"
        ]
      }
    },
    "/f/{token}": {
      "get": {
        "description": "Read f {token}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_publicFormsHandler_Hosted_GET_f_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Hosted",
        "tags": [
          "Account"
        ]
      }
    },
    "/login": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on login. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_Login_POST_login",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.LoginRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "202": {
            "description": "Accepted for background processing"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Response"
          }
        },
        "security": [],
        "summary": "Login",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/login/otp": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on login otp. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_VerifyLoginOTP_POST_login_otp",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.VerifyLoginOTPRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Verify Login OTP",
        "tags": [
          "OTP and Verify"
        ]
      }
    },
    "/register": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "Create or act on register. State-changing; it is audited and requires the matching workspace permission. Send JSON and expect the standard envelope.",
        "operationId": "dashboard_authHandler_Register_POST_register",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/handler.RegisterRequest"
            }
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Register",
        "tags": [
          "Authentication"
        ]
      }
    },
    "/u/{token}": {
      "get": {
        "description": "Read u {token}. Read-only; the caller must hold the workspace action that protects this resource.",
        "operationId": "dashboard_unsubscribeHandler_Public_GET_u_token",
        "parameters": [
          {
            "description": "Record ID suffix or identifier returned by the corresponding list endpoint.",
            "in": "path",
            "name": "token",
            "required": true,
            "type": "string"
          }
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid request",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "402": {
            "description": "Insufficient wallet balance",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "403": {
            "description": "API key lacks the required permission",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "404": {
            "description": "Record not found or not owned by this account",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "409": {
            "description": "Idempotency key conflict",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "422": {
            "description": "Request could not be routed, priced, or authorized",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "500": {
            "description": "Internal error",
            "schema": {
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          }
        },
        "security": [],
        "summary": "Public",
        "tags": [
          "Account"
        ]
      }
    }
  },
  "securityDefinitions": {
    "ApiKeyAuth": {
      "description": "Bearer YOUR_API_KEY. Managed SMS routes require sms:send, sms:read, or sms:cancel as documented.",
      "in": "header",
      "name": "Authorization",
      "type": "apiKey"
    },
    "BearerAuth": {
      "description": "Bearer YOUR_JWT",
      "in": "header",
      "name": "Authorization",
      "type": "apiKey"
    }
  },
  "swagger": "2.0",
  "tags": [
    {
      "description": "Profile, public sharing, security and unsubscribe surfaces.",
      "name": "Account"
    },
    {
      "description": "Provider keys and the model catalogue used by AI replies.",
      "name": "AI"
    },
    {
      "description": "Scoped API keys, their hints and optional request limits.",
      "name": "API keys"
    },
    {
      "description": "The Android SMS gateway protocol and its APK endpoints.",
      "name": "Android gateway"
    },
    {
      "description": "Cross-channel activity, delivery and usage summaries.",
      "name": "Analytics"
    },
    {
      "description": "Registration, login, logout and password reset.",
      "name": "Authentication"
    },
    {
      "description": "Automation runs and their recorded steps.",
      "name": "Automation"
    },
    {
      "description": "Campaign drafts, preflight, approval, launch and recipient evidence.",
      "name": "Campaigns"
    },
    {
      "description": "Channel connections, senders, readiness and provider setup.",
      "name": "Channels"
    },
    {
      "description": "Contacts, consent, tags, groups, custom fields and segments.",
      "name": "Contacts"
    },
    {
      "description": "Plans, credits, wallet, payments, payouts and vouchers.",
      "name": "Credits and billing"
    },
    {
      "description": "Drip sequences, reminders and form authoring.",
      "name": "Drips and forms"
    },
    {
      "description": "Email sending, templates, domains, tracking and delivery evidence.",
      "name": "Email"
    },
    {
      "description": "Private file storage, uploads and sharing.",
      "name": "Files and media"
    },
    {
      "description": "Conversation flow graphs and their steps.",
      "name": "Flows"
    },
    {
      "description": "Published forms, versions and submissions.",
      "name": "Forms"
    },
    {
      "description": "The shared inbox, Messenger queue, notes and tools.",
      "name": "Inbox"
    },
    {
      "description": "Inbound mailboxes, receiving domains and captured messages.",
      "name": "Inbound email"
    },
    {
      "description": "Unified multi-channel sends.",
      "name": "Messages"
    },
    {
      "description": "In-app notifications and broadcasts.",
      "name": "Notifications"
    },
    {
      "description": "Token-guarded maintenance jobs.",
      "name": "Operations"
    },
    {
      "description": "OTP verification sandbox projects, live projects and callbacks.",
      "name": "OTP and Verify"
    },
    {
      "description": "Reseller profile, managed workspaces and ledger.",
      "name": "Reseller"
    },
    {
      "description": "Managed SMS, sender registration, batches, reports and Android gateway devices.",
      "name": "SMS"
    },
    {
      "description": "Branded short links, QR targets and click analytics.",
      "name": "Short links"
    },
    {
      "description": "Sandbox OTP verification challenges and keys.",
      "name": "Verify sandbox"
    },
    {
      "description": "Signed workspace webhook endpoints and deliveries.",
      "name": "Webhooks"
    },
    {
      "description": "Linked sessions, Cloud accounts, templates, groups and message actions.",
      "name": "WhatsApp"
    },
    {
      "description": "Workspace identity, members, teams, roles and billing mode.",
      "name": "Workspace"
    },
    {
      "description": "Non-human workspace identities, their keys, inboxes, policy, approvals and budgets.",
      "name": "AI agents"
    },
    {
      "description": "Visitor chat sites, allowed domains and embed policy.",
      "name": "Website widget"
    },
    {
      "description": "Browser push sites, subscribers and test notifications.",
      "name": "Web push"
    },
    {
      "description": "Survey policies, triggers, shortcodes and reports.",
      "name": "CX surveys"
    }
  ]
}
