{
  "openapi": "3.1.0",
  "info": {
    "title": "Review Times API",
    "version": "1.0.0",
    "description": "How long AI app, connector and plugin stores take to review submissions. Reads are public and need no key. Writing a report returns a per-report token that is the only credential for updating it."
  },
  "servers": [
    {
      "url": "https://reviewtimes.fyi"
    }
  ],
  "paths": {
    "/api/v1/stores": {
      "get": {
        "operationId": "listStores",
        "summary": "Review times for every store",
        "parameters": [
          {
            "name": "points",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Include survival curve and raw points"
          }
        ],
        "responses": {
          "200": {
            "description": "All stores",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated_at": {
                      "type": "string"
                    },
                    "window_days": {
                      "type": "integer"
                    },
                    "stores": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "type": "string",
                            "enum": [
                              "chatgpt",
                              "claude-connectors",
                              "claude-plugins",
                              "muse",
                              "grok",
                              "clawhub",
                              "cursor",
                              "copilot",
                              "gemini-cli",
                              "docker-mcp"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "vendor": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "verdict": {
                            "type": "string",
                            "description": "One sentence answering \"how long will it take?\""
                          },
                          "typical_wait_days": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Kaplan-Meier median days to a decision. Null when not enough data or fewer than half decided."
                          },
                          "typical_wait_is_lower_bound": {
                            "type": "boolean",
                            "description": "True when most submissions are still waiting; quote longest_seen_days with a \"+\"."
                          },
                          "longest_seen_days": {
                            "type": "number"
                          },
                          "range_days": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "number"
                            }
                          },
                          "median_to_approval_days": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "median_to_rejection_days": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "decided_within_30_days": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "pace": {
                            "type": "string",
                            "enum": [
                              "moving",
                              "slow",
                              "stalled",
                              "early",
                              "quiet",
                              "unknown"
                            ]
                          },
                          "counts": {
                            "type": "object",
                            "properties": {
                              "total": {
                                "type": "integer"
                              },
                              "approved": {
                                "type": "integer"
                              },
                              "rejected": {
                                "type": "integer"
                              },
                              "waiting": {
                                "type": "integer"
                              },
                              "withdrawn": {
                                "type": "integer"
                              }
                            }
                          },
                          "oldest_waiting_days": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "last_decision": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date"
                          },
                          "last_approval": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date"
                          },
                          "how_review_works": {
                            "type": "string"
                          },
                          "submit_url": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/stores/{store}": {
      "get": {
        "operationId": "getStore",
        "summary": "Review times for one store",
        "parameters": [
          {
            "name": "store",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Slug, alias or name"
          }
        ],
        "responses": {
          "200": {
            "description": "One store",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string",
                      "enum": [
                        "chatgpt",
                        "claude-connectors",
                        "claude-plugins",
                        "muse",
                        "grok",
                        "clawhub",
                        "cursor",
                        "copilot",
                        "gemini-cli",
                        "docker-mcp"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "vendor": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "verdict": {
                      "type": "string",
                      "description": "One sentence answering \"how long will it take?\""
                    },
                    "typical_wait_days": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Kaplan-Meier median days to a decision. Null when not enough data or fewer than half decided."
                    },
                    "typical_wait_is_lower_bound": {
                      "type": "boolean",
                      "description": "True when most submissions are still waiting; quote longest_seen_days with a \"+\"."
                    },
                    "longest_seen_days": {
                      "type": "number"
                    },
                    "range_days": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "number"
                      }
                    },
                    "median_to_approval_days": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "median_to_rejection_days": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "decided_within_30_days": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "pace": {
                      "type": "string",
                      "enum": [
                        "moving",
                        "slow",
                        "stalled",
                        "early",
                        "quiet",
                        "unknown"
                      ]
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer"
                        },
                        "approved": {
                          "type": "integer"
                        },
                        "rejected": {
                          "type": "integer"
                        },
                        "waiting": {
                          "type": "integer"
                        },
                        "withdrawn": {
                          "type": "integer"
                        }
                      }
                    },
                    "oldest_waiting_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "last_decision": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date"
                    },
                    "last_approval": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date"
                    },
                    "how_review_works": {
                      "type": "string"
                    },
                    "submit_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown store",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reports": {
      "post": {
        "operationId": "createReport",
        "summary": "Report a submission",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "store",
                  "submitted_on",
                  "status"
                ],
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store slug or name"
                  },
                  "submitted_on": {
                    "type": "string",
                    "format": "date"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "waiting",
                      "approved",
                      "rejected",
                      "withdrawn"
                    ]
                  },
                  "decided_on": {
                    "type": "string",
                    "format": "date",
                    "description": "Required unless status is waiting"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "new",
                      "update",
                      "resubmission"
                    ]
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 280
                  },
                  "source_url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "update_url": {
                      "type": "string"
                    },
                    "share_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reports/{token}": {
      "patch": {
        "operationId": "updateReport",
        "summary": "Update a submission when the store answers",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "waiting",
                      "approved",
                      "rejected",
                      "withdrawn"
                    ]
                  },
                  "decided_on": {
                    "type": "string",
                    "format": "date",
                    "description": "Required unless status is waiting"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "operationId": "health",
        "summary": "Service status",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}