{
    "openapi": "3.0.3",
    "info": {
        "title": "Tax Relief Advisers Public Read-Only Agent API",
        "description": "Callable read-only HTTP GET operations for searching IRS and state tax relief guides, retrieving page content, looking up statutory IRS notice deadlines, and verifying Tax Relief Advisers branch offices.",
        "version": "1.6.5",
        "contact": {
            "name": "Tax Relief Advisers",
            "url": "https://taxreliefadvisers.com/contact-tax-relief-advisers/"
        }
    },
    "security": [],
    "servers": [
        {
            "url": "https://taxreliefadvisers.com/wp-json",
            "description": "WordPress REST API Root"
        }
    ],
    "paths": {
        "/wp/v2/search": {
            "get": {
                "operationId": "searchTaxContent",
                "summary": "Search published tax relief guides and pages",
                "description": "Full-text keyword search across all published Tax Relief Advisers articles and service pages.",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Keyword or IRS notice number (e.g., LT11, bank levy, Offer in Compromise, Virginia warrant)"
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 10
                        },
                        "description": "Maximum results to return"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Matching search results",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/SearchResult"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp/v2/posts": {
            "get": {
                "operationId": "listTaxGuides",
                "summary": "List published IRS and state tax defense articles",
                "description": "Retrieve a paginated collection of published tax defense articles.",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Filter posts matching a search term"
                    },
                    {
                        "name": "slug",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Filter by exact URL slug"
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 10
                        },
                        "description": "Items per page"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of published posts",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ContentItem"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp/v2/pages": {
            "get": {
                "operationId": "listServicePages",
                "summary": "List published tax relief service and branch office pages",
                "description": "Retrieve published service hubs and regional branch landing pages.",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Filter pages matching a search term"
                    },
                    {
                        "name": "slug",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Filter by exact page slug"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of published pages",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ContentItem"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/tra-agent/v1/notices": {
            "get": {
                "operationId": "lookupIrsNotice",
                "summary": "Look up IRS notice risk level, statutory deadline, and defense protocol",
                "description": "Returns structured statutory triage data for IRS notices (LT11, Letter 1058, CP504, Letter 1153, Form 668-A/W, CP2000, CP508C).",
                "parameters": [
                    {
                        "name": "code",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Optional IRS notice code (e.g., LT11, CP504, 1153, 668-A, CP2000). Omit to list all."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "IRS notice statutory triage details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/tra-agent/v1/offices": {
            "get": {
                "operationId": "getFirmAndBranchOffices",
                "summary": "Get Tax Relief Advisers credentials and physical office addresses",
                "description": "Returns verified licensing credentials, $10k+ qualification criteria, phone hotline, and branch addresses in Missoula, Richmond, Dallas, and Boise.",
                "responses": {
                    "200": {
                        "description": "Firm profile and regional branch locations",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "RenderedString": {
                "type": "object",
                "properties": {
                    "rendered": {
                        "type": "string"
                    }
                }
            },
            "ContentItem": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "link": {
                        "type": "string",
                        "format": "uri"
                    },
                    "date": {
                        "type": "string"
                    },
                    "modified": {
                        "type": "string"
                    },
                    "title": {
                        "$ref": "#/components/schemas/RenderedString"
                    },
                    "excerpt": {
                        "$ref": "#/components/schemas/RenderedString"
                    }
                }
            },
            "SearchResult": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "type": {
                        "type": "string"
                    },
                    "subtype": {
                        "type": "string"
                    }
                }
            }
        }
    }
}