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

# Revisions

> Edit history of one question or answer by `post_id` or URL, newest first, or one revision by `revision_guid`. Each revision carries what changed (title, tags, body HTML), the editor, the edit comment and its public revision page.

## Request contract

* **Method and path:** POST /apis/v1/stackexchange-com/questions/revisions
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/stackexchange-com/questions/revisions`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "stackexchange-com.questions.revisions",
  "method": "POST",
  "path": "/apis/v1/stackexchange-com/questions/revisions",
  "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": {
              "revision_guid": "CB322AD9-6248-4D59-9ABA-D85C2D000877"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "post_id": {}
                  },
                  "required": [
                    "post_id"
                  ]
                },
                {
                  "properties": {
                    "revision_guid": {}
                  },
                  "required": [
                    "revision_guid"
                  ]
                },
                {
                  "properties": {
                    "url": {}
                  },
                  "required": [
                    "url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "include_body": {
              "description": "include_body",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "key": {
              "description": "Optional Stack Exchange application key. Raises the per-IP quota from 300 to 10,000 requests per day and unlocks pages above 25, which the API refuses anonymously. Keys are public identifiers, not secrets.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page": {
              "default": 1,
              "description": "Pages above 25 need `key`: Stack Exchange serves deeper pages only with an application key (`access_denied` otherwise). Without one the last page reports partial coverage.\n\nProvider reference: minimum 1; maximum 10000; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 10000,
                "min": 1
              }
            },
            "pagesize": {
              "default": 30,
              "description": "pagesize\n\nProvider reference: minimum 1; maximum 100; default 30.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "post_id": {
              "description": "post_id",
              "type": "number"
            },
            "revision_guid": {
              "description": "One revision by its GUID, as in /revisions/<guid>/view-source links. Pattern: ^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$.",
              "type": "string"
            },
            "site": {
              "default": "stackoverflow",
              "description": "Stack Exchange site API parameter, e.g. stackoverflow, superuser, math, askubuntu, english, physics. Use `sites` to list them. Pattern: ^[a-z0-9]+(\\.[a-z0-9]+)*$.\n\nProvider reference: default \"stackoverflow\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "url": {
              "description": "A pasted revision history URL (/posts/<id>/revisions), revision source URL (/revisions/<guid>/view-source) or revision page URL (/revisions/<post_id>/<n>, returns the whole history) on any Stack Exchange site. The site is derived from the host; an explicit `site` must match it.",
              "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/stackexchange-com.json POST /apis/v1/stackexchange-com/questions/revisions
openapi: 3.1.0
info:
  description: ''
  title: Stack Exchange
  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:
    stackexchange-com:
      description: ''
      title: Stack Exchange
      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: 5bc97b6e49cd2980b95f225d7763c2c1917cc4efdfd41fb9e7e3dfd2260a12e8
        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/stackexchange-com/questions/accepted-answers
    - /apis/v1/stackexchange-com/questions/answer
    - /apis/v1/stackexchange-com/questions/answers
    - /apis/v1/stackexchange-com/questions/question
    - /apis/v1/stackexchange-com/questions/revisions
    - /apis/v1/stackexchange-com/questions/search
    - /apis/v1/stackexchange-com/questions/sites
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:5f7ff3362d41bef80c277294811263969f47b5bd6b614be4b40139c0088eeef2
    facts_hash: 5bc97b6e49cd2980b95f225d7763c2c1917cc4efdfd41fb9e7e3dfd2260a12e8
    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: stackexchange-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/stackexchange-com/questions/revisions:
    post:
      tags:
        - Stack Exchange
      summary: Revisions
      description: >-
        Edit history of one question or answer by `post_id` or URL, newest
        first, or one revision by `revision_guid`. Each revision carries what
        changed (title, tags, body HTML), the editor, the edit comment and its
        public revision page.
      operationId: stackexchange-com.questions.revisions
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  revision_guid: CB322AD9-6248-4D59-9ABA-D85C2D000877
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        post_id: {}
                      required:
                        - post_id
                    - properties:
                        revision_guid: {}
                      required:
                        - revision_guid
                    - properties:
                        url: {}
                      required:
                        - url
              properties:
                include_body:
                  description: include_body
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                key:
                  description: >-
                    Optional Stack Exchange application key. Raises the per-IP
                    quota from 300 to 10,000 requests per day and unlocks pages
                    above 25, which the API refuses anonymously. Keys are public
                    identifiers, not secrets.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                page:
                  default: 1
                  description: >-
                    Pages above 25 need `key`: Stack Exchange serves deeper
                    pages only with an application key (`access_denied`
                    otherwise). Without one the last page reports partial
                    coverage.


                    Provider reference: minimum 1; maximum 10000; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 10000
                    min: 1
                pagesize:
                  default: 30
                  description: |-
                    pagesize

                    Provider reference: minimum 1; maximum 100; default 30.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                post_id:
                  description: post_id
                  type: number
                revision_guid:
                  description: >-
                    One revision by its GUID, as in
                    /revisions/<guid>/view-source links. Pattern:
                    ^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$.
                  type: string
                site:
                  default: stackoverflow
                  description: >-
                    Stack Exchange site API parameter, e.g. stackoverflow,
                    superuser, math, askubuntu, english, physics. Use `sites` to
                    list them. Pattern: ^[a-z0-9]+(\.[a-z0-9]+)*$.


                    Provider reference: default "stackoverflow".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                url:
                  description: >-
                    A pasted revision history URL (/posts/<id>/revisions),
                    revision source URL (/revisions/<guid>/view-source) or
                    revision page URL (/revisions/<post_id>/<n>, returns the
                    whole history) on any Stack Exchange site. The site is
                    derived from the host; an explicit `site` must match it.
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-22T18:00:00+00:00.
                  summary: Official provider example
                  value:
                    count: 1
                    has_more: false
                    history_url: https://stackoverflow.com/posts/3940144/revisions
                    observed_at_ms: 1792000000000
                    page: 1
                    post_id: 3940144
                    quota:
                      backoff_seconds: null
                      max: 300
                      remaining: 280
                    revision_guid: CB322AD9-6248-4D59-9ABA-D85C2D000877
                    revisions:
                      - body_html: >
                          <p>To get a <em>new</em> reversed list, apply the <a
                          href="https://docs.python.org/3/library/functions.html#reversed"
                          rel="nofollow noreferrer"><code>reversed</code></a>
                          function and collect the items into a <a
                          href="https://docs.python.org/3/library/stdtypes.html#list"
                          rel="nofollow noreferrer"><code>list</code></a>:</p>

                          <pre><code>&gt;&gt;&gt; xs = [0, 10, 20, 40]

                          &gt;&gt;&gt; list(reversed(xs))

                          [40, 20, 10, 0]

                          </code></pre>

                          <p>To iterate backwards through a list:</p>

                          <pre><code>&gt;&gt;&gt; xs = [0, 10, 20, 40]

                          &gt;&gt;&gt; for x in reversed(xs):

                          ...     print(x)

                          40

                          20

                          10

                          0

                          </code></pre>
                        comment: Accuracy.
                        content_license: CC BY-SA 4.0
                        created_at_ms: 1660588390000
                        is_rollback: false
                        last_tags: null
                        last_title: null
                        post_id: 3940144
                        post_type: answer
                        revision_guid: CB322AD9-6248-4D59-9ABA-D85C2D000877
                        revision_number: 11
                        revision_type: single_user
                        set_community_wiki: false
                        site: stackoverflow
                        source_url: https://stackoverflow.com/revisions/3940144/11
                        tags: null
                        title: null
                        user:
                          display_name: Mateen Ulhaq
                          link: https://stackoverflow.com/users/365102/mateen-ulhaq
                          reputation: 28128
                          user_id: 365102
                          user_type: registered
                    site: stackoverflow
                    source_url: >-
                      https://api.stackexchange.com/2.3/revisions/CB322AD9-6248-4D59-9ABA-D85C2D000877?site=stackoverflow&page=1&pagesize=30&filter=%2120aKG._8Oscv*6c2blRrG
                    total: 1
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Edit history of one question or answer by `post_id` or URL, newest
            first, or one revision by `revision_guid`. Each revision carries
            what changed (title, tags, body HTML), the editor, the edit comment
            and its public revision page.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `count` | number |  |

            | `has_more` | boolean |  |

            | `history_url` | string | Public revision history page of the post.
            |

            | `observed_at_ms` | number |  |

            | `page` | number |  |

            | `post_id` | number |  |

            | `quota` | object |  |

            | `revision_guid` | string |  |

            | `revisions` | object[] |  |

            | `site` | string |  |

            | `source_url` | string |  |

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