{
  "openapi": "3.1.0",
  "info": {
    "title": "Reshapify API",
    "version": "1.0.0",
    "summary": "Read-only JSON API for Reshapify, an AI-first product design and development studio.",
    "description": "Reshapify designs and builds production-grade web apps, mobile apps, and SaaS products on a subscription. This read-only API lets agents discover services, current pricing, and contact details without scraping HTML. All error responses are structured JSON with a stable `code`, a human-readable `message`, and a `hint` describing how to resolve the error.\n\n## Versioning and deprecation\n\nThis API is versioned in the URL path. The current version is **v1**, available under `/api/v1/*`; the unversioned `/api/*` paths are an alias for v1. Breaking changes are introduced under a new prefix (for example `/api/v2`) while the previous version remains supported for at least 6 months. When an endpoint is deprecated, responses include the `Sunset` (RFC 8594) and `Deprecation` (RFC 9745) headers, and the change is documented here before removal.",
    "contact": {
      "name": "Reshapify",
      "url": "https://reshapify.com/contact",
      "email": "hello@reshapify.com"
    },
    "license": {
      "name": "Proprietary",
      "identifier": "LicenseRef-Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://reshapify.com",
      "description": "Production"
    }
  ],
  "externalDocs": {
    "description": "Reshapify API and agent documentation",
    "url": "https://reshapify.com/docs"
  },
  "x-versioning": {
    "scheme": "url-path",
    "current": "v1",
    "canonicalBase": "/api/v1",
    "aliases": [
      "/api"
    ],
    "deprecationPolicy": "Deprecated endpoints emit Sunset (RFC 8594) and Deprecation (RFC 9745) response headers and are documented before removal with at least 6 months notice."
  },
  "tags": [
    {
      "name": "Discovery",
      "description": "Metadata about this API and its capabilities."
    },
    {
      "name": "Catalog",
      "description": "Services Reshapify offers."
    },
    {
      "name": "Company",
      "description": "Contact and pricing details."
    }
  ],
  "paths": {
    "/api": {
      "get": {
        "operationId": "getApiIndex",
        "summary": "API discovery document",
        "description": "Returns API metadata, the current version, links to the OpenAPI document and docs, and the available endpoints. Use this operation first when discovering the Reshapify API.",
        "tags": [
          "Discovery"
        ],
        "responses": {
          "200": {
            "description": "API discovery document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiIndex"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    },
    "/api/services": {
      "get": {
        "operationId": "listServices",
        "summary": "List Reshapify services",
        "description": "Returns the product design and development services Reshapify provides. Optionally filter to a single service by `slug`.",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "description": "Filter the catalog to a single service by its stable slug (for example `mvp-development`). Returns an empty `data` array when nothing matches.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "mvpDevelopment": {
                "value": "mvp-development"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A list of services, each with a stable slug, a name, and a description.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceList"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    },
    "/api/contact": {
      "get": {
        "operationId": "getContact",
        "summary": "Get contact and pricing details",
        "description": "Returns organisation contact details, the booking link, and current subscription pricing.",
        "tags": [
          "Company"
        ],
        "responses": {
          "200": {
            "description": "Contact and pricing details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    },
    "/api/v1": {
      "get": {
        "operationId": "getApiIndexV1",
        "summary": "API discovery document (v1)",
        "description": "Versioned v1 form of GET /api. Returns API metadata, the current version, links to the OpenAPI document and docs, and the available endpoints.",
        "tags": [
          "Discovery"
        ],
        "responses": {
          "200": {
            "description": "API discovery document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiIndex"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    },
    "/api/v1/services": {
      "get": {
        "operationId": "listServicesV1",
        "summary": "List Reshapify services (v1)",
        "description": "Versioned v1 form of GET /api/services. Returns the services Reshapify provides, optionally filtered by `slug`.",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "description": "Filter the catalog to a single service by its stable slug (for example `mvp-development`). Returns an empty `data` array when nothing matches.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "mvpDevelopment": {
                "value": "mvp-development"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A list of services, each with a stable slug, a name, and a description.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceList"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    },
    "/api/v1/contact": {
      "get": {
        "operationId": "getContactV1",
        "summary": "Get contact and pricing details (v1)",
        "description": "Versioned v1 form of GET /api/contact. Returns organisation contact details, the booking link, and current subscription pricing.",
        "tags": [
          "Company"
        ],
        "responses": {
          "200": {
            "description": "Contact and pricing details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiIndex": {
        "type": "object",
        "required": [
          "name",
          "version",
          "apiVersion",
          "docs",
          "openapi",
          "endpoints"
        ],
        "properties": {
          "name": {
            "type": "string",
            "examples": [
              "Reshapify API"
            ]
          },
          "version": {
            "type": "string",
            "examples": [
              "1.0.0"
            ]
          },
          "apiVersion": {
            "type": "string",
            "examples": [
              "v1"
            ]
          },
          "description": {
            "type": "string"
          },
          "docs": {
            "type": "string",
            "format": "uri"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "whenToUse": {
            "type": "string"
          },
          "endpoints": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "versionedEndpoints": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "versioning": {
            "type": "object",
            "properties": {
              "scheme": {
                "type": "string"
              },
              "current": {
                "type": "string"
              },
              "canonicalBase": {
                "type": "string"
              },
              "note": {
                "type": "string"
              },
              "deprecation": {
                "type": "string"
              }
            }
          }
        }
      },
      "Service": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "description"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "examples": [
              "mvp-development"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "MVP Development"
            ]
          },
          "description": {
            "type": "string"
          }
        }
      },
      "ServiceList": {
        "type": "object",
        "required": [
          "data",
          "count"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            }
          },
          "count": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "ContactResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Contact"
          }
        }
      },
      "Contact": {
        "type": "object",
        "required": [
          "organisation",
          "website",
          "email",
          "bookingUrl",
          "pricing"
        ],
        "properties": {
          "organisation": {
            "type": "string",
            "examples": [
              "Reshapify"
            ]
          },
          "website": {
            "type": "string",
            "format": "uri"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "bookingUrl": {
            "type": "string",
            "format": "uri"
          },
          "pricing": {
            "type": "object",
            "properties": {
              "monthly": {
                "$ref": "#/components/schemas/Plan"
              },
              "threeMonth": {
                "$ref": "#/components/schemas/Plan"
              }
            }
          }
        }
      },
      "Plan": {
        "type": "object",
        "required": [
          "amount",
          "currency",
          "unit"
        ],
        "properties": {
          "amount": {
            "type": "number",
            "examples": [
              13995
            ]
          },
          "currency": {
            "type": "string",
            "examples": [
              "USD"
            ]
          },
          "unit": {
            "type": "string",
            "examples": [
              "month"
            ]
          },
          "rolling": {
            "type": "boolean"
          },
          "commitmentMonths": {
            "type": "integer"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "hint",
              "status"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code.",
                "examples": [
                  "not_found",
                  "method_not_allowed"
                ]
              },
              "message": {
                "type": "string",
                "description": "Human-readable description of the error."
              },
              "hint": {
                "type": "string",
                "description": "How to resolve or avoid the error."
              },
              "docs": {
                "type": "string",
                "format": "uri"
              },
              "status": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "responses": {
      "MethodNotAllowed": {
        "description": "The HTTP method is not supported. The API is read-only; use GET.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "security": []
}
