{
  "openapi": "3.0.3",
  "info": {
    "title": "Bolesat Internal Tracking API",
    "version": "1.0.0",
    "description": "Preview candidate. No data means unavailable, never proof of nonexistence."
  },
  "servers": [
    {
      "url": "https://api.bolesat.com",
      "description": "Official API hostname — currently validated Preview; production release pending"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/api/v1/track": {
      "get": {
        "operationId": "trackShipment",
        "parameters": [
          {
            "name": "awb",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9]{8,30}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Standard JSON response"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Missing or invalid key"
          },
          "403": {
            "description": "Scope denied"
          },
          "405": {
            "description": "Wrong method"
          },
          "429": {
            "description": "Quota exceeded"
          },
          "503": {
            "description": "Store unavailable"
          }
        }
      }
    },
    "/api/v1/track/bulk": {
      "post": {
        "operationId": "trackBulk",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "tracking_numbers"
                ],
                "properties": {
                  "tracking_numbers": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Standard JSON response"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Missing or invalid key"
          },
          "403": {
            "description": "Scope denied"
          },
          "405": {
            "description": "Wrong method"
          },
          "429": {
            "description": "Quota exceeded"
          },
          "503": {
            "description": "Store unavailable"
          }
        }
      }
    },
    "/api/v1/detect": {
      "get": {
        "operationId": "detectCarrier",
        "parameters": [
          {
            "name": "awb",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9]{8,30}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Standard JSON response"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Missing or invalid key"
          },
          "403": {
            "description": "Scope denied"
          },
          "405": {
            "description": "Wrong method"
          },
          "429": {
            "description": "Quota exceeded"
          },
          "503": {
            "description": "Store unavailable"
          }
        }
      }
    },
    "/api/v1/carriers": {
      "get": {
        "operationId": "listCarriers",
        "responses": {
          "200": {
            "description": "Standard JSON response"
          },
          "400": {
            "description": "Invalid input"
          },
          "401": {
            "description": "Missing or invalid key"
          },
          "403": {
            "description": "Scope denied"
          },
          "405": {
            "description": "Wrong method"
          },
          "429": {
            "description": "Quota exceeded"
          },
          "503": {
            "description": "Store unavailable"
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "operationId": "health",
        "security": [],
        "responses": {
          "200": {
            "description": "Standard JSON response"
          },
          "503": {
            "description": "Auth store not configured"
          }
        }
      }
    }
  }
}