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

# Codelist get

> To label codes seen in records (SECTOR S1311 = Central government, STANDARD_REVENUE T_1100 = Taxes on income, profits and capital gains of individuals, ...).

## Request contract

* **Method and path:** POST /apis/v1/sdmx-oecd-org/datasets/codelist-get
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/codelist-get`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "sdmx-oecd-org.datasets.codelist-get",
  "method": "POST",
  "path": "/apis/v1/sdmx-oecd-org/datasets/codelist-get",
  "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": {
              "agency": "OECD",
              "id": "CL_SECTOR",
              "page_size": 20,
              "version": "1.2"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "agency": {
              "description": "Codelist agency, e.g. OECD, OECD.CTP.TPS, SDMX. Pattern: ^[A-Za-z0-9_.]{1,64}$.",
              "type": "string"
            },
            "cursor": {
              "description": "cursor",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "id": {
              "description": "Codelist id, e.g. CL_SECTOR, CL_STANDARD_REVENUE, CL_AREA. Pattern: ^[A-Za-z0-9_@-]{1,120}$.",
              "type": "string"
            },
            "page_size": {
              "default": 500,
              "description": "page_size\n\nProvider reference: minimum 1; maximum 1000; default 500.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 1000,
                "min": 1
              }
            },
            "version": {
              "default": "latest",
              "description": "Pattern: ^(latest|[0-9]+(\\.[0-9]+){0,2})$.\n\nProvider reference: default \"latest\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "required": [
            "agency",
            "id"
          ],
          "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/sdmx-oecd-org.json POST /apis/v1/sdmx-oecd-org/datasets/codelist-get
openapi: 3.1.0
info:
  description: ''
  title: OECD Data Explorer SDMX API
  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:
    sdmx-oecd-org:
      description: ''
      title: OECD Data Explorer SDMX API
      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: 9ae65f14fd2e55ff7c9ef4040112d915d6e3c89fdd9682f63cec9be588e616f5
        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/sdmx-oecd-org/datasets/codelist-get
    - /apis/v1/sdmx-oecd-org/datasets/dataflows-list
    - /apis/v1/sdmx-oecd-org/datasets/records-get
    - /apis/v1/sdmx-oecd-org/datasets/records-list
    - /apis/v1/sdmx-oecd-org/datasets/source-status
    - /apis/v1/sdmx-oecd-org/datasets/structure-get
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:0268be5852703fac92e8c8edda4385fd15075c4fe85c228a210752f0ee7d8aab
    facts_hash: 9ae65f14fd2e55ff7c9ef4040112d915d6e3c89fdd9682f63cec9be588e616f5
    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: sdmx-oecd-org
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/sdmx-oecd-org/datasets/codelist-get:
    post:
      tags:
        - OECD Data Explorer SDMX API
      summary: Codelist get
      description: >-
        To label codes seen in records (SECTOR S1311 = Central government,
        STANDARD_REVENUE T_1100 = Taxes on income, profits and capital gains of
        individuals, ...).
      operationId: sdmx-oecd-org.datasets.codelist-get
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  agency: OECD
                  id: CL_SECTOR
                  page_size: 20
                  version: '1.2'
            schema:
              additionalProperties: true
              properties:
                agency:
                  description: >-
                    Codelist agency, e.g. OECD, OECD.CTP.TPS, SDMX. Pattern:
                    ^[A-Za-z0-9_.]{1,64}$.
                  type: string
                cursor:
                  description: cursor
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                id:
                  description: >-
                    Codelist id, e.g. CL_SECTOR, CL_STANDARD_REVENUE, CL_AREA.
                    Pattern: ^[A-Za-z0-9_@-]{1,120}$.
                  type: string
                page_size:
                  default: 500
                  description: |-
                    page_size

                    Provider reference: minimum 1; maximum 1000; default 500.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 1000
                    min: 1
                version:
                  default: latest
                  description: |-
                    Pattern: ^(latest|[0-9]+(\.[0-9]+){0,2})$.

                    Provider reference: default "latest".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              required:
                - agency
                - id
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    agency_id: OECD
                    attribution: >-
                      Source: OECD Data Explorer,
                      https://data-explorer.oecd.org/ (SDMX API
                      https://sdmx.oecd.org/public/rest/). OECD terms:
                      https://www.oecd.org/en/about/terms-conditions.html; cite
                      the OECD and the dataflow; check the dataflow metadata for
                      third-party owners.
                    codelist_ref: OECD:CL_SECTOR(1.2)
                    codes:
                      - code: _Z
                        name: Not applicable
                        parent: null
                      - code: S1
                        name: Total economy
                        parent: null
                      - code: S11
                        name: Non-financial corporations
                        parent: S1
                      - code: S11A
                        name: Post office giro
                        parent: S11
                      - code: S11003
                        name: Foreign controlled non-financial corporations
                        parent: S11
                      - code: S1100P
                        name: Private non-financial corporations
                        parent: S11
                      - code: S11B
                        name: Head offices of non-financial corporations
                        parent: S11
                      - code: S11DO
                        name: Domestically controlled non-financial corporations
                        parent: S11
                      - code: S11001
                        name: Public non-financial corporations
                        parent: S11DO
                      - code: S110011
                        name: >-
                          Public non-financial corporations, which are part of
                          domestic multinationals
                        parent: S11001
                      - code: S11001C
                        name: >-
                          Public non-financial corporations controlled by
                          central government
                        parent: S11001
                      - code: S11002
                        name: National private non-financial corporations
                        parent: S11DO
                      - code: S110021
                        name: >-
                          National private non-financial corporations, which are
                          part of domestic multinationals
                        parent: S11002
                      - code: S12
                        name: Financial corporations
                        parent: S1
                      - code: S12003
                        name: Foreign controlled financial corporations
                        parent: S12
                      - code: S1200P
                        name: Private financial corporations
                        parent: S12
                      - code: S121
                        name: Central bank
                        parent: S12
                      - code: S122
                        name: Deposit taking corporations, except the Central Bank
                        parent: S12
                      - code: S122C
                        name: Credit institutions
                        parent: S122
                      - code: S12201
                        name: >-
                          Public deposit taking corporations, except the Central
                          Bank
                        parent: S122
                    count: 20
                    id: CL_SECTOR
                    is_partial: false
                    name: Codelist for institutional sectors
                    next_cursor: '20'
                    observed_at_ms: 1792360050053
                    retrieved_at: '2026-10-18T21:47:30Z'
                    source_url: >-
                      https://sdmx.oecd.org/public/rest/codelist/OECD/CL_SECTOR/1.2
                    total: 216
                    version: '1.2'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Codes and labels of one SDMX codelist from GET
            codelist/{agency}/{id}/{version}: code, English name and parent
            code. Codelist references come from `structure_get`
            (dimensions[].codelist, attributes[].codelist). Paginated
            client-side.


            The response contains the tool result directly.


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


            | Documented field | Provider type | Description |

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

            | `code` | string |  |

            | `name` | string |  |

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