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

# Advisory

> Look up the level and advice for one destination when you know its State Department code (GM, UK, MX) or have its travel.state.gov advisory link. Use advisories to find a destination by name.

## Request contract

* **Method and path:** POST /apis/v1/travel-state-gov/travel-advisories/advisory
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/travel-state-gov/travel-advisories/advisory`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/travel-state-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "travel-state-gov.travel-advisories.advisory",
  "method": "POST",
  "path": "/apis/v1/travel-state-gov/travel-advisories/advisory",
  "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": {
              "code": "GM"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "code": {
              "description": "The State Department's two-character destination code as cadataapi.state.gov uses it, mostly FIPS 10-4 (GM Germany, UK United Kingdom, CH China, KN North Korea), not ISO 3166. Case-insensitive. Pattern: ^[A-Za-z0-9]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "url": {
              "description": "A pasted travel.state.gov advisory page URL instead of `code`, e.g. https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "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/travel-state-gov.json POST /apis/v1/travel-state-gov/travel-advisories/advisory
openapi: 3.1.0
info:
  description: ''
  title: U.S. State Department Travel Advisories (travel.state.gov)
  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:
    travel-state-gov:
      description: ''
      title: U.S. State Department Travel Advisories (travel.state.gov)
      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: 6eaf4d3b69a20a1918d622e7b4945c4e0f374a1c2d35b6d1813aa71cd32e913a
        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/travel-state-gov/travel-advisories/advisories
    - /apis/v1/travel-state-gov/travel-advisories/advisory
    - /apis/v1/travel-state-gov/travel-advisories/country-information
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:598dc9774d99115398e57ca8e6abcd5ba9b0cb35be515fcbd16f61cf98b659df
    facts_hash: 6eaf4d3b69a20a1918d622e7b4945c4e0f374a1c2d35b6d1813aa71cd32e913a
    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: travel-state-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/travel-state-gov/travel-advisories/advisory:
    post:
      tags:
        - U.S. State Department Travel Advisories (travel.state.gov)
      summary: Advisory
      description: >-
        Look up the level and advice for one destination when you know its State
        Department code (GM, UK, MX) or have its travel.state.gov advisory link.
        Use advisories to find a destination by name.
      operationId: travel-state-gov.travel-advisories.advisory
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  code: GM
            schema:
              additionalProperties: true
              properties:
                code:
                  description: >-
                    The State Department's two-character destination code as
                    cadataapi.state.gov uses it, mostly FIPS 10-4 (GM Germany,
                    UK United Kingdom, CH China, KN North Korea), not ISO 3166.
                    Case-insensitive. Pattern: ^[A-Za-z0-9]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                url:
                  description: >-
                    A pasted travel.state.gov advisory page URL instead of
                    `code`, e.g.
                    https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-07.
                  summary: Official provider example
                  value:
                    advisories:
                      - code: GM
                        country: Germany
                        destination_code: deu
                        level: 2
                        level_label: Exercise Increased Caution
                        published: '2025-05-12T20:00:00-04:00'
                        summary: >-
                          Exercise increased caution in Germany due to
                          terrorism.

                          Terrorist groups and lone actors remain a constant
                          threat in Germany and Europe, attacking people in
                          public locations with knives, small arms, rudimentary
                          explosive devices, and vehicles. Such attacks may
                          occur with little or no warning and target:

                          - Tourist locations

                          - Transportation centers (airports, train, or bus
                          stations)

                          - Markets and shopping malls

                          - Local government facilities

                          - Hotels, clubs, and restaurants

                          - Places of worship and educational institutions

                          - Parks

                          - Major sporting and cultural events

                          - Schools
                        title: 'Germany - Level 2: Exercise Increased Caution'
                        updated: '2025-05-12T20:00:00-04:00'
                        url: >-
                          https://travel.state.gov/content/tsg_aem/us/en/home/international-travel/travel-advisories/destination.deu.html
                    code: GM
                    source_url: https://cadataapi.state.gov/api/TravelAdvisories/GM
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            The current travel advisory for one destination code, or for a
            pasted travel.state.gov advisory page URL. A code can cover several
            advisories (IS returns Israel, the West Bank and Gaza; KN returns
            North Korea and Saint Kitts and Nevis), so all rows filed under it
            are returned. Unknown codes and URLs that no advisory links to are
            not_found.


            The response contains the tool result directly.


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


            | Documented field | Provider type | Description |

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

            | `code` | string | Destination code the feed files this advisory
            under (Category). Mostly FIPS 10-4, but some rows use other codes
            and codes can be shared: KN covers North Korea and Saint Kitts and
            Nevis, IS covers Israel, the West Bank and Gaza. |

            | `country` | string | Destination name from the advisory title,
            e.g. `Burma`, `Gaza`, `Hong Kong`. |

            | `destination_code` | string | Code in a current
            `destination.<code>.html` page URL, usually ISO 3166-1 alpha-3 (deu,
            prk; xks for Kosovo). Null for rows that still link to a
            legacy-layout page. |

            | `level` | number | Advisory level: 1 exercise normal precautions,
            2 exercise increased caution, 3 reconsider travel, 4 do not travel.
            |

            | `level_label` | string |  |

            | `published` | string | Publication timestamp as the feed states
            it. |

            | `summary` | string | Advisory text converted from the feed's HTML
            to plain text; list items start with `- `. |

            | `title` | string | Advisory title as published, whitespace
            collapsed. |

            | `updated` | string | Last update timestamp as the feed states it.
            |

            | `url` | string | The advisory page on travel.state.gov. |



            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.