{
    "openapi": "3.1.0",
    "info": {
        "title": "FeedbackPlatform API",
        "version": "2026-12-04",
        "description": "Business API (fpk_live_ keys) for your own reviews, invitations, products, widgets and webhooks; licensed Data API (fpd_live_ keys) for trust data of any website.\n\nDocumentation: https://www.feedbackplatform.com/developers",
        "contact": {
            "name": "FeedbackPlatform",
            "url": "https://www.feedbackplatform.com/developers",
            "email": "support@feedbackplatform.com"
        },
        "termsOfService": "https://www.feedbackplatform.com/general-terms"
    },
    "servers": [
        {
            "url": "https://www.feedbackplatform.com/api/v1"
        }
    ],
    "security": [
        {
            "BusinessKey": []
        },
        {
            "DataKey": []
        }
    ],
    "paths": {
        "/me": {
            "get": {
                "operationId": "getMe",
                "summary": "Current key and limits",
                "tags": [
                    "Business API · Account"
                ],
                "description": "Returns the key you are using, your account, plan (or licence) and limits. A good first call to test a key.",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-me"
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "api_key",
                                    "key": {
                                        "id": "key_41",
                                        "name": "WooCommerce",
                                        "type": "business",
                                        "prefix": "fpk_live_a8Hq2x",
                                        "scopes": [
                                            "businesses.read",
                                            "reviews.read",
                                            "invitations.write"
                                        ],
                                        "created_at": "2026-12-01T09:00:00Z",
                                        "expires_at": null
                                    },
                                    "account": {
                                        "id": 1203,
                                        "name": "Example Shop B.V.",
                                        "email": "owner@example-shop.nl"
                                    },
                                    "plan": "growth",
                                    "limits": {
                                        "requests_per_minute": 120,
                                        "requests_per_day": 50000,
                                        "invitations_per_day": 2500,
                                        "write_access": true
                                    },
                                    "usage": {
                                        "today": 318
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    },
                    {
                        "DataKey": []
                    }
                ]
            }
        },
        "/businesses": {
            "get": {
                "operationId": "listBusinesses",
                "summary": "List businesses",
                "tags": [
                    "Business API · Businesses"
                ],
                "description": "All websites (businesses) in your account that this key may reach.\n\nScope: `businesses.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-businesses"
                },
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Items per page, 1–250 (default 50).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Id to start from: copy it from links.next of the previous page.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "business",
                                            "id": "biz_812",
                                            "name": "Example Shop",
                                            "domain": "example-shop.nl",
                                            "verified": true,
                                            "verified_at": "2026-10-02T08:00:00Z",
                                            "setup_completed": true,
                                            "created_at": "2026-09-30T14:21:00Z",
                                            "links": {
                                                "public_profile": "https://www.feedbackplatform.com/reputation/example-shop.nl",
                                                "review_hub": "https://www.feedbackplatform.com/review/example-shop.nl",
                                                "write_review": "https://www.feedbackplatform.com/write-review/example-shop.nl"
                                            },
                                            "trust_score": {
                                                "score": 84,
                                                "stars": 4.2,
                                                "label": "Great",
                                                "checked_at": "2026-12-03T22:00:00Z"
                                            }
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/businesses",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}": {
            "get": {
                "operationId": "getBusiness",
                "summary": "Get a business",
                "tags": [
                    "Business API · Businesses"
                ],
                "description": "Scope: `businesses.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-business"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "business",
                                    "id": "biz_812",
                                    "name": "Example Shop",
                                    "domain": "example-shop.nl",
                                    "verified": true,
                                    "verified_at": "2026-10-02T08:00:00Z",
                                    "setup_completed": true,
                                    "created_at": "2026-09-30T14:21:00Z",
                                    "links": {
                                        "public_profile": "https://www.feedbackplatform.com/reputation/example-shop.nl",
                                        "review_hub": "https://www.feedbackplatform.com/review/example-shop.nl",
                                        "write_review": "https://www.feedbackplatform.com/write-review/example-shop.nl"
                                    },
                                    "trust_score": {
                                        "score": 84,
                                        "stars": 4.2,
                                        "label": "Great",
                                        "checked_at": "2026-12-03T22:00:00Z"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}/summary": {
            "get": {
                "operationId": "getSummary",
                "summary": "Rating summary",
                "tags": [
                    "Business API · Businesses"
                ],
                "description": "Combined rating over all connected platforms, per platform, star distribution and the FeedbackPlatform trust score. Ideal for a rating badge or rich snippets on your own site.\n\nScope: `businesses.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-summary"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "summary",
                                    "business_id": "biz_812",
                                    "rating": {
                                        "average": 4.62,
                                        "count": 418,
                                        "best": 5,
                                        "worst": 1
                                    },
                                    "platforms": [
                                        {
                                            "source": "feedbackplatform",
                                            "name": "FeedbackPlatform",
                                            "rating": 4.7,
                                            "count": 212,
                                            "profile_url": "https://www.feedbackplatform.com/reputation/example-shop.nl"
                                        },
                                        {
                                            "source": "google",
                                            "name": "Google",
                                            "rating": 4.5,
                                            "count": 206,
                                            "profile_url": "https://maps.google.com/?cid=…"
                                        }
                                    ],
                                    "distribution": {
                                        "1": 9,
                                        "2": 6,
                                        "3": 14,
                                        "4": 71,
                                        "5": 318
                                    },
                                    "trust_score": {
                                        "score": 84,
                                        "stars": 4.2,
                                        "label": "Great",
                                        "checked_at": "2026-12-03T22:00:00Z"
                                    },
                                    "generated_at": "2026-12-04T08:30:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}/reviews": {
            "get": {
                "operationId": "listReviews",
                "summary": "List reviews",
                "tags": [
                    "Business API · Reviews"
                ],
                "description": "Newest first. FeedbackPlatform reviews have ids rev_…, imported reviews (Google and others) ext_….\n\nScope: `reviews.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-reviews"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "source",
                        "in": "query",
                        "required": false,
                        "description": "feedbackplatform (default), google or external (all imported platforms).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rating",
                        "in": "query",
                        "required": false,
                        "description": "Only these star ratings, comma separated: 1,2",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "since",
                        "in": "query",
                        "required": false,
                        "description": "Published on or after (ISO 8601).",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "until",
                        "in": "query",
                        "required": false,
                        "description": "Published before (ISO 8601).",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "product",
                        "in": "query",
                        "required": false,
                        "description": "Only reviews of this product SKU (FeedbackPlatform reviews).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Items per page, 1–250 (default 50).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Id to start from: copy it from links.next of the previous page.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "review",
                                            "id": "rev_48213",
                                            "business_id": "biz_812",
                                            "source": "feedbackplatform",
                                            "rating": 5,
                                            "title": "Fast delivery",
                                            "text": "Ordered on Monday, delivered Tuesday. Works perfectly.",
                                            "author": {
                                                "name": "Jan de V."
                                            },
                                            "verification": "invited",
                                            "status": "published",
                                            "experience_date": "2026-11-30",
                                            "product": {
                                                "sku": "LP-500",
                                                "name": "Laser pointer 500 mW"
                                            },
                                            "reply": {
                                                "text": "Thank you Jan, enjoy it!",
                                                "created_at": "2026-12-02T09:14:03Z"
                                            },
                                            "invitation_id": "inv_7731",
                                            "published_at": "2026-12-01T18:22:41Z",
                                            "created_at": "2026-12-01T18:20:10Z",
                                            "links": {
                                                "public": "https://www.feedbackplatform.com/reputation/example-shop.nl#review-48213"
                                            }
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/businesses/biz_812/reviews",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/reviews/{id}": {
            "get": {
                "operationId": "getReview",
                "summary": "Get a review",
                "tags": [
                    "Business API · Reviews"
                ],
                "description": "Scope: `reviews.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-review"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "rev_… or ext_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "review",
                                    "id": "rev_48213",
                                    "business_id": "biz_812",
                                    "source": "feedbackplatform",
                                    "rating": 5,
                                    "title": "Fast delivery",
                                    "text": "Ordered on Monday, delivered Tuesday. Works perfectly.",
                                    "author": {
                                        "name": "Jan de V."
                                    },
                                    "verification": "invited",
                                    "status": "published",
                                    "experience_date": "2026-11-30",
                                    "product": {
                                        "sku": "LP-500",
                                        "name": "Laser pointer 500 mW"
                                    },
                                    "reply": {
                                        "text": "Thank you Jan, enjoy it!",
                                        "created_at": "2026-12-02T09:14:03Z"
                                    },
                                    "invitation_id": "inv_7731",
                                    "published_at": "2026-12-01T18:22:41Z",
                                    "created_at": "2026-12-01T18:20:10Z",
                                    "links": {
                                        "public": "https://www.feedbackplatform.com/reputation/example-shop.nl#review-48213"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/reviews/{id}/reply": {
            "put": {
                "operationId": "replyReview",
                "summary": "Reply to a review",
                "tags": [
                    "Business API · Reviews"
                ],
                "description": "Publishes your public reply under your business name. The business must be verified. The reviewer gets an email for the first reply. Reply to Google reviews in the dashboard.\n\nScope: `reviews.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#reply-review"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "rev_… (FeedbackPlatform reviews)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "text": {
                                        "type": "string",
                                        "description": "10–2,000 characters, no links. Replaces an existing reply."
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            },
                            "example": {
                                "text": "Thank you Jan, enjoy it!"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "review",
                                    "id": "rev_48213",
                                    "business_id": "biz_812",
                                    "source": "feedbackplatform",
                                    "rating": 5,
                                    "title": "Fast delivery",
                                    "text": "Ordered on Monday, delivered Tuesday. Works perfectly.",
                                    "author": {
                                        "name": "Jan de V."
                                    },
                                    "verification": "invited",
                                    "status": "published",
                                    "experience_date": "2026-11-30",
                                    "product": {
                                        "sku": "LP-500",
                                        "name": "Laser pointer 500 mW"
                                    },
                                    "reply": {
                                        "text": "Thank you Jan, enjoy it!",
                                        "created_at": "2026-12-02T09:14:03Z"
                                    },
                                    "invitation_id": "inv_7731",
                                    "published_at": "2026-12-01T18:22:41Z",
                                    "created_at": "2026-12-01T18:20:10Z",
                                    "links": {
                                        "public": "https://www.feedbackplatform.com/reputation/example-shop.nl#review-48213"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "delete": {
                "operationId": "deleteReply",
                "summary": "Remove your reply",
                "tags": [
                    "Business API · Reviews"
                ],
                "description": "Scope: `reviews.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#delete-reply"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "rev_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}/invitations": {
            "post": {
                "operationId": "createInvitation",
                "summary": "Create a review invitation",
                "tags": [
                    "Business API · Invitations"
                ],
                "description": "Creates a personal, one-time review link for an order. We do not send email: send the link yourself, for example in your shipping or follow-up email, a few days after delivery. A review written through the link is marked \"Invited review\" and linked to the order. Send an Idempotency-Key header to retry safely.\n\nScope: `invitations.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#create-invitation"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "order_reference": {
                                        "type": "string",
                                        "description": "Your order number. One invitation per order: the same reference again returns the existing invitation."
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "Customer email, pre-filled in the review form."
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "Customer name, pre-filled."
                                    },
                                    "locale": {
                                        "type": "string",
                                        "description": "Language of the review page: nl, en, de, fr, …"
                                    },
                                    "products": {
                                        "type": "array",
                                        "items": {},
                                        "description": "Bought products: [{\"sku\": \"LP-500\", \"name\": \"…\"}]. The first one is reviewed; unknown SKUs with a name are created."
                                    },
                                    "expires_in_days": {
                                        "type": "integer",
                                        "description": "Link valid for 1–365 days (default 60)."
                                    }
                                },
                                "required": [
                                    "order_reference"
                                ]
                            },
                            "example": {
                                "order_reference": "ORD-2026-10045",
                                "email": "jan@example.com",
                                "name": "Jan de Vries",
                                "locale": "nl",
                                "products": [
                                    {
                                        "sku": "LP-500",
                                        "name": "Laser pointer 500 mW"
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "invitation",
                                    "id": "inv_7731",
                                    "business_id": "biz_812",
                                    "status": "pending",
                                    "order_reference": "ORD-2026-10045",
                                    "customer": {
                                        "email": "jan@example.com",
                                        "name": "Jan de Vries"
                                    },
                                    "locale": "nl",
                                    "products": [
                                        {
                                            "sku": "LP-500",
                                            "name": "Laser pointer 500 mW"
                                        }
                                    ],
                                    "review_id": null,
                                    "links": {
                                        "review": "https://www.feedbackplatform.com/write-review/example-shop.nl?inv=Xc81…&product=LP-500&lang=nl",
                                        "review_hub": "https://www.feedbackplatform.com/review/example-shop.nl?src=api"
                                    },
                                    "opened_at": null,
                                    "completed_at": null,
                                    "expires_at": "2027-01-31T10:00:00Z",
                                    "created_at": "2026-12-02T10:00:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "get": {
                "operationId": "listInvitations",
                "summary": "List invitations",
                "tags": [
                    "Business API · Invitations"
                ],
                "description": "Scope: `invitations.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-invitations"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "pending, opened, completed, expired or cancelled",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "order_reference",
                        "in": "query",
                        "required": false,
                        "description": "Find the invitation of one order.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Items per page, 1–250 (default 50).",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Id to start from: copy it from links.next of the previous page.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "invitation",
                                            "id": "inv_7731",
                                            "business_id": "biz_812",
                                            "status": "pending",
                                            "order_reference": "ORD-2026-10045",
                                            "customer": {
                                                "email": "jan@example.com",
                                                "name": "Jan de Vries"
                                            },
                                            "locale": "nl",
                                            "products": [
                                                {
                                                    "sku": "LP-500",
                                                    "name": "Laser pointer 500 mW"
                                                }
                                            ],
                                            "review_id": null,
                                            "links": {
                                                "review": "https://www.feedbackplatform.com/write-review/example-shop.nl?inv=Xc81…&product=LP-500&lang=nl",
                                                "review_hub": "https://www.feedbackplatform.com/review/example-shop.nl?src=api"
                                            },
                                            "opened_at": null,
                                            "completed_at": null,
                                            "expires_at": "2027-01-31T10:00:00Z",
                                            "created_at": "2026-12-02T10:00:00Z"
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/businesses/biz_812/invitations",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/invitations/{id}": {
            "get": {
                "operationId": "getInvitation",
                "summary": "Get an invitation",
                "tags": [
                    "Business API · Invitations"
                ],
                "description": "Scope: `invitations.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-invitation"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "inv_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "invitation",
                                    "id": "inv_7731",
                                    "business_id": "biz_812",
                                    "status": "pending",
                                    "order_reference": "ORD-2026-10045",
                                    "customer": {
                                        "email": "jan@example.com",
                                        "name": "Jan de Vries"
                                    },
                                    "locale": "nl",
                                    "products": [
                                        {
                                            "sku": "LP-500",
                                            "name": "Laser pointer 500 mW"
                                        }
                                    ],
                                    "review_id": null,
                                    "links": {
                                        "review": "https://www.feedbackplatform.com/write-review/example-shop.nl?inv=Xc81…&product=LP-500&lang=nl",
                                        "review_hub": "https://www.feedbackplatform.com/review/example-shop.nl?src=api"
                                    },
                                    "opened_at": null,
                                    "completed_at": null,
                                    "expires_at": "2027-01-31T10:00:00Z",
                                    "created_at": "2026-12-02T10:00:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "delete": {
                "operationId": "cancelInvitation",
                "summary": "Cancel an invitation",
                "tags": [
                    "Business API · Invitations"
                ],
                "description": "The link stops working, for example after a return or cancelled order. A completed invitation cannot be cancelled.\n\nScope: `invitations.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#cancel-invitation"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "inv_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "invitation",
                                    "id": "inv_7731",
                                    "business_id": "biz_812",
                                    "status": "cancelled",
                                    "order_reference": "ORD-2026-10045",
                                    "customer": {
                                        "email": "jan@example.com",
                                        "name": "Jan de Vries"
                                    },
                                    "locale": "nl",
                                    "products": [
                                        {
                                            "sku": "LP-500",
                                            "name": "Laser pointer 500 mW"
                                        }
                                    ],
                                    "review_id": null,
                                    "links": {
                                        "review": "https://www.feedbackplatform.com/write-review/example-shop.nl?inv=Xc81…&product=LP-500&lang=nl",
                                        "review_hub": "https://www.feedbackplatform.com/review/example-shop.nl?src=api"
                                    },
                                    "opened_at": null,
                                    "completed_at": null,
                                    "expires_at": "2027-01-31T10:00:00Z",
                                    "created_at": "2026-12-02T10:00:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}/products": {
            "get": {
                "operationId": "listProducts",
                "summary": "List products",
                "tags": [
                    "Business API · Products"
                ],
                "description": "Products that can be reviewed, with their rating. Sorted by SKU.\n\nScope: `products.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-products"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "1–250 (default 100)",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "SKU to start from (links.next).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "product",
                                            "sku": "LP-500",
                                            "business_id": "biz_812",
                                            "name": "Laser pointer 500 mW",
                                            "url": "https://example-shop.nl/lp-500",
                                            "image_url": "https://example-shop.nl/img/lp-500.jpg",
                                            "gtin": "8712345678906",
                                            "mpn": null,
                                            "brand": "Lumio",
                                            "variants": [
                                                "LP-500-RED",
                                                "LP-500-GREEN"
                                            ],
                                            "source": "manual",
                                            "active": true,
                                            "rating": {
                                                "average": 4.7,
                                                "count": 31
                                            },
                                            "links": {
                                                "write_review": "https://www.feedbackplatform.com/write-review/example-shop.nl?product=LP-500"
                                            },
                                            "updated_at": "2026-12-02T10:00:00Z"
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/businesses/biz_812/products",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}/products/{sku}": {
            "get": {
                "operationId": "getProduct",
                "summary": "Get a product",
                "tags": [
                    "Business API · Products"
                ],
                "description": "Scope: `products.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-product"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sku",
                        "in": "path",
                        "required": true,
                        "description": "Your SKU (URL-encoded).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "product",
                                    "sku": "LP-500",
                                    "business_id": "biz_812",
                                    "name": "Laser pointer 500 mW",
                                    "url": "https://example-shop.nl/lp-500",
                                    "image_url": "https://example-shop.nl/img/lp-500.jpg",
                                    "gtin": "8712345678906",
                                    "mpn": null,
                                    "brand": "Lumio",
                                    "variants": [
                                        "LP-500-RED",
                                        "LP-500-GREEN"
                                    ],
                                    "source": "manual",
                                    "active": true,
                                    "rating": {
                                        "average": 4.7,
                                        "count": 31
                                    },
                                    "links": {
                                        "write_review": "https://www.feedbackplatform.com/write-review/example-shop.nl?product=LP-500"
                                    },
                                    "updated_at": "2026-12-02T10:00:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "put": {
                "operationId": "putProduct",
                "summary": "Create or update a product",
                "tags": [
                    "Business API · Products"
                ],
                "description": "Returns 201 when the product is new, 200 when it was updated.\n\nScope: `products.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#put-product"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sku",
                        "in": "path",
                        "required": true,
                        "description": "Your SKU.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Product name."
                                    },
                                    "url": {
                                        "type": "string",
                                        "description": "Product page (https)."
                                    },
                                    "image_url": {
                                        "type": "string",
                                        "description": "Image (https)."
                                    },
                                    "gtin": {
                                        "type": "string",
                                        "description": "EAN / GTIN (8–14 digits), used in the Google product reviews feed."
                                    },
                                    "mpn": {
                                        "type": "string",
                                        "description": "Manufacturer part number."
                                    },
                                    "brand": {
                                        "type": "string",
                                        "description": "Brand."
                                    },
                                    "variants": {
                                        "type": "array",
                                        "items": {},
                                        "description": "SKUs of variants that share the reviews."
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            },
                            "example": {
                                "name": "Laser pointer 500 mW",
                                "url": "https://example-shop.nl/lp-500",
                                "gtin": "8712345678906",
                                "brand": "Lumio",
                                "variants": [
                                    "LP-500-RED",
                                    "LP-500-GREEN"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "product",
                                    "sku": "LP-500",
                                    "business_id": "biz_812",
                                    "name": "Laser pointer 500 mW",
                                    "url": "https://example-shop.nl/lp-500",
                                    "image_url": "https://example-shop.nl/img/lp-500.jpg",
                                    "gtin": "8712345678906",
                                    "mpn": null,
                                    "brand": "Lumio",
                                    "variants": [
                                        "LP-500-RED",
                                        "LP-500-GREEN"
                                    ],
                                    "source": "manual",
                                    "active": true,
                                    "rating": {
                                        "average": 4.7,
                                        "count": 31
                                    },
                                    "links": {
                                        "write_review": "https://www.feedbackplatform.com/write-review/example-shop.nl?product=LP-500"
                                    },
                                    "updated_at": "2026-12-02T10:00:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "delete": {
                "operationId": "deleteProduct",
                "summary": "Remove a product",
                "tags": [
                    "Business API · Products"
                ],
                "description": "Hides the product; its reviews stay.\n\nScope: `products.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#delete-product"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sku",
                        "in": "path",
                        "required": true,
                        "description": "Your SKU.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}/products/batch": {
            "post": {
                "operationId": "batchProducts",
                "summary": "Sync products in bulk",
                "tags": [
                    "Business API · Products"
                ],
                "description": "Counts as one call per 10 products. Invalid products are reported per index; the others are saved.\n\nScope: `products.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#batch-products"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "products": {
                                        "type": "array",
                                        "items": {},
                                        "description": "1–500 products with the fields of \"Create or update a product\" plus sku."
                                    }
                                },
                                "required": [
                                    "products"
                                ]
                            },
                            "example": {
                                "products": [
                                    {
                                        "sku": "LP-500",
                                        "name": "Laser pointer 500 mW"
                                    },
                                    {
                                        "sku": "LP-900",
                                        "name": "Laser pointer 900 mW"
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "batch_result",
                                    "saved": 2,
                                    "failed": 0,
                                    "errors": []
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/businesses/{id}/widgets": {
            "get": {
                "operationId": "listWidgets",
                "summary": "List widgets",
                "tags": [
                    "Business API · Widgets"
                ],
                "description": "The widgets made in the dashboard with their embed code, for plugins that place them in a theme.\n\nScope: `widgets.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-widgets"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Business id, for example biz_812.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "widget",
                                            "id": "wdg_301",
                                            "business_id": "biz_812",
                                            "name": "Product page",
                                            "layout": "carousel",
                                            "placement": "product",
                                            "product_mode": "product_or_shop",
                                            "token": "9f2c…",
                                            "embed_code": "<div data-fp-widget=\"9f2c…\" data-product=\"PRODUCT-ID\" style=\"display:block;min-height:250px\"></div>\n<script src=\"https://www.feedbackplatform.com/w.js\" async></script>",
                                            "links": {
                                                "data": "https://www.feedbackplatform.com/api/widget/9f2c….json",
                                                "score": "https://www.feedbackplatform.com/api/widget/9f2c….json?format=score"
                                            },
                                            "updated_at": "2026-12-02T11:00:00Z"
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/businesses/biz_812/widgets",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/webhooks": {
            "get": {
                "operationId": "listWebhooks",
                "summary": "List webhooks",
                "tags": [
                    "Business API · Webhooks"
                ],
                "description": "Scope: `webhooks.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-webhooks"
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "webhook",
                                            "id": "whk_12",
                                            "url": "https://example-shop.nl/fp/webhook",
                                            "description": "Shop",
                                            "events": [
                                                "review.published",
                                                "invitation.completed"
                                            ],
                                            "business_id": null,
                                            "status": "active",
                                            "disabled_reason": null,
                                            "last_success_at": "2026-12-04T08:01:12Z",
                                            "last_failure_at": null,
                                            "last_error": null,
                                            "created_at": "2026-12-01T12:00:00Z"
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/webhooks",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "post": {
                "operationId": "createWebhook",
                "summary": "Create a webhook",
                "tags": [
                    "Business API · Webhooks"
                ],
                "description": "The response contains the signing secret (whsec_…) once. Only events after creation are sent.\n\nScope: `webhooks.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#create-webhook"
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "url": {
                                        "type": "string",
                                        "description": "HTTPS URL on port 443, publicly reachable."
                                    },
                                    "events": {
                                        "type": "array",
                                        "items": {},
                                        "description": "review.published, review.imported, invitation.completed"
                                    },
                                    "business_id": {
                                        "type": "string",
                                        "description": "Only events of this business (default: all)."
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Your own label."
                                    }
                                },
                                "required": [
                                    "url",
                                    "events"
                                ]
                            },
                            "example": {
                                "url": "https://example-shop.nl/fp/webhook",
                                "events": [
                                    "review.published",
                                    "invitation.completed"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "webhook",
                                    "id": "whk_12",
                                    "url": "https://example-shop.nl/fp/webhook",
                                    "description": "Shop",
                                    "events": [
                                        "review.published",
                                        "invitation.completed"
                                    ],
                                    "business_id": null,
                                    "status": "active",
                                    "disabled_reason": null,
                                    "last_success_at": "2026-12-04T08:01:12Z",
                                    "last_failure_at": null,
                                    "last_error": null,
                                    "created_at": "2026-12-01T12:00:00Z",
                                    "secret": "whsec_3tTMVrvkjocvgmARfe2gJ0…"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/webhooks/{id}": {
            "get": {
                "operationId": "getWebhook",
                "summary": "Get a webhook",
                "tags": [
                    "Business API · Webhooks"
                ],
                "description": "Scope: `webhooks.read`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-webhook"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "whk_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "webhook",
                                    "id": "whk_12",
                                    "url": "https://example-shop.nl/fp/webhook",
                                    "description": "Shop",
                                    "events": [
                                        "review.published",
                                        "invitation.completed"
                                    ],
                                    "business_id": null,
                                    "status": "active",
                                    "disabled_reason": null,
                                    "last_success_at": "2026-12-04T08:01:12Z",
                                    "last_failure_at": null,
                                    "last_error": null,
                                    "created_at": "2026-12-01T12:00:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "patch": {
                "operationId": "updateWebhook",
                "summary": "Update a webhook",
                "tags": [
                    "Business API · Webhooks"
                ],
                "description": "Scope: `webhooks.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#update-webhook"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "whk_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "url": {
                                        "type": "string"
                                    },
                                    "events": {
                                        "type": "array",
                                        "items": {}
                                    },
                                    "status": {
                                        "type": "string",
                                        "description": "active or disabled. Switching on resets the failure counter."
                                    },
                                    "description": {
                                        "type": "string"
                                    }
                                }
                            },
                            "example": {
                                "status": "active"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "webhook",
                                    "id": "whk_12",
                                    "url": "https://example-shop.nl/fp/webhook",
                                    "description": "Shop",
                                    "events": [
                                        "review.published",
                                        "invitation.completed"
                                    ],
                                    "business_id": null,
                                    "status": "active",
                                    "disabled_reason": null,
                                    "last_success_at": "2026-12-04T08:01:12Z",
                                    "last_failure_at": null,
                                    "last_error": null,
                                    "created_at": "2026-12-01T12:00:00Z"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            },
            "delete": {
                "operationId": "deleteWebhook",
                "summary": "Delete a webhook",
                "tags": [
                    "Business API · Webhooks"
                ],
                "description": "Scope: `webhooks.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#delete-webhook"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "whk_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/webhooks/{id}/test": {
            "post": {
                "operationId": "testWebhook",
                "summary": "Send a test event",
                "tags": [
                    "Business API · Webhooks"
                ],
                "description": "Scope: `webhooks.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#test-webhook"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "whk_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "webhook_test",
                                    "webhook_id": "whk_12",
                                    "delivered": true,
                                    "http_status": 200,
                                    "error": null,
                                    "duration_ms": 184
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/webhooks/{id}/rotate-secret": {
            "post": {
                "operationId": "rotateWebhook",
                "summary": "Rotate the signing secret",
                "tags": [
                    "Business API · Webhooks"
                ],
                "description": "The old secret stops working immediately.\n\nScope: `webhooks.write`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#rotate-webhook"
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "whk_…",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "webhook",
                                    "id": "whk_12",
                                    "url": "https://example-shop.nl/fp/webhook",
                                    "description": "Shop",
                                    "events": [
                                        "review.published",
                                        "invitation.completed"
                                    ],
                                    "business_id": null,
                                    "status": "active",
                                    "disabled_reason": null,
                                    "last_success_at": "2026-12-04T08:01:12Z",
                                    "last_failure_at": null,
                                    "last_error": null,
                                    "created_at": "2026-12-01T12:00:00Z",
                                    "secret": "whsec_Nw9…"
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    }
                ]
            }
        },
        "/domains/{domain}": {
            "get": {
                "operationId": "getDomain",
                "summary": "Check a website",
                "tags": [
                    "Data API · Websites"
                ],
                "description": "status is rated, not_rated (no business found, for example a parked domain), queued or pending (202), or unavailable (owner had the profile removed). risk_level is safe, warning or danger; threat = Google Web Risk flags it now.\n\nLicence feature: `domains`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#get-domain"
                },
                "parameters": [
                    {
                        "name": "domain",
                        "in": "path",
                        "required": true,
                        "description": "Domain or URL-encoded URL: example.com, www.example.com/shop and https://example.com/x all give example.com.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "queue",
                        "in": "query",
                        "required": false,
                        "description": "Check unknown websites now (default true). The answer is then 202 with status queued; ask again after Retry-After.",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "components: the four score parts with all evidence.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "domain",
                                    "domain": "cheap-phones-outlet.shop",
                                    "status": "rated",
                                    "trust_score": {
                                        "score": 18,
                                        "stars": 0.9,
                                        "label": "Bad",
                                        "risk_level": "danger",
                                        "threat": true,
                                        "limited_data": false,
                                        "coverage": 71,
                                        "model_version": 3
                                    },
                                    "red_flags": [
                                        {
                                            "code": "web_risk",
                                            "description": "Google currently flags this website as unsafe (malware or deception)",
                                            "severity": "high"
                                        },
                                        {
                                            "code": "risky_payment",
                                            "description": "Only payment methods without buyer protection (bank transfer, crypto or gift cards)",
                                            "severity": "high"
                                        },
                                        {
                                            "code": "new_without_identity",
                                            "description": "Very new website (19 days) without verifiable company details",
                                            "severity": "high"
                                        }
                                    ],
                                    "checks": {
                                        "google_web_risk": {
                                            "status": "threat",
                                            "threat_types": [
                                                "SOCIAL_ENGINEERING"
                                            ],
                                            "checked_at": "2026-12-04T06:12:00Z"
                                        },
                                        "https": {
                                            "valid": true,
                                            "issuer": "Let's Encrypt"
                                        },
                                        "reachable": {
                                            "http_status": 200,
                                            "final_url": "https://cheap-phones-outlet.shop/"
                                        },
                                        "domain_registration": {
                                            "age_days": 19,
                                            "registered_at": "2026-11-15",
                                            "expires_at": "2027-11-15",
                                            "registrar": "NameSilo, LLC"
                                        },
                                        "company": {
                                            "vat_status": "not_found",
                                            "vat_number": null,
                                            "registered_name": null
                                        },
                                        "payments": {
                                            "buyer_protected_methods": false,
                                            "only_risky_methods": true,
                                            "protected": [],
                                            "risky": [
                                                "bank transfer",
                                                "bitcoin"
                                            ]
                                        },
                                        "hosting": {
                                            "country": "US",
                                            "provider": "Cloudflare, Inc."
                                        },
                                        "traffic_rank": null
                                    },
                                    "reviews": {
                                        "count": 3,
                                        "rating": 1.3,
                                        "feedbackplatform_count": 3,
                                        "feedbackplatform_rating": 1.3,
                                        "other_platforms": 0
                                    },
                                    "scam_reports": {
                                        "count": 4,
                                        "last_reported_at": "2026-12-03T21:40:00Z",
                                        "categories": {
                                            "not_delivered": 3,
                                            "counterfeit": 1
                                        }
                                    },
                                    "business": {
                                        "claimed": false,
                                        "established": false,
                                        "webshop": true,
                                        "category": {
                                            "slug": "electronics",
                                            "name": "Electronics"
                                        },
                                        "title": "Cheap Phones Outlet"
                                    },
                                    "checked_at": "2026-12-04T06:12:00Z",
                                    "score_updated_at": "2026-12-04T06:12:05Z",
                                    "links": {
                                        "profile": "https://www.feedbackplatform.com/reputation/cheap-phones-outlet.shop",
                                        "self": "https://www.feedbackplatform.com/api/v1/domains/cheap-phones-outlet.shop"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "DataKey": []
                    }
                ]
            }
        },
        "/domains/lookup": {
            "post": {
                "operationId": "lookupDomains",
                "summary": "Check many websites",
                "tags": [
                    "Data API · Websites"
                ],
                "description": "Every unique domain counts as one call. The answer always has one object per domain, also for invalid or unknown ones.\n\nLicence feature: `domains`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#lookup-domains"
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "domains": {
                                        "type": "array",
                                        "items": {},
                                        "description": "Domains or URLs; duplicates are merged. Maximum per licence (25 / 100 / 500)."
                                    },
                                    "queue": {
                                        "type": "boolean",
                                        "description": "Default true."
                                    },
                                    "include": {
                                        "type": "array",
                                        "items": {},
                                        "description": "[\"components\"]"
                                    }
                                },
                                "required": [
                                    "domains"
                                ]
                            },
                            "example": {
                                "domains": [
                                    "cheap-phones-outlet.shop",
                                    "https://www.bol.com/nl/",
                                    "example-new-shop.nl"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "domain_lookup",
                                    "count": 3,
                                    "summary": {
                                        "rated": 2,
                                        "not_rated": 0,
                                        "queued": 1,
                                        "unknown": 0,
                                        "invalid": 0,
                                        "unavailable": 0,
                                        "danger": 1
                                    },
                                    "data": [
                                        {
                                            "resource": "domain",
                                            "domain": "cheap-phones-outlet.shop",
                                            "status": "rated",
                                            "trust_score": {
                                                "score": 18,
                                                "stars": 0.9,
                                                "label": "Bad",
                                                "risk_level": "danger",
                                                "threat": true,
                                                "limited_data": false,
                                                "coverage": 71,
                                                "model_version": 3
                                            },
                                            "red_flags": [
                                                {
                                                    "code": "web_risk",
                                                    "description": "Google currently flags this website as unsafe (malware or deception)",
                                                    "severity": "high"
                                                },
                                                {
                                                    "code": "risky_payment",
                                                    "description": "Only payment methods without buyer protection (bank transfer, crypto or gift cards)",
                                                    "severity": "high"
                                                },
                                                {
                                                    "code": "new_without_identity",
                                                    "description": "Very new website (19 days) without verifiable company details",
                                                    "severity": "high"
                                                }
                                            ],
                                            "checks": {
                                                "google_web_risk": {
                                                    "status": "threat",
                                                    "threat_types": [
                                                        "SOCIAL_ENGINEERING"
                                                    ],
                                                    "checked_at": "2026-12-04T06:12:00Z"
                                                },
                                                "https": {
                                                    "valid": true,
                                                    "issuer": "Let's Encrypt"
                                                },
                                                "reachable": {
                                                    "http_status": 200,
                                                    "final_url": "https://cheap-phones-outlet.shop/"
                                                },
                                                "domain_registration": {
                                                    "age_days": 19,
                                                    "registered_at": "2026-11-15",
                                                    "expires_at": "2027-11-15",
                                                    "registrar": "NameSilo, LLC"
                                                },
                                                "company": {
                                                    "vat_status": "not_found",
                                                    "vat_number": null,
                                                    "registered_name": null
                                                },
                                                "payments": {
                                                    "buyer_protected_methods": false,
                                                    "only_risky_methods": true,
                                                    "protected": [],
                                                    "risky": [
                                                        "bank transfer",
                                                        "bitcoin"
                                                    ]
                                                },
                                                "hosting": {
                                                    "country": "US",
                                                    "provider": "Cloudflare, Inc."
                                                },
                                                "traffic_rank": null
                                            },
                                            "reviews": {
                                                "count": 3,
                                                "rating": 1.3,
                                                "feedbackplatform_count": 3,
                                                "feedbackplatform_rating": 1.3,
                                                "other_platforms": 0
                                            },
                                            "scam_reports": {
                                                "count": 4,
                                                "last_reported_at": "2026-12-03T21:40:00Z",
                                                "categories": {
                                                    "not_delivered": 3,
                                                    "counterfeit": 1
                                                }
                                            },
                                            "business": {
                                                "claimed": false,
                                                "established": false,
                                                "webshop": true,
                                                "category": {
                                                    "slug": "electronics",
                                                    "name": "Electronics"
                                                },
                                                "title": "Cheap Phones Outlet"
                                            },
                                            "checked_at": "2026-12-04T06:12:00Z",
                                            "score_updated_at": "2026-12-04T06:12:05Z",
                                            "links": {
                                                "profile": "https://www.feedbackplatform.com/reputation/cheap-phones-outlet.shop",
                                                "self": "https://www.feedbackplatform.com/api/v1/domains/cheap-phones-outlet.shop"
                                            }
                                        },
                                        {
                                            "resource": "domain",
                                            "domain": "example-new-shop.nl",
                                            "status": "queued",
                                            "detail": "This website is new to us and is being checked now. Ask again in about 15 minutes.",
                                            "retry_after": 900
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "DataKey": []
                    }
                ]
            }
        },
        "/domains/{domain}/rescan": {
            "post": {
                "operationId": "rescanDomain",
                "summary": "Request a fresh check",
                "tags": [
                    "Data API · Websites"
                ],
                "description": "Puts the website first in the check queue. Counts as 10 calls; at most once per 6 hours per website. Results usually within 15 minutes.\n\nLicence feature: `rescan`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#rescan-domain"
                },
                "parameters": [
                    {
                        "name": "domain",
                        "in": "path",
                        "required": true,
                        "description": "Domain.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "resource": "rescan",
                                    "domain": "cheap-phones-outlet.shop",
                                    "status": "queued",
                                    "detail": "A fresh check was queued. Results are usually ready within 15 minutes.",
                                    "retry_after": 900
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "DataKey": []
                    }
                ]
            }
        },
        "/scam-reports": {
            "get": {
                "operationId": "listScamReports",
                "summary": "List scam reports",
                "tags": [
                    "Data API · Scam reports"
                ],
                "description": "Reports by consumers, checked and approved by our moderators. Anonymised: no names or contact details. The free-text description is included with the Enterprise licence (raw_signals).\n\nLicence feature: `scam_reports`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-scam-reports"
                },
                "parameters": [
                    {
                        "name": "since",
                        "in": "query",
                        "required": false,
                        "description": "Approved on or after.",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "description": "not_delivered, counterfeit, phishing, subscription_trap, fake_reviews, other",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "domain",
                        "in": "query",
                        "required": false,
                        "description": "Only this website.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "1–500 (default 100)",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "links.next",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "scam_report",
                                            "id": "scm_2291",
                                            "domain": "cheap-phones-outlet.shop",
                                            "category": "not_delivered",
                                            "amount": {
                                                "value": "249.00",
                                                "currency": "EUR"
                                            },
                                            "payment_method": "bank_transfer",
                                            "incident_date": "2026-11-28",
                                            "language": "nl",
                                            "reported_at": "2026-12-03T21:40:00Z",
                                            "approved_at": "2026-12-04T07:55:00Z"
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/scam-reports",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "DataKey": []
                    }
                ]
            }
        },
        "/domains/{domain}/scam-reports": {
            "get": {
                "operationId": "domainScamReports",
                "summary": "Scam reports of a website",
                "tags": [
                    "Data API · Scam reports"
                ],
                "description": "Same as List scam reports, for one website.\n\nLicence feature: `scam_reports`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#domain-scam-reports"
                },
                "parameters": [
                    {
                        "name": "domain",
                        "in": "path",
                        "required": true,
                        "description": "Domain.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {}
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "DataKey": []
                    }
                ]
            }
        },
        "/threats": {
            "get": {
                "operationId": "listThreats",
                "summary": "Dangerous websites",
                "tags": [
                    "Data API · Threat feed"
                ],
                "description": "Websites that are dangerous now: flagged by Google Web Risk, approved scam reports, or a very low trust score. reasons tells why. Use it to warn citizens or block payments.\n\nLicence feature: `threat_feed`",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-threats"
                },
                "parameters": [
                    {
                        "name": "since",
                        "in": "query",
                        "required": false,
                        "description": "Changed on or after (default: last 7 days). Poll with the time of your previous call.",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "1–500 (default 100)",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "links.next",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "threat",
                                            "domain": "cheap-phones-outlet.shop",
                                            "reasons": [
                                                "google_web_risk",
                                                "scam_reports",
                                                "very_low_trust_score"
                                            ],
                                            "trust_score": {
                                                "score": 18,
                                                "stars": 0.9,
                                                "risk_level": "danger"
                                            },
                                            "google_web_risk": {
                                                "status": "threat",
                                                "threat_types": [
                                                    "SOCIAL_ENGINEERING"
                                                ],
                                                "checked_at": "2026-12-04T06:12:00Z"
                                            },
                                            "scam_reports": 4,
                                            "updated_at": "2026-12-04T06:12:05Z",
                                            "links": {
                                                "domain": "https://www.feedbackplatform.com/api/v1/domains/cheap-phones-outlet.shop"
                                            }
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/threats",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "DataKey": []
                    }
                ]
            }
        },
        "/categories": {
            "get": {
                "operationId": "listCategories",
                "summary": "List categories",
                "tags": [
                    "Data API · Reference data"
                ],
                "description": "Business categories used in business.category.",
                "externalDocs": {
                    "url": "https://www.feedbackplatform.com/developers#list-categories"
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "count": 1,
                                    "data": [
                                        {
                                            "resource": "category",
                                            "slug": "electronics",
                                            "name": "Electronics"
                                        }
                                    ],
                                    "links": {
                                        "self": "https://www.feedbackplatform.com/api/v1/categories",
                                        "next": null,
                                        "documentation": "https://www.feedbackplatform.com/developers"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/RateLimited"
                    }
                },
                "security": [
                    {
                        "BusinessKey": []
                    },
                    {
                        "DataKey": []
                    }
                ]
            }
        }
    },
    "components": {
        "securitySchemes": {
            "BusinessKey": {
                "type": "http",
                "scheme": "bearer",
                "description": "Business API key: fpk_live_…  (Dashboard → Developers)"
            },
            "DataKey": {
                "type": "http",
                "scheme": "bearer",
                "description": "Data API key: fpd_live_…  (needs an active licence)"
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "required": [
                    "status",
                    "title",
                    "detail",
                    "code",
                    "request_id"
                ],
                "properties": {
                    "status": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "detail": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string",
                        "enum": [
                            "missing_api_key",
                            "invalid_api_key",
                            "revoked_api_key",
                            "expired_api_key",
                            "key_in_url",
                            "https_required",
                            "ip_not_allowed",
                            "account_inactive",
                            "wrong_key_type",
                            "missing_scope",
                            "business_not_allowed",
                            "business_not_verified",
                            "feature_not_in_licence",
                            "plan_required",
                            "licence_required",
                            "not_found",
                            "unknown_endpoint",
                            "domain_unknown",
                            "method_not_allowed",
                            "invitation_completed",
                            "webhook_limit",
                            "payload_too_large",
                            "unsupported_media_type",
                            "invalid_json",
                            "invalid_parameter",
                            "invalid_field",
                            "invalid_domain",
                            "batch_too_large",
                            "reply_not_supported",
                            "rate_limited",
                            "quota_exceeded",
                            "invitation_limit",
                            "rescan_too_soon",
                            "too_many_failed_attempts",
                            "internal_error"
                        ]
                    },
                    "field": {
                        "type": "string"
                    },
                    "request_id": {
                        "type": "string"
                    },
                    "documentation_url": {
                        "type": "string",
                        "format": "uri"
                    }
                }
            }
        },
        "responses": {
            "Error": {
                "description": "Error (RFC 9457 problem details)",
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "RateLimited": {
                "description": "Rate limit or quota reached",
                "headers": {
                    "Retry-After": {
                        "schema": {
                            "type": "integer"
                        },
                        "description": "Seconds to wait"
                    },
                    "RateLimit-Limit": {
                        "schema": {
                            "type": "integer"
                        }
                    },
                    "RateLimit-Remaining": {
                        "schema": {
                            "type": "integer"
                        }
                    },
                    "RateLimit-Reset": {
                        "schema": {
                            "type": "integer"
                        }
                    }
                },
                "content": {
                    "application/problem+json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            }
        }
    }
}