> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Complaints

> You need the complaint detail behind a business's complaint counts, filtered by status (answered, resolved, unanswered) or type.

## Request contract

* **Method and path:** POST /apis/v1/bbb-org/businesses/complaints
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/bbb-org/businesses/complaints`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/bbb-org.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "bbb-org.businesses.complaints",
  "method": "POST",
  "path": "/apis/v1/bbb-org/businesses/complaints",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "id": "1296-7039385"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "id": {}
                  },
                  "required": [
                    "id"
                  ]
                },
                {
                  "properties": {
                    "url": {}
                  },
                  "required": [
                    "url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "complaint_type": {
              "description": "bbb.org complaint type slug (see `available_filters.type` of a previous page).\n\nProvider reference: allowed values [\"productissues\", \"serviceorrepair\", \"delivery\", \"billingissues\", \"customerservice\", \"salesadvertising\", \"order\", \"guarantee\", \"other\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "productissues",
                  "serviceorrepair",
                  "delivery",
                  "billingissues",
                  "customerservice",
                  "salesadvertising",
                  "order",
                  "guarantee",
                  "other"
                ]
              }
            },
            "id": {
              "description": "BBB identity `<bbbId>-<businessId>` as it appears at the end of the profile URL (e.g. 0825-1000223803). Pattern: ^[0-9]{4}-[0-9]{1,12}$.",
              "type": "string"
            },
            "page": {
              "default": 1,
              "description": "1-based page of 10 complaints, newest first.\n\nProvider reference: minimum 1; maximum 200; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 200,
                "min": 1
              }
            },
            "status": {
              "description": "bbb.org complaint status filter.\n\nProvider reference: allowed values [\"answered\", \"resolved\", \"unanswered\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "answered",
                  "resolved",
                  "unanswered"
                ]
              }
            },
            "url": {
              "description": "A pasted bbb.org business profile URL, or any of its sub pages (/complaints, /customer-reviews, /leave-a-review). Exactly one of `id` or `url`.",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/bbb-org.json POST /apis/v1/bbb-org/businesses/complaints
openapi: 3.1.0
info:
  description: ''
  title: Better Business Bureau
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    bbb-org:
      description: ''
      title: Better Business Bureau
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 1f5d03c3c62545d19c3bfcd56a63ed0891cedc279b267ddb0a820d780ec7e9fa
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/bbb-org/businesses/complaints
    - /apis/v1/bbb-org/businesses/profile
    - /apis/v1/bbb-org/businesses/resolve
    - /apis/v1/bbb-org/businesses/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:11c3edc5a48c860a67876006605deb3881985e9c6c5b826a0911658a52be69e1
    facts_hash: 1f5d03c3c62545d19c3bfcd56a63ed0891cedc279b267ddb0a820d780ec7e9fa
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: bbb-org
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/bbb-org/businesses/complaints:
    post:
      tags:
        - Better Business Bureau
      summary: Complaints
      description: >-
        You need the complaint detail behind a business's complaint counts,
        filtered by status (answered, resolved, unanswered) or type.
      operationId: bbb-org.businesses.complaints
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  id: 1296-7039385
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        id: {}
                      required:
                        - id
                    - properties:
                        url: {}
                      required:
                        - url
              properties:
                complaint_type:
                  description: >-
                    bbb.org complaint type slug (see `available_filters.type` of
                    a previous page).


                    Provider reference: allowed values ["productissues",
                    "serviceorrepair", "delivery", "billingissues",
                    "customerservice", "salesadvertising", "order", "guarantee",
                    "other"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - productissues
                      - serviceorrepair
                      - delivery
                      - billingissues
                      - customerservice
                      - salesadvertising
                      - order
                      - guarantee
                      - other
                id:
                  description: >-
                    BBB identity `<bbbId>-<businessId>` as it appears at the end
                    of the profile URL (e.g. 0825-1000223803). Pattern:
                    ^[0-9]{4}-[0-9]{1,12}$.
                  type: string
                page:
                  default: 1
                  description: |-
                    1-based page of 10 complaints, newest first.

                    Provider reference: minimum 1; maximum 200; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 200
                    min: 1
                status:
                  description: >-
                    bbb.org complaint status filter.


                    Provider reference: allowed values ["answered", "resolved",
                    "unanswered"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - answered
                      - resolved
                      - unanswered
                url:
                  description: >-
                    A pasted bbb.org business profile URL, or any of its sub
                    pages (/complaints, /customer-reviews, /leave-a-review).
                    Exactly one of `id` or `url`.
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-15.
                  summary: Official provider example
                  value:
                    attribution: Better Business Bureau (bbb.org)
                    available_filters:
                      status:
                        - count: 48783
                          slug: answered
                        - count: 11967
                          slug: resolved
                      type:
                        - count: 26090
                          slug: productissues
                        - count: 13768
                          slug: serviceorrepair
                        - count: 9375
                          slug: delivery
                    bbb_id: '1296'
                    business_id: '7039385'
                    complaints_summary:
                      closed_last_12_months: 18470
                      closed_last_3_years: 60750
                      total_displayed: 10000
                      unit: complaints
                    count: 10
                    hidden_count: 1156
                    id: 1296-7039385
                    items:
                      - date: '2026-09-10'
                        id: 1296_7039385_25260612
                        responses:
                          - author: business
                            date: '2026-09-12'
                            id: 1296_7039385_25260612_0
                            text_html: >-
                              Hello,<br><br>I'm Naveen from Amazon.com. I'm
                              writing in response to a complaint filed on your
                              behalf by the Better Business Bureau BBB - I've
                              provided the BBB with a copy of this
                              message.<br><br>I'm very sorry to hear about the
                              frustrating experience that you've had recently
                              with our team regarding your order ID #
                              *******************. I can certainly understand
                              your request and upon checking, I see that refund
                              of $32.06 was issued on September 11,
                              2026.<br><br>Thanks for your patience and
                              understanding in this regard.
                          - author: consumer
                            date: '2026-09-12'
                            id: 1296_7039385_25260612_1
                            text_html: >-
                              <b>&nbsp;</b><br>Hi BBB,&nbsp;<br><br>I'm
                              satisfied with the business's resolution to
                              complaint ID ********. &nbsp;<br><br>Thank
                              you.<br><br>******* ****
                        status: Resolved
                        text: >-
                          Hello,I'm reaching out to escalate a ridiculous
                          runaround I've been getting regarding a $32.06 refund
                          credit that was explicitly promised to me for order
                          #***-4226310-7460223.Two different Amazon support
                          agents put their commitment in writing and confirmed
                          the credit. But instead of honoring what your staff
                          promised, your social media and email teams have
                          completely ignored the proof, claimed it's a
                          "misunderstanding," and started spamming me with
                          blind, automated scripts asking for info I've already
                          provided multiple times.  One of the agents even told
                          me that the refund was issued and sent a confirmation
                          email but it never arrived into my account balance.I
                          have attached the screenshots proving the promised
                          credit, the agent saying they issued the credit, and
                          me being denied the refund I was promised.  Please
                          issue the $32.06 refund that was promised to my
                          account gift card balance.
                        type: Product Issues
                      - date: '2026-09-10'
                        id: 1296_7039385_25258985
                        responses:
                          - author: business
                            date: '2026-09-11'
                            id: 1296_7039385_25258985_0
                            text_html: >-
                              <p>Hello,<br><br>I'm ********* from Amazon.com.
                              I'm writing in response to a complaint filed on
                              your behalf by the Better Business Bureau BBB -
                              I've provided the BBB with a copy of this
                              message.<br><br>I'm sorry for the inconvenience
                              you've experienced with regard to order
                              refund.<br><br>Upon review, we see a refund has
                              been issued on the order for $49.38 to your Amazon
                              Gift Card balance on September 10, 2026. You can
                              view your balance and usage history in Your
                              Account
                              here:<br><br>*************************************************<br><br>Thank
                              you for your patience and understanding in this
                              regard.</p><p>Regards,</p><p>*********</p>
                          - author: consumer
                            date: '2026-09-11'
                            id: 1296_7039385_25258985_1
                            text_html: >-
                              <b>&nbsp;</b><br>Hi BBB,&nbsp;<br><br>I'm
                              satisfied with the business's resolution to
                              complaint ID ********.&nbsp; However, they would
                              not do anything without BBB's intervention so to
                              say business these days are infringing on consumer
                              rights and they are pushing their limits. Thank
                              you for being around to help.<br><br>Thank
                              you.<br>PL
                        status: Resolved
                        text: >-
                          I am filing this complaint regarding an unresolved
                          refund for a returned item that Amazon's own tracking
                          system confirms they received on September 4, 2026.
                          Despite multiple contacts, I have not received my
                          refund, and I have been given ***eated, inconsistent
                          timelines with no resolution.Details:Order number:
                          [111-3424847-0901051 Item: ******* Pro Rubber Hot
                          Water Garden Hose  5/8" x 50'Reason for return: The
                          item was defective  it broke after approximately 2
                          days of normal use. Connector crimp was not proper so
                          connector become broken after initial ******** item
                          was returned: Sept 1st, 2026 Date Amazon confirms
                          receipt: September 4, 2026 (per Amazon's own
                          tracking/system status)Refund status as of today: Not
                          issued Contact history:I have contacted Amazon
                          customer service 4 times regarding this issue with no
                          resolution:Aug 27  Chat session. Representative
                          requested photos of damaged item, I updated it. They
                          initiated refund on my behalf, ***orted quality issue
                          Sep 4  Chat session. Chat session whent idle and I
                          disconnected Sep 4  Phone call. Was told 5 - 7 days
                          for refund Sep 10  Phone call. Told to wait for refund
                          to process, *** disconnected the call dispite
                          requested for further support.Each contact has
                          resulted in the same response  a request to wait an
                          additional 5-7 days  despite the fact that Amazon's
                          system already confirms receipt of the returned item.
                          I am well within, and in fact past, the timeframe I
                          was originally quoted.What I am requesting:I am
                          requesting that Amazon process my refund of $49.38
                          immediately, given that they have had the returned
                          item in their possession since September 4, 2026, and
                          I have already fulfilled my obligation as a customer
                          by returning the defective item promptly.
                        type: Product Issues
                      - date: '2026-09-09'
                        id: 1296_7039385_25257842
                        responses:
                          - author: business
                            date: '2026-09-11'
                            id: 1296_7039385_25257842_0
                            text_html: >-
                              Hello *****,<br><br>I'm ******* from Amazon.com
                              and I'm writing in response to a complaint filed
                              on your behalf by the Better Business Bureau BBB -
                              I've provided the BBB with a copy of this
                              message.<br><br>I understand you're looking for
                              prepaid label to return the damaged
                              printer.<br><br>As the order is shipped and sold
                              by third party seller, KOMHOW DTF Printer, we do
                              not have option to provide prepaid label. Hence,
                              in this case, as informed by the Guarantee team.
                              <br><br>Please return the order to the seller at
                              the following address:<br>-- Return merchandise
                              authorization (RMA) number, if applicable<br>--
                              Return address *****-KRESTRICTED:PHONE_NUMBER ,
                              *******************************************<br>****************,
                              ** RESTRICTED:PHONE_NUMBER US<br><br>We recommend
                              following these best practices to be sure that the
                              seller receives your package:<br>-- Include the
                              order number and any return authorization number
                              on or inside the package.<br>-- Insure the
                              package.<br>-- Use signature confirmation.<br>--
                              Provide your return tracking number and ship
                              receipt to the seller.<br>-- Ship items via ****
                              when the seller's return address is a PO
                              Box.<br><br>Return shipping will be refunded for
                              damaged or defective items and may be covered for
                              other reasons once the return is delivered to the
                              seller. Please share the ship receipt of your
                              return to get a refund for your return costs. To
                              learn more about return shipping, go to "A-to-z
                              Guarantee":<br>************************************************************************************************************<br><br>We
                              appreciate your
                              understanding.<br><br>Regards,<br>*******<br>Amazon.com<br>*****************************
                          - author: consumer
                            date: '2026-09-11'
                            id: 1296_7039385_25257842_1
                            text_html: >-
                              <b>I don't have 1500 to sell it back, I paid
                              almost two thousand dollars for this thing. If
                              they're gonna supposedly reimburse me, they can
                              pay for a prepaid label. If I knew what was going
                              to be like this, I wouldn't even let any robotic.
                              But, I mean, I can send you pictures of everything
                              that it does. That is, you know I won't do, but I
                              don't have that kind of money just to send it
                              back.<br></b><div><br></div>
                        status: Answered
                        text: >-
                          I got this in July, 2026. It is damaged it wont go to
                          my computer right. we did a print test gives me
                          nothing but ink on paper. make a lound sound. It
                          dosent work right. **** wont it a prepaid lable to
                          send it back and get my money back. Thats all iv been
                          asking for been alot of game playing with them.
                        type: Service or Repair Issues
                    name: Amazon.com
                    next_page: 2
                    observed_at_ms: 1789483200000
                    page: 1
                    page_size: 10
                    profile_url: >-
                      https://www.bbb.org/us/wa/seattle/profile/ecommerce/amazoncom-1296-7039385
                    source_url: >-
                      https://www.bbb.org/us/wa/seattle/profile/ecommerce/amazoncom-1296-7039385/complaints?page=1
                    status_filter: null
                    terms_url: https://www.bbb.org/terms-of-use
                    total_found: 10000
                    total_found_note: >-
                      bbb.org caps numFound at 10000; use complaints_summary for
                      exact closed counts
                    type_filter: null
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Published customer complaints for one business from its bbb.org
            complaints tab, newest first, 10 per page, with complaint type,
            status, date, text and the business/consumer response thread, plus
            the status/type filter counts bbb.org offers and the profile's
            closed-complaint summary.


            The response contains the tool result directly.


            The provider identifies `items` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `date` | string | YYYY-MM-DD or null. |

            | `id` | string | bbb.org complaint id
            `<bbbId>_<businessId>_<complaintId>`. |

            | `responses` | object[] |  |

            | `status` | string |  |

            | `text` | string | Consumer's complaint text as published (bbb.org
            masks personal data with asterisks). |

            | `type` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.