{
  "openapi": "3.1.0",
  "info": {
    "title": "Atioko Public Information API",
    "version": "1.0.0",
    "description": "Read-only product information and published article metadata. No customer data or publishing operations are exposed. No authentication is required. No application-level rate limit is configured; hosting limits may apply.",
    "contact": {
      "name": "Atioko",
      "url": "https://atioko.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://atioko.com"
    }
  ],
  "security": [],
  "paths": {
    "/api": {
      "get": {
        "operationId": "discoverAtiokoApi",
        "summary": "Discover Atioko public information endpoints and documentation.",
        "description": "Discover Atioko public information endpoints and documentation. This endpoint is public, read-only, and requires no credentials.",
        "security": [],
        "responses": {
          "200": {
            "description": "Public information returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "openapi": {
                      "type": "string",
                      "format": "uri"
                    },
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "name",
                    "version",
                    "docs",
                    "openapi",
                    "endpoints"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "405": {
            "description": "Unsupported method. Use GET.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/product": {
      "get": {
        "operationId": "getAtiokoProduct",
        "summary": "Read Atioko product details and current early access status.",
        "description": "Read Atioko product details and current early access status. This endpoint is public, read-only, and requires no credentials.",
        "security": [],
        "responses": {
          "200": {
            "description": "Public information returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "405": {
            "description": "Unsupported method. Use GET.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/resources": {
      "get": {
        "operationId": "listAtiokoResources",
        "summary": "List metadata and canonical links for all published Atioko articles.",
        "description": "List metadata and canonical links for all published Atioko articles. This endpoint is public, read-only, and requires no credentials.",
        "security": [],
        "responses": {
          "200": {
            "description": "Public information returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "resources": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Resource"
                      }
                    }
                  },
                  "required": [
                    "resources"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "405": {
            "description": "Unsupported method. Use GET.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/resources/{slug}": {
      "get": {
        "operationId": "getAtiokoResource",
        "summary": "Read metadata and the canonical link for one published Atioko article.",
        "description": "Read metadata and the canonical link for one published Atioko article. This endpoint is public, read-only, and requires no credentials.",
        "security": [],
        "responses": {
          "200": {
            "description": "Public information returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resource"
                }
              }
            }
          },
          "405": {
            "description": "Unsupported method. Use GET.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No published resource has this slug. List resources to find a valid slug.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Article slug returned by GET /api/resources.",
            "schema": {
              "type": "string"
            },
            "example": "content-gap-analysis"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Product": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "waitlistUrl": {
            "type": "string",
            "format": "uri"
          },
          "contactUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "name",
          "description",
          "status",
          "url",
          "waitlistUrl",
          "contactUrl"
        ],
        "additionalProperties": false
      },
      "Resource": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "publishedAt": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "slug",
          "title",
          "description",
          "url",
          "publishedAt"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "hint": {
                "type": "string"
              },
              "docs": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "code",
              "message",
              "hint",
              "docs"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      }
    }
  },
  "externalDocs": {
    "description": "Atioko API documentation",
    "url": "https://atioko.com/docs"
  }
}
