{
  "openapi": "3.0.3",
  "info": {
    "title": "Readysheet API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.readysheet.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/v1/external/sheet_templates": {
      "get": {
        "summary": "List sheet templates",
        "operationId": "get_v1_external_sheet_templates_index",
        "tags": [
          "Sheet Templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "lastUpdatedAt": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid API key"
          },
          "403": {
            "description": "Permission denied"
          },
          "429": {
            "description": "Rate limit exceeded"
          }
        },
        "description": "Returns published sheet templates available to the authenticated API key."
      }
    },
    "/v1/external/sheet_templates/{id}": {
      "get": {
        "summary": "Show a sheet template",
        "operationId": "get_v1_external_sheet_templates_show",
        "tags": [
          "Sheet Templates"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "elements": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid API key"
          },
          "403": {
            "description": "Permission denied"
          },
          "429": {
            "description": "Rate limit exceeded"
          }
        },
        "description": "Returns one published sheet template by slug."
      }
    }
  }
}