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

# Profile

> You have a BBB `id` (from search or resolve) or a pasted bbb.org profile URL and need ratings, accreditation and complaint summary figures.

## Request contract

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

[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.profile",
  "method": "POST",
  "path": "/apis/v1/bbb-org/businesses/profile",
  "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": "0825-1000223803"
            }
          }
        },
        "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/profile
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/profile:
    post:
      tags:
        - Better Business Bureau
      summary: Profile
      description: >-
        You have a BBB `id` (from search or resolve) or a pasted bbb.org profile
        URL and need ratings, accreditation and complaint summary figures.
      operationId: bbb-org.businesses.profile
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  id: 0825-1000223803
            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:
                    accreditation:
                      accredited_since: '2024-01-16'
                      is_accredited: true
                      revoked_at: null
                      status_code: 0
                      texts: []
                    address:
                      city: Austin
                      country_code: 2
                      formatted: '8410 Georgian Dr # B, Austin, TX 78753-6003'
                      is_us_based: true
                      postal_code: 78753-6003
                      state: TX
                      street: '8410 Georgian Dr # B'
                      street2: null
                    alerts: []
                    alt_names:
                      - Calixto Plumbing, LLC
                    attribution: Better Business Bureau (bbb.org)
                    bbb_id: '0825'
                    business_id: '1000223803'
                    categories:
                      - name: Plumber
                        url: https://www.bbb.org/us/tx/austin/category/plumber
                      - name: Plumbing Renovation
                        url: >-
                          https://www.bbb.org/us/tx/austin/category/plumbing-renovation
                      - name: Commercial Plumber
                        url: >-
                          https://www.bbb.org/us/tx/austin/category/commercial-plumber
                    complaints_summary:
                      closed_last_12_months: 0
                      closed_last_3_years: 0
                      total_displayed: 0
                      unit: complaints
                    complaints_url: >-
                      https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/complaints
                    dates:
                      bbb_file_opened: '2024-01-16'
                      business_started: '2023-03-14'
                      business_started_locally: null
                      incorporated: '2023-03-14'
                      new_owner: null
                    employees: null
                    entity_type: Limited Liability Company (LLC)
                    has_high_risk_category: false
                    id: 0825-1000223803
                    is_multi_location: false
                    is_out_of_business: false
                    latitude: 30.3
                    licenses:
                      - agency: Texas State Board of Plumbing Examiners
                        agency_state: TX
                        expiration_date: '2026-11-30'
                        notes: null
                        number: '44648'
                    local_bbb:
                      id: '0825'
                      name: BBB Heart of Texas
                      url: >-
                        https://www.bbb.org/local-bbb/bbb-serving-the-heart-of-texas
                    logo_url: >-
                      https://m.bbb.org/prod/ProfileImages/2024/1f7a8bd4-fdd2-45ca-8963-5c246e1d3b85.png
                    longitude: -97.76
                    management:
                      - is_principal: true
                        name: Mr. Omar Calixto Cordoba
                        title: Owner/Manager
                    name: Calixto Plumbing
                    observed_at_ms: 1789483200000
                    phone: (512) 945-3143
                    primary_category:
                      id: 10113-000
                      name: Plumber
                    rating:
                      grade: A+
                      methodology_url: https://www.bbb.org/all/overview-of-ratings
                      not_rated_reason: null
                      reasons:
                        - >-
                          Customer Reviews are not used in the calculation of
                          the BBB Letter Grade Rating.
                      scale: BBB letter grade A+ to F; NR = not rated
                    reviews_summary:
                      average_star_rating: 1
                      scale: stars_1_to_5
                      suppressed: false
                      total: 1
                    reviews_url: >-
                      https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/customer-reviews
                    service_area: null
                    source_url: >-
                      https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803
                    terms_url: https://www.bbb.org/terms-of-use
                    website: https://calixtoplumbing.com/
                    years_in_business: 3
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            The full bbb.org business profile for one business: names, website
            and phone, categories, BBB letter grade with reasons, accreditation
            status and dates, file-opened / started / incorporated dates,
            address and coordinates, entity type, years in business, complaint
            counts (closed in the last 3 years and 12 months), review count and
            average stars, alerts such as government actions, licences and
            management.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `accreditation` | object |  |

            | `address` | object |  |

            | `alerts` | object[] | Government actions, advertising reviews and
            other BBB alerts, verbatim HTML. |

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

            | `categories` | object[] |  |

            | `complaints_summary` | object | Complaint counts as bbb.org shows
            them; null when the page omits a figure. |

            | `complaints_url` | string |  |

            | `dates` | object |  |

            | `employees` | number | Employee count when bbb.org shows a
            positive number; null otherwise (0 means unknown on the site). |

            | `entity_type` | string |  |

            | `has_high_risk_category` | boolean |  |

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

            | `is_multi_location` | boolean |  |

            | `is_out_of_business` | boolean |  |

            | `latitude` | number |  |

            | `licenses` | object[] |  |

            | `local_bbb` | object |  |

            | `logo_url` | string |  |

            | `longitude` | number |  |

            | `management` | object[] | Business management / principal contacts
            as bbb.org lists them (names and titles only). |

            | `name` | string |  |

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

            | `phone` | string | Primary business phone as listed. |

            | `primary_category` | object |  |

            | `rating` | object |  |

            | `reviews_summary` | object |  |

            | `reviews_url` | string |  |

            | `service_area` | string |  |

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

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

            | `website` | string | Business website as listed. |

            | `years_in_business` | number |  |



            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.