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

# Stock indices

> To learn the indices a company (e.g. PETR) is a member of.

## Request contract

* **Method and path:** POST /apis/v1/b3-com-br/companies/stock-indices
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/b3-com-br/companies/stock-indices`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/b3-com-br.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "b3-com-br.companies.stock-indices",
  "method": "POST",
  "path": "/apis/v1/b3-com-br/companies/stock-indices",
  "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": {
              "keyword": "PETR"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "keyword": {
              "description": "Ticker or company-name prefix, e.g. `PETR`. Omit for the full table.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page": {
              "default": 1,
              "description": "1-based page number.\n\nProvider reference: minimum 1; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "page_size": {
              "description": "Rows per page; B3 returns an empty page above 120.\n\nProvider reference: minimum 1; maximum 120.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 120,
                "min": 1
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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/b3-com-br.json POST /apis/v1/b3-com-br/companies/stock-indices
openapi: 3.1.0
info:
  description: ''
  title: B3 listed companies and indices
  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:
    b3-com-br:
      description: ''
      title: B3 listed companies and indices
      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: e7ecba721a5159c2022236e8de07434d7a0197f56afb1490c50ee9a2921a6e0d
        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/b3-com-br/companies/cash-dividends
    - /apis/v1/b3-com-br/companies/company
    - /apis/v1/b3-com-br/companies/company-filings
    - /apis/v1/b3-com-br/companies/corporate-actions
    - /apis/v1/b3-com-br/companies/index-portfolio
    - /apis/v1/b3-com-br/companies/industry-classification
    - /apis/v1/b3-com-br/companies/quote
    - /apis/v1/b3-com-br/companies/search-companies
    - /apis/v1/b3-com-br/companies/stock-indices
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:c5c6aab608842f413457b3d8abb27e97fc00fb7e8fe3b8f189bd0ede5c6b504a
    facts_hash: e7ecba721a5159c2022236e8de07434d7a0197f56afb1490c50ee9a2921a6e0d
    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: b3-com-br
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/b3-com-br/companies/stock-indices:
    post:
      tags:
        - B3 listed companies and indices
      summary: Stock indices
      description: To learn the indices a company (e.g. PETR) is a member of.
      operationId: b3-com-br.companies.stock-indices
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  keyword: PETR
            schema:
              additionalProperties: true
              properties:
                keyword:
                  description: >-
                    Ticker or company-name prefix, e.g. `PETR`. Omit for the
                    full table.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                page:
                  default: 1
                  description: |-
                    1-based page number.

                    Provider reference: minimum 1; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                page_size:
                  description: |-
                    Rows per page; B3 returns an empty page above 120.

                    Provider reference: minimum 1; maximum 120.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 120
                    min: 1
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-22.
                  summary: Official provider example
                  value:
                    country: BR
                    keyword: PETR
                    next_page: null
                    observed_at_ms: 1790046992117
                    page: 1
                    page_size: 20
                    source: b3.com.br
                    stocks:
                      - code: E1CO34
                        company: ECOPETROL SA
                        indices:
                          - BDRX
                        type: DRN
                      - code: PETR3
                        company: PETROBRAS
                        indices:
                          - IBBC
                          - IBBE
                          - IBBR
                          - IBEE
                          - IBEW
                          - IBOV
                          - IBRA
                          - IBXL
                          - IBXX
                          - IDIV
                          - IDVR
                          - IGCT
                          - IGCX
                          - ITAG
                          - MLCX
                        type: ON N2
                      - code: PETR4
                        company: PETROBRAS
                        indices:
                          - IBBC
                          - IBBE
                          - IBBR
                          - IBEE
                          - IBEW
                          - IBLV
                          - IBOV
                          - IBRA
                          - IBSD
                          - IBXL
                          - IBXX
                          - IDIV
                          - IDVR
                          - IGCT
                          - IGCX
                          - ITAG
                          - MLCX
                        type: PN N2
                      - code: RECV3
                        company: PETRORECSA
                        indices:
                          - GPTW
                          - IBRA
                          - IBXX
                          - IDIV
                          - IDVR
                          - IGCT
                          - IGCX
                          - IGNM
                          - ITAG
                          - SCSR
                          - SMLL
                        type: ON NM
                    total_pages: 1
                    total_records: 4
                    updated_on: '2026-09-22'
                    url: >-
                      https://sistemaswebb3-listados.b3.com.br/indexPage/stocks?language=pt-br
                    valid_from_month: 9
                    valid_to_month: 12
                    year: 2026
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Which B3 indices each stock belongs to in the current validity
            window, searchable by ticker or company prefix.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `country` | string |  |

            | `keyword` | string |  |

            | `next_page` | number | Page to request next; null when this is the
            last page. |

            | `observed_at_ms` | number |  |

            | `page` | number |  |

            | `page_size` | number |  |

            | `source` | string |  |

            | `stocks` | object[] |  |

            | `total_pages` | number |  |

            | `total_records` | number | Total rows across pages as B3 reports
            it. |

            | `updated_on` | string |  |

            | `url` | string |  |

            | `valid_from_month` | number |  |

            | `valid_to_month` | number |  |

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