{
  "opencollection": "1.0.0",
  "info": {
    "name": "At-Bay Partner API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Quotes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create A Quote",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.at-bay.com/v2/quotes",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submit a new quote request for one of the supported insurance products (CYB, TEO, or MPL). Returns a quote_identifier and company_id; poll GET /quotes/{quote_identifier} every 10 seconds until status changes."
        },
        {
          "info": {
            "name": "Find A Quote",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.at-bay.com/v2/quotes/:quote_identifier",
            "params": [
              {
                "name": "quote_identifier",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve current status and details for a quote."
        },
        {
          "info": {
            "name": "Bind A Quote",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.at-bay.com/v2/quotes/:quote_identifier/bind",
            "params": [
              {
                "name": "quote_identifier",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Request binding of an open quote into an active policy."
        }
      ]
    },
    {
      "info": {
        "name": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Quote Documents Metadata",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.at-bay.com/v2/quotes/:quote_identifier/documents",
            "params": [
              {
                "name": "quote_identifier",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List documents available for a quote at its current status."
        },
        {
          "info": {
            "name": "Download Quote Document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.at-bay.com/v2/quotes/:quote_identifier/documents/:document_id",
            "params": [
              {
                "name": "quote_identifier",
                "value": "",
                "type": "path"
              },
              {
                "name": "document_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Download a single document for the given quote."
        },
        {
          "info": {
            "name": "Upload A Document",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.at-bay.com/v2/documents",
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "quote_identifier",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload supporting documents for a quote (loss runs, applications, etc.)."
        }
      ]
    },
    {
      "info": {
        "name": "Policies",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Pause Auto Renewal",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.at-bay.com/v2/policies/:policy_id/pause-auto-renewal",
            "params": [
              {
                "name": "policy_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Change the allowed renewal type of the given policy to manual so no auto-renewal will be created."
        }
      ]
    },
    {
      "info": {
        "name": "Webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Webhooks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.at-bay.com/v2/webhooks"
          },
          "docs": "Get information about registered webhooks for the partner."
        },
        {
          "info": {
            "name": "Register A Webhook",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.at-bay.com/v2/webhooks",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Register a callback URL for asynchronous quote and policy status events."
        },
        {
          "info": {
            "name": "Unregister A Webhook",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.at-bay.com/v2/webhooks/:webhook_id",
            "params": [
              {
                "name": "webhook_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove a previously registered webhook."
        },
        {
          "info": {
            "name": "Set Webhook Secret",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.at-bay.com/v2/webhooks/secret",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Rotate or set the shared secret used to sign webhook callbacks."
        }
      ]
    },
    {
      "info": {
        "name": "Health",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Health Check",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.at-bay.com/v2/health"
          },
          "docs": "Lightweight liveness probe for the API."
        }
      ]
    }
  ],
  "bundled": true
}