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

# Lookup agency

> To find the org_id for search_tenders / search_awards when you know an agency's name, or to list the subordinate units of a parent code.

## Request contract

* **Method and path:** POST /apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/web-pcc-gov-tw.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "web-pcc-gov-tw.public-procurement-notices.lookup-agency",
  "method": "POST",
  "path": "/apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency",
  "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": "勞工保險局"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "keyword": {
              "description": "Agency name or code keyword, e.g. 台灣電力 or 3.13.31.",
              "type": "string"
            }
          },
          "required": [
            "keyword"
          ],
          "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/web-pcc-gov-tw.json POST /apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency
openapi: 3.1.0
info:
  description: ''
  title: Taiwan Government e-Procurement (web.pcc.gov.tw)
  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:
    web-pcc-gov-tw:
      description: ''
      title: Taiwan Government e-Procurement (web.pcc.gov.tw)
      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: dd2ad4411d4c20fd9576b0870a1c4bab6b63de30a34cd4392fbc20cb349c7647
        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/web-pcc-gov-tw/public-procurement-notices/award-detail
    - /apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency
    - /apis/v1/web-pcc-gov-tw/public-procurement-notices/search-awards
    - /apis/v1/web-pcc-gov-tw/public-procurement-notices/search-tenders
    - /apis/v1/web-pcc-gov-tw/public-procurement-notices/tender-detail
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:e017de8959cfe22a5457e8d269f0f8a5290422f544e803966775b481abaa53cf
    facts_hash: dd2ad4411d4c20fd9576b0870a1c4bab6b63de30a34cd4392fbc20cb349c7647
    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: web-pcc-gov-tw
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/web-pcc-gov-tw/public-procurement-notices/lookup-agency:
    post:
      tags:
        - Taiwan Government e-Procurement (web.pcc.gov.tw)
      summary: Lookup agency
      description: >-
        To find the org_id for search_tenders / search_awards when you know an
        agency's name, or to list the subordinate units of a parent code.
      operationId: web-pcc-gov-tw.public-procurement-notices.lookup-agency
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  keyword: 勞工保險局
            schema:
              additionalProperties: true
              properties:
                keyword:
                  description: Agency name or code keyword, e.g. 台灣電力 or 3.13.31.
                  type: string
              required:
                - keyword
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-05.
                  summary: Official provider example
                  value:
                    agencies:
                      - awards_url: >-
                          https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=3.54.51&orgName=勞工保險局(103年2月17日組改)
                        has_children: false
                        org_id: 3.54.51
                        org_name: 勞工保險局(103年2月17日組改)
                        tenders_url: >-
                          https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=3.54.51&orgName=勞工保險局(103年2月17日組改)
                      - awards_url: >-
                          https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=A.17.1&orgName=勞動部勞工保險局
                        has_children: false
                        org_id: A.17.1
                        org_name: 勞動部勞工保險局
                        tenders_url: >-
                          https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=A.17.1&orgName=勞動部勞工保險局
                      - awards_url: >-
                          https://web.pcc.gov.tw/prkms/tender/common/orgName/toAtm?orgId=93288751&orgName=勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)
                        has_children: false
                        org_id: '93288751'
                        org_name: 勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)
                        tenders_url: >-
                          https://web.pcc.gov.tw/prkms/tender/common/orgName/toTpam?orgId=93288751&orgName=勞動部勞工保險局高雄市第二辦事處職場互助教保服務中心(委託社團法人高雄市社區美學教育發展協會辦理)
                    keyword: 勞工保險局
                    observed_at_ms: 1791158815740
                    source_url: https://web.pcc.gov.tw/prkms/tender/common/orgName/search
                    truncated: false
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Look up Taiwan procuring agencies (機關名稱查詢) by a name or code
            keyword: returns agency codes (機關代碼) and names, with a flag for
            agencies that have subordinate units. The site caps the list at 50
            rows.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `agencies` | object[] |  |

            | `keyword` | string |  |

            | `observed_at_ms` | number |  |

            | `source_url` | string |  |

            | `truncated` | boolean | True when the site's 50-row cap was
            reached; narrow the keyword. |



            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.