{
  "openapi": "3.1.0",
  "info": {
    "title": "Toast API",
    "version": "1.0",
    "description": "Toast online ordering menus, restaurant details, schedules and item modifiers\n\nCalled through the ApiClay gateway with an ApiClay token or API key (https://apiclay.com/dashboard/keys). Pricing, trial, fees and full parameter notes: https://apiclay.com/api/toastapi/llms.txt",
    "x-apiclay-vendor": "toastapi",
    "x-apiclay-pricing": "0.01 credits/request, 1 trial requests"
  },
  "externalDocs": {
    "description": "Full documentation for AI agents (Markdown)",
    "url": "https://apiclay.com/api/toastapi/llms.txt"
  },
  "servers": [
    {
      "url": "https://api.apiclay.com/v1/api/toastapi"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "tokenHeader": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "ApiClay API key (apiclay_…) or session token"
      },
      "tokenHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "token",
        "description": "ApiClay API key (apiclay_…) or session token"
      }
    }
  },
  "paths": {
    "/menus": {
      "post": {
        "operationId": "post_menus",
        "summary": "Menus (menu items with popular items)",
        "responses": {
          "200": {
            "description": "The upstream response (JSON unless the route or `X-ApiClay-Html` chooses another output)"
          },
          "default": {
            "description": "Gateway error, JSON: SOURCE_UNAVAILABLE = upstream or datasource failed, unknown path, or malformed request; POLICY_LIMIT_EXCEEDED = rate limit, daily cap, or the vendor's request policy was hit; SERVER_BUSY = gateway at capacity; retry with backoff; INSUFFICIENT_BALANCE = no credits left once trial and plan requests are used up; AUTH_FAILED = missing or invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "variables": {
                  "input": {
                    "restaurantGuid": "abe3d655-02e5-4e8a-8c1c-948c13ec1f9c",
                    "menuApi": "DO",
                    "visibility": "TOAST_ONLINE_ORDERING",
                    "respectAvailability": true,
                    "hideOutOfStockItems": false,
                    "offset": 0,
                    "filters": null
                  },
                  "popularItemsInput": {
                    "menusInput": {
                      "restaurantGuid": "abe3d655-02e5-4e8a-8c1c-948c13ec1f9c",
                      "menuApi": "DO",
                      "visibility": "TOAST_ONLINE_ORDERING",
                      "respectAvailability": true,
                      "hideOutOfStockItems": false
                    },
                    "restaurantGuid": "abe3d655-02e5-4e8a-8c1c-948c13ec1f9c"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/schedules": {
      "post": {
        "operationId": "post_schedules",
        "summary": "Schedules (online ordering schedule of restaurants)",
        "responses": {
          "200": {
            "description": "The upstream response (JSON unless the route or `X-ApiClay-Html` chooses another output)"
          },
          "default": {
            "description": "Gateway error, JSON: SOURCE_UNAVAILABLE = upstream or datasource failed, unknown path, or malformed request; POLICY_LIMIT_EXCEEDED = rate limit, daily cap, or the vendor's request policy was hit; SERVER_BUSY = gateway at capacity; retry with backoff; INSUFFICIENT_BALANCE = no credits left once trial and plan requests are used up; AUTH_FAILED = missing or invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "variables": {
                  "restaurantGuids": [
                    "abe3d655-02e5-4e8a-8c1c-948c13ec1f9c"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/store": {
      "post": {
        "operationId": "post_store",
        "summary": "Store (restaurant details and dining options)",
        "responses": {
          "200": {
            "description": "The upstream response (JSON unless the route or `X-ApiClay-Html` chooses another output)"
          },
          "default": {
            "description": "Gateway error, JSON: SOURCE_UNAVAILABLE = upstream or datasource failed, unknown path, or malformed request; POLICY_LIMIT_EXCEEDED = rate limit, daily cap, or the vendor's request policy was hit; SERVER_BUSY = gateway at capacity; retry with backoff; INSUFFICIENT_BALANCE = no credits left once trial and plan requests are used up; AUTH_FAILED = missing or invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "variables": {
                  "restaurantGuid": "abe3d655-02e5-4e8a-8c1c-948c13ec1f9c"
                }
              }
            }
          }
        }
      }
    },
    "/customizations": {
      "post": {
        "operationId": "post_customizations",
        "summary": "Customizations (modifier groups of an item)",
        "responses": {
          "200": {
            "description": "The upstream response (JSON unless the route or `X-ApiClay-Html` chooses another output)"
          },
          "default": {
            "description": "Gateway error, JSON: SOURCE_UNAVAILABLE = upstream or datasource failed, unknown path, or malformed request; POLICY_LIMIT_EXCEEDED = rate limit, daily cap, or the vendor's request policy was hit; SERVER_BUSY = gateway at capacity; retry with backoff; INSUFFICIENT_BALANCE = no credits left once trial and plan requests are used up; AUTH_FAILED = missing or invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "variables": {
                  "input": {
                    "itemGuid": "<item guid>",
                    "itemGroupGuid": "<item group guid>",
                    "shortUrl": "pho-mph-4616-triangle-ave-203",
                    "restaurantGuid": "abe3d655-02e5-4e8a-8c1c-948c13ec1f9c",
                    "menuApi": "DO",
                    "visibility": "TOAST_ONLINE_ORDERING",
                    "dateTime": "2026-11-09T18:00:00+0000"
                  },
                  "nestingLevel": 10
                }
              }
            }
          }
        }
      }
    }
  }
}
