{
  "openapi": "3.0.0",
  "info": {
    "title": "Private Tabs API",
    "description": "This is a PrivateTabs Accounts REST API based on the Swagger 2.0 specification.\n\n**HOW TO ACCESS THE API**  \nYou'll need to use an \"Authorization\" Bearer API token inserted into the header, which you can find when you log in to Private Tabs Desktop.  Please remember that you'll need to Base64-encode the token; this is one of the most common mistakes folks make when trying to authenticate against it.\n\n**HOW TO GET YOUR API TOKEN**  \nLog in to Private Tabs, then go into your settings and click on API Keys, or you can just [click here](https://app.privatetabs.com/settings/api-keys) after you have logged in.\n\n![PrivateTabs API Keys settings page](https://irp.cdn-website.com/140a2981/dms3rep/multi/APIExample-c0e07f10.png)\n\n**HOW TO TEST YOUR TOKEN**  \nYou can use the authorize option below to test your token. If that works then you know your token is good.\n\n**NEED HELP?**  \nNo problem, we're happy to help. You can book a meeting with your account manager anytime by visiting [http://privatetabs.com/meet](http://privatetabs.com/meet) or reach out to the support department via [http://privatetabs.com/support](http://privatetabs.com/support)\n\n**REMEMBER YOU ARE BOUND TO OUR TERMS**  \nBy using our API or giving out your API key, anyone who accesses our system using your keys is still bound to our terms and conditions, which means no bots or shady behavior, your account will be suspended. You can see our full terms and conditions by [clicking here](http://privatetabs.com/terms).\n",
    "version": "1.0.0"
  },
  "paths": {
    "/accounts": {
      "get": {
        "summary": "get-accounts",
        "description": "Gets my accounts",
        "tags": [
          "Accounts"
        ],
        "operationId": "get-accounts.get.accounts",
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "perPage",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns accounts paginated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountsResp"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Forbidden error"
          },
          "500": {
            "description": "Internal server error"
          },
          "502": {
            "description": "Server error"
          },
          "default": {
            "description": "default response"
          }
        }
      },
      "post": {
        "summary": "add-account",
        "description": "Adds an account",
        "tags": [
          "Accounts"
        ],
        "operationId": "add-account.post.accounts",
        "security": [
          {
            "Authorization": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddAccountReq"
              }
            }
          },
          "description": "Body required in the request",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Returns account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResp"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Forbidden error"
          },
          "500": {
            "description": "Internal server error"
          },
          "502": {
            "description": "Server error"
          },
          "default": {
            "description": "default response"
          }
        }
      }
    },
    "/accounts/{accountId}": {
      "get": {
        "summary": "get-account",
        "description": "Gets my account",
        "tags": [
          "Accounts"
        ],
        "operationId": "get-account.get.accounts/{accountId}",
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResp"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Forbidden error"
          },
          "500": {
            "description": "Internal server error"
          },
          "502": {
            "description": "Server error"
          },
          "default": {
            "description": "default response"
          }
        }
      },
      "put": {
        "summary": "update-account",
        "description": "Updates account",
        "tags": [
          "Accounts"
        ],
        "operationId": "update-account.put.accounts/{accountId}",
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAccountReq"
              }
            }
          },
          "description": "Body required in the request",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Returns account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResp"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Forbidden error"
          },
          "500": {
            "description": "Internal server error"
          },
          "502": {
            "description": "Server error"
          },
          "default": {
            "description": "default response"
          }
        }
      },
      "delete": {
        "summary": "delete-account",
        "description": "Deletes account",
        "tags": [
          "Accounts"
        ],
        "operationId": "delete-account.delete.accounts/{accountId}",
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessResp"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Forbidden error"
          },
          "500": {
            "description": "Internal server error"
          },
          "502": {
            "description": "Server error"
          },
          "default": {
            "description": "default response"
          }
        }
      }
    },
    "/sms": {
      "post": {
        "summary": "add-sms-message",
        "description": "Insert a message into your SMS inbox. This does NOT send a text.\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "tags": [
          "SMS Inbox"
        ],
        "operationId": "add-sms-message.post.sms",
        "security": [
          {
            "Authorization": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSmsReq"
              }
            }
          },
          "description": "Body required in the request",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Returns empty object"
          },
          "400": {
            "description": "Bad request error"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          },
          "502": {
            "description": "Server error"
          },
          "default": {
            "description": "default response"
          }
        }
      },
      "get": {
        "tags": [
          "SMS Inbox"
        ],
        "summary": "list-sms-messages",
        "description": "Retrieve messages from your SMS inbox (newest first).\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "Inbox message ID"
                          },
                          "sender": {
                            "type": "string",
                            "description": "Sender's phone number"
                          },
                          "toNumber": {
                            "type": "string",
                            "description": "Your number that received the message"
                          },
                          "text": {
                            "type": "string",
                            "description": "Message text"
                          },
                          "source": {
                            "type": "string",
                            "description": "Where the message came from"
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "When it was received",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 20
            }
          }
        ]
      }
    },
    "/emails": {
      "get": {
        "tags": [
          "Email Inbox"
        ],
        "summary": "list-email-messages",
        "description": "Retrieve messages from your email inbox (newest first).\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "Inbox email ID"
                          },
                          "from": {
                            "type": "string",
                            "description": "Sender email address",
                            "format": "email"
                          },
                          "to": {
                            "type": "string",
                            "description": "Your address that received the email",
                            "format": "email"
                          },
                          "subject": {
                            "type": "string",
                            "description": "Subject line"
                          },
                          "body": {
                            "type": "string",
                            "description": "Email body (text)"
                          },
                          "html": {
                            "type": "string",
                            "description": "Email body (HTML), if any"
                          },
                          "date": {
                            "type": "string",
                            "description": "When it was received",
                            "format": "date-time"
                          },
                          "source": {
                            "type": "string",
                            "description": "Where the email came from"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "perPage",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 20
            }
          }
        ]
      },
      "post": {
        "summary": "add-email-message",
        "description": "Insert an email into your email inbox. This does NOT send an email.\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "tags": [
          "Email Inbox"
        ],
        "operationId": "add-email-message.post.emails",
        "security": [
          {
            "Authorization": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Body required in the request",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Sender email address",
                    "format": "email"
                  },
                  "to": {
                    "type": "string",
                    "description": "Recipient address (one of your inbox addresses)",
                    "format": "email"
                  },
                  "subject": {
                    "type": "string",
                    "description": "Subject line"
                  },
                  "body": {
                    "type": "string",
                    "description": "Email body (text)"
                  },
                  "html": {
                    "type": "string",
                    "description": "Email body (HTML), optional"
                  },
                  "date": {
                    "type": "string",
                    "description": "When it was received (defaults to now)",
                    "format": "date-time"
                  }
                },
                "required": [
                  "from",
                  "to",
                  "body"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns empty object"
          },
          "400": {
            "description": "Bad request error"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          },
          "502": {
            "description": "Server error"
          },
          "default": {
            "description": "default response"
          }
        }
      }
    },
    "/purchases": {
      "get": {
        "tags": [
          "Purchases"
        ],
        "summary": "list-purchases",
        "description": "Retrieve purchases in a date range (max 90 days).\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "orderNumber": {
                            "type": "string",
                            "description": "Order #"
                          },
                          "event": {
                            "type": "string",
                            "description": "Event"
                          },
                          "total": {
                            "type": "number",
                            "description": "Total"
                          },
                          "qty": {
                            "type": "integer",
                            "description": "Qty"
                          },
                          "tickets": {
                            "type": "string",
                            "description": "Tickets"
                          },
                          "seats": {
                            "type": "string",
                            "description": "Seats"
                          },
                          "date": {
                            "type": "string",
                            "description": "Date (event/purchase date)",
                            "format": "date-time"
                          },
                          "venue": {
                            "type": "string",
                            "description": "Venue"
                          },
                          "cardLast4": {
                            "type": "string",
                            "description": "Card (last 4 digits only)"
                          },
                          "accountProfile": {
                            "type": "string",
                            "description": "Account Profile"
                          },
                          "ipAddress": {
                            "type": "string",
                            "description": "IP Address"
                          },
                          "user": {
                            "type": "string",
                            "description": "User"
                          },
                          "saleType": {
                            "type": "string",
                            "description": "Sale Type"
                          },
                          "qLogId": {
                            "type": "string",
                            "description": "QLogID"
                          },
                          "loggedDate": {
                            "type": "string",
                            "description": "Logged Date",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "parameters": [
          {
            "name": "PurchaseDateFrom",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Start date (YYYY-MM-DD) for purchases."
          },
          {
            "name": "PurchaseDateTo",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "End date (YYYY-MM-DD). Range may be at most 90 days."
          }
        ]
      },
      "post": {
        "tags": [
          "Purchases"
        ],
        "summary": "add-purchase",
        "description": "Insert a purchase record.\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderNumber": {
                    "type": "string",
                    "description": "Order #"
                  },
                  "event": {
                    "type": "string",
                    "description": "Event"
                  },
                  "total": {
                    "type": "number",
                    "description": "Total"
                  },
                  "qty": {
                    "type": "integer",
                    "description": "Qty"
                  },
                  "tickets": {
                    "type": "string",
                    "description": "Tickets"
                  },
                  "seats": {
                    "type": "string",
                    "description": "Seats"
                  },
                  "date": {
                    "type": "string",
                    "description": "Date (event/purchase date)",
                    "format": "date-time"
                  },
                  "venue": {
                    "type": "string",
                    "description": "Venue"
                  },
                  "cardLast4": {
                    "type": "string",
                    "description": "Card (last 4 digits only)"
                  },
                  "accountProfile": {
                    "type": "string",
                    "description": "Account Profile"
                  },
                  "ipAddress": {
                    "type": "string",
                    "description": "IP Address"
                  },
                  "user": {
                    "type": "string",
                    "description": "User"
                  },
                  "saleType": {
                    "type": "string",
                    "description": "Sale Type"
                  },
                  "qLogId": {
                    "type": "string",
                    "description": "QLogID"
                  },
                  "loggedDate": {
                    "type": "string",
                    "description": "Logged Date",
                    "format": "date-time"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/qstats": {
      "get": {
        "tags": [
          "Q Stats"
        ],
        "summary": "list-qstats",
        "description": "Retrieve Q Stats in a date range (max 90 days).\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "dateTime": {
                            "type": "string",
                            "description": "Date / Time",
                            "format": "date-time"
                          },
                          "qLogId": {
                            "type": "string",
                            "description": "QLogID"
                          },
                          "qPos": {
                            "type": "integer",
                            "description": "Q Pos"
                          },
                          "marketplace": {
                            "type": "string",
                            "description": "Marketplace"
                          },
                          "eventId": {
                            "type": "string",
                            "description": "Event Id"
                          },
                          "eventName": {
                            "type": "string",
                            "description": "Event Name"
                          },
                          "venueId": {
                            "type": "string",
                            "description": "Venue ID"
                          },
                          "venue": {
                            "type": "string",
                            "description": "Venue"
                          },
                          "venueCity": {
                            "type": "string",
                            "description": "Venue City"
                          },
                          "venueState": {
                            "type": "string",
                            "description": "Venue State"
                          },
                          "browserType": {
                            "type": "string",
                            "description": "Browser Type"
                          },
                          "userType": {
                            "type": "string",
                            "description": "User Type"
                          },
                          "user": {
                            "type": "string",
                            "description": "User"
                          },
                          "accountEmail": {
                            "type": "string",
                            "description": "Account Email"
                          },
                          "accountPhone": {
                            "type": "string",
                            "description": "Account Phone"
                          },
                          "accountLast4": {
                            "type": "string",
                            "description": "Account Last 4"
                          },
                          "accountCity": {
                            "type": "string",
                            "description": "Account City"
                          },
                          "accountState": {
                            "type": "string",
                            "description": "Account State"
                          },
                          "proxyIp": {
                            "type": "string",
                            "description": "Proxy IP"
                          },
                          "ipCity": {
                            "type": "string",
                            "description": "IP City"
                          },
                          "ipState": {
                            "type": "string",
                            "description": "IP State"
                          },
                          "networkPool": {
                            "type": "string",
                            "description": "Network Pool"
                          },
                          "proxyType": {
                            "type": "string",
                            "description": "Proxy Type"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "parameters": [
          {
            "name": "QDateFrom",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Start date (YYYY-MM-DD) for Q Stats."
          },
          {
            "name": "QDateTo",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "End date (YYYY-MM-DD). Range may be at most 90 days."
          }
        ]
      }
    },
    "/accountfields": {
      "get": {
        "tags": [
          "Account Fields"
        ],
        "summary": "list-account-fields",
        "description": "Returns one account record with all of its account fields, for the account ID you pass.\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns one account's fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountFieldsResp"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "parameters": [
          {
            "name": "ID",
            "in": "query",
            "required": true,
            "description": "The account ID",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/presalecodes": {
      "post": {
        "tags": [
          "Automatic Presale Codes"
        ],
        "summary": "add-presale-code",
        "description": "Insert a presale code.\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "CODE": {
                    "type": "string",
                    "description": "Presale code"
                  },
                  "EVENTNAME": {
                    "type": "string",
                    "description": "Event name"
                  },
                  "EVENTURL": {
                    "type": "string",
                    "description": "Event URL"
                  },
                  "EVENTID": {
                    "type": "string",
                    "description": "Event ID"
                  },
                  "MARKETPLACEID": {
                    "type": "string",
                    "description": "Marketplace ID"
                  },
                  "MARKETPLACENAME": {
                    "type": "string",
                    "description": "Marketplace name"
                  },
                  "VENUEID": {
                    "type": "string",
                    "description": "Venue ID"
                  },
                  "VENUNAME": {
                    "type": "string",
                    "description": "Venue name (field name spelled VENUNAME)"
                  },
                  "SOURCE": {
                    "type": "string",
                    "description": "Where the code came from"
                  },
                  "TYPE": {
                    "type": "string",
                    "description": "Code type"
                  },
                  "NOTES": {
                    "type": "string",
                    "description": "Notes"
                  }
                },
                "required": [
                  "CODE",
                  "EVENTNAME"
                ]
              }
            }
          }
        }
      }
    },
    "/events": {
      "get": {
        "tags": [
          "Events"
        ],
        "summary": "list-events",
        "description": "Search events and their presale details.\n\n**Currently not enabled:** returns 403 until enabled in your api admin center.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "name": "StartDate",
            "in": "query",
            "required": true,
            "description": "Start date (YYYY-MM-DD).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "required": true,
            "description": "End date (YYYY-MM-DD).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "SaleType",
            "in": "query",
            "required": false,
            "description": "Sale type (codes site default: Presale)",
            "schema": {
              "type": "string",
              "enum": [
                "Presale",
                "First Presale",
                "Public Sale",
                "Public Sale w/out any Presales",
                "Post-Sale (Sale is after public sale)",
                "Pre or Public sale",
                "Pre, Public or Post Sales",
                "Public or Post Sale",
                "Public and Post Sale",
                "Event Date",
                "Presale Digest List",
                "Public Sale Digest List",
                "Post-Sale Digest List"
              ]
            },
            "example": "First Presale"
          },
          {
            "name": "TimeFrame",
            "in": "query",
            "required": false,
            "description": "Time frame. StartDate/EndDate are the range used for \"On a range of days\".",
            "schema": {
              "type": "string",
              "enum": [
                "Today",
                "Tomorrow",
                "Yesterday",
                "This Week",
                "In the future (include today)",
                "In the future",
                "Within the next 3 days",
                "Within the next 7 days",
                "Within the next 10 days",
                "Within the next 2 weeks",
                "Within the next 30 days",
                "Within the past 7 days",
                "Within the past 30 days",
                "Within the past 3 months",
                "Within the past 6 months",
                "Within the past year",
                "On a specific day",
                "On a range of days",
                "On any day"
              ]
            },
            "example": "Today"
          },
          {
            "name": "EventName",
            "in": "query",
            "required": false,
            "description": "Event names, comma separated",
            "schema": {
              "type": "string"
            },
            "example": "string"
          },
          {
            "name": "Country",
            "in": "query",
            "required": false,
            "description": "Countries, comma separated",
            "schema": {
              "type": "string"
            },
            "example": "United States, Canada"
          },
          {
            "name": "StatesProvinces",
            "in": "query",
            "required": false,
            "description": "States/provinces, comma separated",
            "schema": {
              "type": "string"
            },
            "example": "US,CA"
          },
          {
            "name": "IncludeTerritories",
            "in": "query",
            "required": false,
            "description": "Include territories",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "UseOfficeHours",
            "in": "query",
            "required": false,
            "description": "Use office hours",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ListType",
            "in": "query",
            "required": false,
            "description": "List type",
            "schema": {
              "type": "string",
              "enum": [
                "On My Buy List",
                "Not On My Buy List",
                "Date Added",
                "Events w/ my custom notes",
                "Keywords",
                "Watch List"
              ]
            }
          },
          {
            "name": "BuyListType",
            "in": "query",
            "required": false,
            "description": "Buy list type (used when ListType is \"On My Buy List\")",
            "schema": {
              "type": "string",
              "enum": [
                "All",
                "All Pre & Public",
                "Both",
                "NoBuy",
                "Presale",
                "Public"
              ]
            }
          },
          {
            "name": "DateAdded",
            "in": "query",
            "required": false,
            "description": "Date added (used when ListType is \"Date Added\")",
            "schema": {
              "type": "string",
              "enum": [
                "Today",
                "Yesterday",
                "Within the last 2 days",
                "Within the last 3 days",
                "All"
              ]
            }
          },
          {
            "name": "Venue",
            "in": "query",
            "required": false,
            "description": "Venue",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "City",
            "in": "query",
            "required": false,
            "description": "City",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "required": false,
            "description": "Event status",
            "schema": {
              "type": "string",
              "enum": [
                "All",
                "Unchanged",
                "Rescheduled",
                "Postponed",
                "Cancelled"
              ]
            }
          },
          {
            "name": "Category",
            "in": "query",
            "required": false,
            "description": "Category",
            "schema": {
              "type": "string",
              "enum": [
                "All",
                "Concerts",
                "Arts",
                "Family",
                "Sports",
                "Misc"
              ]
            }
          },
          {
            "name": "TicketAgents",
            "in": "query",
            "required": false,
            "description": "Ticket agents, comma separated (default: all)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Password",
            "in": "query",
            "required": false,
            "description": "Presale password",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PresaleName",
            "in": "query",
            "required": false,
            "description": "Presale name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "LowPrice",
            "in": "query",
            "required": false,
            "description": "Low price (USD); must be less than or equal to HighPrice",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "HighPrice",
            "in": "query",
            "required": false,
            "description": "High price (USD)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "Omit",
            "in": "query",
            "required": false,
            "description": "Comma separated text to omit from name, venue, city or password",
            "schema": {
              "type": "string"
            },
            "example": "string"
          },
          {
            "name": "TimeZone",
            "in": "query",
            "required": false,
            "description": "Show times in this time zone",
            "schema": {
              "type": "string"
            },
            "example": "America/New_York"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns events paginated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventsResp"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error"
          },
          "403": {
            "description": "Endpoint not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "error": "Endpoint not enabled. Please contact Private Tabs customer service at 414-326-4100 to enable this endpoint."
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.privatetabs.com",
      "description": "Private Tabs API"
    },
    {
      "url": "https://api.stage.privatetabs.com",
      "description": "This host"
    }
  ],
  "components": {
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "To use the API, log into Private Tabs Desktop, open the extension, and go to `API Keys` to find your token. Add \"Bearer \" before the token and place it in the `Authorization` header.\nFor example `Bearer eyJh...`."
      }
    },
    "schemas": {
      "AddAccountReq": {
        "properties": {
          "phone": {
            "title": "AddAccountReq.phone",
            "type": "string"
          },
          "email": {
            "title": "AddAccountReq.email",
            "type": "string"
          },
          "firstName": {
            "title": "AddAccountReq.firstName",
            "type": "string"
          },
          "lastName": {
            "title": "AddAccountReq.lastName",
            "type": "string"
          },
          "password": {
            "title": "AddAccountReq.password",
            "type": "string"
          },
          "birthday": {
            "title": "AddAccountReq.birthday",
            "type": "string",
            "example": "13/11/1998"
          },
          "address": {
            "title": "AddAccountReq.address",
            "type": "string"
          },
          "city": {
            "title": "AddAccountReq.city",
            "type": "string"
          },
          "state": {
            "title": "AddAccountReq.state",
            "type": "string"
          },
          "zip": {
            "title": "AddAccountReq.zip",
            "type": "string"
          },
          "ccNumber": {
            "title": "AddAccountReq.ccNumber",
            "type": "string",
            "description": "Last 4 digits of the card only. If a longer number is sent, only the last 4 digits are kept.",
            "example": "4242"
          },
          "ccName": {
            "title": "AddAccountReq.ccName",
            "type": "string",
            "example": "Jane Doe"
          },
          "ccCvs": {
            "title": "AddAccountReq.ccCvs",
            "type": "string",
            "description": "Ignored. CVV codes are never accepted or stored; this field is removed before saving.",
            "deprecated": true
          },
          "ccExpire": {
            "title": "AddAccountReq.ccExpire",
            "type": "string",
            "example": "12/34"
          }
        },
        "required": [
          "email",
          "firstName",
          "lastName",
          "password"
        ],
        "additionalProperties": false,
        "title": "AddAccountReq",
        "type": "object"
      },
      "UpdateAccountReq": {
        "properties": {
          "phone": {
            "title": "UpdateAccountReq.phone",
            "type": "string"
          },
          "email": {
            "title": "UpdateAccountReq.email",
            "type": "string"
          },
          "firstName": {
            "title": "UpdateAccountReq.firstName",
            "type": "string"
          },
          "lastName": {
            "title": "UpdateAccountReq.lastName",
            "type": "string"
          },
          "password": {
            "title": "UpdateAccountReq.password",
            "type": "string"
          },
          "birthday": {
            "title": "UpdateAccountReq.birthday",
            "type": "string",
            "example": "13/11/1998"
          },
          "address": {
            "title": "UpdateAccountReq.address",
            "type": "string"
          },
          "city": {
            "title": "UpdateAccountReq.city",
            "type": "string"
          },
          "state": {
            "title": "UpdateAccountReq.state",
            "type": "string"
          },
          "zip": {
            "title": "UpdateAccountReq.zip",
            "type": "string"
          },
          "ccNumber": {
            "title": "UpdateAccountReq.ccNumber",
            "type": "string",
            "description": "Last 4 digits of the card only. If a longer number is sent, only the last 4 digits are kept.",
            "example": "4242"
          },
          "ccName": {
            "title": "UpdateAccountReq.ccName",
            "type": "string",
            "example": "Jane Doe"
          },
          "ccCvs": {
            "title": "UpdateAccountReq.ccCvs",
            "type": "string",
            "description": "Ignored. CVV codes are never accepted or stored; this field is removed before saving.",
            "deprecated": true
          },
          "ccExpire": {
            "title": "UpdateAccountReq.ccExpire",
            "type": "string",
            "example": "12/34"
          }
        },
        "additionalProperties": false,
        "title": "UpdateAccountReq",
        "type": "object"
      },
      "AddSmsReq": {
        "properties": {
          "event_type": {
            "title": "AddSmsReq.title",
            "type": "string",
            "example": "message.received"
          },
          "data": {
            "title": "AddSmsReq.data",
            "type": "object",
            "properties": {
              "sender": {
                "title": "AddSmsReq.data.sender",
                "type": "string",
                "description": "sender's phone number with country code prepended",
                "example": 14141111111
              },
              "recipient": {
                "title": "AddSmsReq.data.recipient",
                "type": "string",
                "description": "recipient's phone number with country code prepended",
                "example": 14141111111
              },
              "message": {
                "title": "AddSmsReq.data.message",
                "type": "string",
                "description": "sms message"
              }
            }
          }
        },
        "additionalProperties": false,
        "title": "AddSmsReq",
        "type": "object"
      },
      "SuccessResp": {
        "properties": {
          "success": {
            "title": "SuccessResp.success",
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false,
        "title": "SuccessResp",
        "type": "object"
      },
      "AccountResp": {
        "properties": {
          "id": {
            "title": "AccountResp.phone",
            "type": "integer"
          },
          "phone": {
            "title": "AccountResp.phone",
            "type": "string"
          },
          "email": {
            "title": "AccountResp.email",
            "type": "string"
          },
          "firstName": {
            "title": "AccountResp.firstName",
            "type": "string"
          },
          "lastName": {
            "title": "AccountResp.lastName",
            "type": "string"
          },
          "password": {
            "title": "AccountResp.password",
            "type": "string"
          },
          "birthday": {
            "title": "AccountResp.birthday",
            "type": "string",
            "example": "13/11/1998"
          },
          "address": {
            "title": "AccountResp.address",
            "type": "string"
          },
          "city": {
            "title": "AccountResp.city",
            "type": "string"
          },
          "state": {
            "title": "AccountResp.state",
            "type": "string"
          },
          "zip": {
            "title": "AccountResp.zip",
            "type": "string"
          },
          "ccNumber": {
            "title": "AccountResp.ccNumber",
            "type": "string",
            "description": "Last 4 digits of the card only. If a longer number is sent, only the last 4 digits are kept.",
            "example": "4242"
          },
          "ccName": {
            "title": "AccountResp.ccName",
            "type": "string",
            "example": "Jane Doe"
          },
          "ccExpire": {
            "title": "AccountResp.ccExpire",
            "type": "string",
            "example": "12/34"
          },
          "createdAt": {
            "title": "AccountResp.createdAt",
            "type": "string"
          },
          "updatedAt": {
            "title": "AccountResp.updatedAt",
            "type": "string"
          }
        },
        "required": [
          "id",
          "firstName",
          "lastName",
          "email",
          "password",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false,
        "title": "AccountResp",
        "type": "object"
      },
      "AccountsResp": {
        "properties": {
          "page": {
            "title": "AccountsResp.page",
            "type": "integer"
          },
          "perPage": {
            "title": "AccountsResp.perPage",
            "type": "integer"
          },
          "total": {
            "title": "AccountsResp.total",
            "type": "integer"
          },
          "data": {
            "title": "AccountsResp.data",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountResp"
            }
          }
        }
      },
      "AccountFieldsResp": {
        "title": "AccountFieldsResp",
        "type": "object",
        "properties": {
          "activeColumns": {
            "title": "AccountFieldsResp.activeColumns",
            "type": "string",
            "description": "Active columns",
            "example": "string"
          },
          "name": {
            "title": "AccountFieldsResp.name",
            "type": "string",
            "description": "Name",
            "example": "string"
          },
          "phone": {
            "title": "AccountFieldsResp.phone",
            "type": "string",
            "description": "Phone",
            "example": "string"
          },
          "health": {
            "title": "AccountFieldsResp.health",
            "type": "string",
            "description": "Health",
            "example": "string"
          },
          "proxy": {
            "title": "AccountFieldsResp.proxy",
            "type": "string",
            "description": "Proxy (IP address only; proxy usernames and passwords are never returned)",
            "example": "string"
          },
          "proxyNetwork": {
            "title": "AccountFieldsResp.proxyNetwork",
            "type": "string",
            "description": "Proxy Network",
            "example": "string"
          },
          "tags": {
            "title": "AccountFieldsResp.tags",
            "type": "string",
            "description": "Tags",
            "example": "string"
          },
          "city": {
            "title": "AccountFieldsResp.city",
            "type": "string",
            "description": "City",
            "example": "string"
          },
          "state": {
            "title": "AccountFieldsResp.state",
            "type": "string",
            "description": "State",
            "example": "string"
          },
          "lastUsed": {
            "title": "AccountFieldsResp.lastUsed",
            "type": "string",
            "description": "Last Used",
            "example": "string"
          },
          "createdAt": {
            "title": "AccountFieldsResp.createdAt",
            "type": "string",
            "description": "Created At",
            "example": "string"
          },
          "cc": {
            "title": "AccountFieldsResp.cc",
            "type": "string",
            "description": "Card (last 4 digits only)",
            "example": "string"
          },
          "assigned": {
            "title": "AccountFieldsResp.assigned",
            "type": "string",
            "description": "Assigned",
            "example": "string"
          },
          "qPos": {
            "title": "AccountFieldsResp.qPos",
            "type": "string",
            "description": "Q.Pos.",
            "example": "string"
          },
          "availableColumns": {
            "title": "AccountFieldsResp.availableColumns",
            "type": "string",
            "description": "Available columns",
            "example": "string"
          },
          "password": {
            "title": "AccountFieldsResp.password",
            "type": "string",
            "description": "Password",
            "example": "string"
          },
          "source": {
            "title": "AccountFieldsResp.source",
            "type": "string",
            "description": "Source",
            "example": "string"
          },
          "zip": {
            "title": "AccountFieldsResp.zip",
            "type": "string",
            "description": "Zip",
            "example": "string"
          },
          "birthday": {
            "title": "AccountFieldsResp.birthday",
            "type": "string",
            "description": "Birthday",
            "example": "string"
          },
          "ccName": {
            "title": "AccountFieldsResp.ccName",
            "type": "string",
            "description": "CC Name",
            "example": "string"
          },
          "ccExpire": {
            "title": "AccountFieldsResp.ccExpire",
            "type": "string",
            "description": "CC Expire",
            "example": "12/34"
          }
        },
        "additionalProperties": false
      },
      "EventResp": {
        "title": "EventResp",
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "example": "string"
          },
          "price": {
            "type": "number",
            "example": 0
          },
          "lowPrice": {
            "type": "number",
            "example": 0
          },
          "highPrice": {
            "type": "number",
            "example": 0
          },
          "venue": {
            "type": "string",
            "example": "string"
          },
          "city": {
            "type": "string",
            "example": "string"
          },
          "state": {
            "type": "string",
            "example": "string"
          },
          "country": {
            "type": "string",
            "example": "string"
          },
          "eventDate": {
            "type": "string",
            "example": "string"
          },
          "presaleBeginDateTime": {
            "type": "string",
            "example": "string"
          },
          "publicSaleDateTime": {
            "type": "string",
            "example": "string"
          },
          "category": {
            "type": "string",
            "example": "string"
          },
          "saleType": {
            "type": "string",
            "example": "string"
          },
          "presaleName": {
            "type": "string",
            "example": "string"
          },
          "ticketAgent": {
            "type": "string",
            "example": "string"
          },
          "status": {
            "type": "string",
            "example": "string"
          },
          "preSaleCodes": {
            "type": "array",
            "example": [
              "string"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EventsResp": {
        "title": "EventsResp",
        "type": "object",
        "properties": {
          "page": {
            "type": "integer"
          },
          "perPage": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventResp"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Accounts",
      "description": "You can use this endpoint to insert new accounts, get existing accounts, update accounts, or delete accounts from within your Private Tabs software suite."
    },
    {
      "name": "SMS Inbox",
      "description": "The following will control inserting and retrieving messages from the SMS inbox; the POST will NOT send an actual text, but will instead insert a record in your inbox. We currently do not allow you to delete messages due to compliance reasons."
    },
    {
      "name": "Email Inbox",
      "description": "The following will control inserting and retrieving messages from the email inbox; the POST will NOT send an actual email, but will instead insert a record in your inbox."
    },
    {
      "name": "Purchases",
      "description": "Insert and retrieve purchase records. GET requires a date range of up to 90 days."
    },
    {
      "name": "Q Stats",
      "description": "Retrieve queue statistics (Q Stats). GET requires a date range of up to 90 days."
    },
    {
      "name": "Account Fields",
      "description": "This API endpoint returns all fields in your profile record, not just the basic fields."
    },
    {
      "name": "Automatic Presale Codes",
      "description": "If you automatically post your presale codes to our system, those codes will instantly be available within your account and automatically complete all presale code forms for you!"
    },
    {
      "name": "Events",
      "description": "Our event API is available for an additional fee and is only available to Enterprise Partners."
    }
  ]
}