{
    "openapi": "3.1.0",
    "info": {
        "title": "Qyx.ai website content feed",
        "version": "1.0.0",
        "description": "Read-only feed of public qyx.ai website content for AI assistants: AI tool pages and their features, Smart Templates, blog articles, pricing and site search. No authentication. This is not an API for the qyx.ai app - the AI tools themselves are used at https://app.qyx.ai.",
        "contact": {
            "email": "hi@qyx.ai",
            "url": "https://qyx.ai/docs/"
        }
    },
    "servers": [
        {
            "url": "https://qyx.ai/api/v1"
        }
    ],
    "externalDocs": {
        "url": "https://qyx.ai/docs/"
    },
    "paths": {
        "/tools": {
            "get": {
                "operationId": "listTools",
                "summary": "List AI tools with their features",
                "responses": {
                    "200": {
                        "description": "AI tools.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ToolList"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/tools/{slug}": {
            "get": {
                "operationId": "getTool",
                "summary": "One AI tool, with features and FAQ",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The tool.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Tool"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/templates": {
            "get": {
                "operationId": "listTemplates",
                "summary": "List Smart Templates",
                "parameters": [
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Category name or slug."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Templates.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TemplateList"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/templates/{slug}": {
            "get": {
                "operationId": "getTemplate",
                "summary": "One Smart Template with an example",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The template.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Template"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/articles": {
            "get": {
                "operationId": "listArticles",
                "summary": "Latest blog articles",
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 20
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Articles.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ArticleList"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/pricing": {
            "get": {
                "operationId": "getPricing",
                "summary": "Plans, credit packs and credit costs",
                "responses": {
                    "200": {
                        "description": "Pricing.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pricing"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/search": {
            "get": {
                "operationId": "search",
                "summary": "Search tools, templates, articles and pages",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 25,
                            "default": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Results.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SearchList"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "Feature": {
                "type": "object",
                "properties": {
                    "anchor": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "text": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    }
                }
            },
            "Tool": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "features": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Feature"
                        }
                    },
                    "headline": {
                        "type": "string"
                    },
                    "faq": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Faq"
                        }
                    },
                    "signup": {
                        "type": "string"
                    }
                }
            },
            "Faq": {
                "type": "object",
                "properties": {
                    "question": {
                        "type": "string"
                    },
                    "answer": {
                        "type": "string"
                    }
                }
            },
            "Template": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": "string"
                    },
                    "intro": {
                        "type": "string"
                    },
                    "what_is": {
                        "type": "string"
                    },
                    "inputs": {
                        "type": "string"
                    },
                    "example": {
                        "type": "object",
                        "properties": {
                            "input": {
                                "type": "string"
                            },
                            "output": {
                                "type": "string"
                            }
                        }
                    },
                    "tips": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "faq": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Faq"
                        }
                    },
                    "signup": {
                        "type": "string"
                    }
                }
            },
            "Article": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "published": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "summary": {
                        "type": "string"
                    }
                }
            },
            "SearchResult": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string",
                        "enum": [
                            "tool",
                            "template",
                            "article",
                            "page"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    }
                }
            },
            "Pricing": {
                "type": "object",
                "properties": {
                    "currency": {
                        "type": "string"
                    },
                    "plans": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "users": {
                                    "type": "integer"
                                },
                                "monthly_price": {
                                    "type": "number"
                                },
                                "monthly_credits": {
                                    "type": "integer"
                                },
                                "yearly_price": {
                                    "type": "number"
                                },
                                "yearly_credits": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "credit_packs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "credits": {
                                    "type": "integer"
                                },
                                "price": {
                                    "type": "number"
                                }
                            }
                        }
                    },
                    "credits_per_image": {
                        "type": "integer"
                    },
                    "credits_per_video": {
                        "type": "integer"
                    },
                    "notes": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "url": {
                        "type": "string"
                    },
                    "signup": {
                        "type": "string"
                    }
                }
            },
            "ToolList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Tool"
                        }
                    }
                }
            },
            "TemplateList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Template"
                        }
                    }
                }
            },
            "ArticleList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Article"
                        }
                    }
                }
            },
            "SearchList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SearchResult"
                        }
                    }
                }
            },
            "Error": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    }
                }
            }
        }
    }
}