> ## 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

# Resolve

> Normalise a bbb.org link an agent found elsewhere, or confirm an `id` exists, before calling profile or complaints.

## Request contract

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

[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.resolve",
  "method": "POST",
  "path": "/apis/v1/bbb-org/businesses/resolve",
  "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": {
              "url": "https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/customer-reviews"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "id": {}
                  },
                  "required": [
                    "id"
                  ]
                },
                {
                  "properties": {
                    "url": {}
                  },
                  "required": [
                    "url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "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"
            },
            "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/resolve
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/resolve:
    post:
      tags:
        - Better Business Bureau
      summary: Resolve
      description: >-
        Normalise a bbb.org link an agent found elsewhere, or confirm an `id`
        exists, before calling profile or complaints.
      operationId: bbb-org.businesses.resolve
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  url: >-
                    https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/customer-reviews
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        id: {}
                      required:
                        - id
                    - properties:
                        url: {}
                      required:
                        - url
              properties:
                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
                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:
                    alt_names:
                      - Calixto Plumbing, LLC
                    attribution: Better Business Bureau (bbb.org)
                    bbb_id: '0825'
                    business_id: '1000223803'
                    city: Austin
                    complaints_closed_last_3_years: 0
                    complaints_url: >-
                      https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/complaints
                    id: 0825-1000223803
                    input_url: >-
                      https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/customer-reviews
                    is_accredited: true
                    is_out_of_business: false
                    name: Calixto Plumbing
                    observed_at_ms: 1789483200000
                    rating: A+
                    reviews_url: >-
                      https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/customer-reviews
                    source_url: >-
                      https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803
                    state: TX
                    terms_url: https://www.bbb.org/terms-of-use
                    website: https://calixtoplumbing.com/
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Resolve a pasted bbb.org URL (profile or any sub page) or a BBB `id`
            to the canonical identity: `id`, local BBB id, business id, primary
            and alternate names, canonical profile / complaints / reviews URLs,
            city and state, letter grade, accreditation flag and complaints
            closed in the last 3 years.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `alt_names` | string[] |  |

            | `attribution` | string | Attribution string to display with the
            data. |

            | `bbb_id` | string | Four-digit id of the local BBB that holds the
            file. |

            | `business_id` | string | Numeric business id assigned by BBB. |

            | `city` | string |  |

            | `complaints_closed_last_3_years` | number |  |

            | `complaints_url` | string |  |

            | `id` | string | Stable bbb.org identity `<bbbId>-<businessId>`,
            the trailing part of every profile URL. |

            | `input_url` | string | The `url` that was passed, or null when
            `id` was used. |

            | `is_accredited` | boolean |  |

            | `is_out_of_business` | boolean |  |

            | `name` | string |  |

            | `observed_at_ms` | number | Unix epoch milliseconds (UTC) when
            this program read the page. Live read on every call, no cache. |

            | `rating` | string | BBB letter grade as shown (A+ … F, or NR);
            null when the page shows none. |

            | `reviews_url` | string |  |

            | `source_url` | string | Canonical bbb.org profile URL. |

            | `state` | string |  |

            | `terms_url` | string | bbb.org terms of use governing this public
            data. |

            | `website` | 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.