{
  "openapi": "3.1.0",
  "info": {
    "title": "feat.press API",
    "version": "1.0.0",
    "summary": "Public and merchant HTTP API for the feat.press affiliate marketplace.",
    "description": "feat.press is the affiliate marketplace for products AI helps you build. This OpenAPI document covers public marketplace reads, waitlist intake, license verification, and authenticated app entitlement endpoints. Human docs: /developers. MCP: /mcp.",
    "contact": {
      "name": "feat.press",
      "url": "https://www.feat.press"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://www.feat.press",
      "description": "feat.press"
    }
  ],
  "tags": [
    {
      "name": "Marketplace",
      "description": "Public listing catalog."
    },
    {
      "name": "Waitlist",
      "description": "Public waitlist intake."
    },
    {
      "name": "Licenses",
      "description": "Buyer license verification for app products."
    },
    {
      "name": "Entitlements",
      "description": "Merchant-server entitlement lifecycle."
    }
  ],
  "paths": {
    "/api/marketplace/listings": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "operationId": "listMarketplaceListings",
        "summary": "Browse live feat.press marketplace listings",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Search query."
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "charts",
                "new",
                "reward"
              ]
            }
          },
          {
            "name": "compensation",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "commission",
                "upfront",
                "both"
              ]
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 48
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Listing page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingListResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/marketplace/listings/{slug}": {
      "get": {
        "tags": [
          "Marketplace"
        ],
        "operationId": "getMarketplaceListing",
        "summary": "Get a live feat.press listing by slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingDetailResponse"
                }
              }
            }
          },
          "404": {
            "description": "Listing not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/waitlist": {
      "post": {
        "tags": [
          "Waitlist"
        ],
        "operationId": "joinWaitlist",
        "summary": "Join the feat.press waitlist",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "name": {
                    "type": "string"
                  },
                  "handle": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "creator",
                      "brand",
                      "both"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Accepted"
          },
          "400": {
            "description": "Invalid email",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/licenses/verify": {
      "post": {
        "tags": [
          "Licenses"
        ],
        "operationId": "verifyLicense",
        "summary": "Verify a feat.press app license key",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "licenseKey"
                ],
                "properties": {
                  "licenseKey": {
                    "type": "string",
                    "minLength": 24,
                    "maxLength": 120
                  },
                  "productId": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verification result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseVerifyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Malformed license key",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/app-entitlements/{id}": {
      "get": {
        "tags": [
          "Entitlements"
        ],
        "operationId": "getAppEntitlement",
        "summary": "Fetch a feat.press app entitlement by id",
        "security": [
          {
            "AppApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Entitlement"
          },
          "401": {
            "description": "Invalid app API key",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Entitlement not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/app-entitlements/{id}/cancel": {
      "post": {
        "tags": [
          "Entitlements"
        ],
        "operationId": "cancelAppEntitlement",
        "summary": "Cancel a feat.press subscription entitlement at period end",
        "security": [
          {
            "AppApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Cancellation scheduled"
          },
          "400": {
            "description": "Missing idempotency key",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Invalid app API key",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/app-entitlements/{id}/resume": {
      "post": {
        "tags": [
          "Entitlements"
        ],
        "operationId": "resumeAppEntitlement",
        "summary": "Resume a feat.press entitlement scheduled for cancellation",
        "security": [
          {
            "AppApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Resumed"
          },
          "401": {
            "description": "Invalid app API key",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "feat_live",
        "description": "Product-scoped feat.press app API key from App access."
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "RFC 9457 problem type URI.",
            "examples": [
              "https://www.feat.press/problems/not-found"
            ]
          },
          "title": {
            "type": "string",
            "description": "Short, stable problem summary."
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code."
          },
          "detail": {
            "type": "string",
            "description": "Human-readable explanation."
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "Machine-readable feat.press error code.",
            "examples": [
              "not_found",
              "invalid_email",
              "unauthorized"
            ]
          }
        }
      },
      "Listing": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "blurb": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "commissionPercent": {
            "type": "number"
          },
          "compensationType": {
            "type": "string",
            "enum": [
              "commission",
              "upfront",
              "both"
            ]
          },
          "compensationLabel": {
            "type": "string"
          },
          "featured": {
            "type": "boolean"
          },
          "storefrontCount": {
            "type": "integer"
          }
        }
      },
      "ListingListResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Listing"
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "hasMore": {
                "type": "boolean"
              }
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "correlationId": {
            "type": "string"
          }
        }
      },
      "ListingDetailResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/Listing"
          },
          "correlationId": {
            "type": "string"
          }
        }
      },
      "LicenseVerifyResponse": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          },
          "entitlement": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "productId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "tierId": {
                "type": "string"
              },
              "tierName": {
                "type": "string"
              },
              "billingInterval": {
                "type": "string"
              },
              "currentPeriodEnd": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "feat.press developer resources",
    "url": "https://www.feat.press/developers"
  }
}
