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

# Post

> One Substack post by URL, or by publication and slug: metadata plus body_html and body_text. Free posts (audience everyone) are complete; paid posts return the publicly served preview with paywalled true, full_text_available false and text_coverage showing how much of the author's word count is visible.

## Request contract

* **Method and path:** POST /apis/v1/substack-com/newsletters/post
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/substack-com/newsletters/post`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "substack-com.newsletters.post",
  "method": "POST",
  "path": "/apis/v1/substack-com/newsletters/post",
  "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": {
              "url": "https://www.astralcodexten.com/p/metaculus-monday-2821"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "publication": {}
                  },
                  "required": [
                    "publication"
                  ]
                },
                {
                  "properties": {
                    "slug": {}
                  },
                  "required": [
                    "slug"
                  ]
                },
                {
                  "properties": {
                    "url": {}
                  },
                  "required": [
                    "url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "publication": {
              "description": "Substack slug or a declared custom publication host (www.astralcodexten.com, www.lennysnewsletter.com, www.noahpinion.blog). Other custom domains are not supported by this program.",
              "type": "string"
            },
            "slug": {
              "description": "Pattern: ^[A-Za-z0-9._-]+$.",
              "type": "string"
            },
            "url": {
              "description": "https://<publication host>/p/<slug> or https://open.substack.com/pub/<slug>/p/<slug>. Provide url, or publication and slug. Pattern: ^https?://.",
              "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/substack-com.json POST /apis/v1/substack-com/newsletters/post
openapi: 3.1.0
info:
  description: ''
  title: Substack
  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:
    substack-com:
      description: ''
      title: Substack
      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: 89c1207f996a9015efbff38e590a58a7adc6a2acfa9c4de3e70ac962dba23a83
        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/substack-com/newsletters/archive
    - /apis/v1/substack-com/newsletters/post
    - /apis/v1/substack-com/newsletters/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:72a798fcbd448bdcd1893095b45ede1d3cbd002bf3539b36ce01c8821031a2b5
    facts_hash: 89c1207f996a9015efbff38e590a58a7adc6a2acfa9c4de3e70ac962dba23a83
    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: substack-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/substack-com/newsletters/post:
    post:
      tags:
        - Substack
      summary: Post
      description: >-
        One Substack post by URL, or by publication and slug: metadata plus
        body_html and body_text. Free posts (audience everyone) are complete;
        paid posts return the publicly served preview with paywalled true,
        full_text_available false and text_coverage showing how much of the
        author's word count is visible.
      operationId: substack-com.newsletters.post
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  url: https://www.astralcodexten.com/p/metaculus-monday-2821
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        publication: {}
                      required:
                        - publication
                    - properties:
                        slug: {}
                      required:
                        - slug
                    - properties:
                        url: {}
                      required:
                        - url
              properties:
                publication:
                  description: >-
                    Substack slug or a declared custom publication host
                    (www.astralcodexten.com, www.lennysnewsletter.com,
                    www.noahpinion.blog). Other custom domains are not supported
                    by this program.
                  type: string
                slug:
                  description: 'Pattern: ^[A-Za-z0-9._-]+$.'
                  type: string
                url:
                  description: >-
                    https://<publication host>/p/<slug> or
                    https://open.substack.com/pub/<slug>/p/<slug>. Provide url,
                    or publication and slug. Pattern: ^https?://.
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: >-
                    Published by the provider on
                    2026-09-15T01:29:38.194472+00:00.
                  summary: Official provider example
                  value:
                    access_note: 'Free post: body_text is the complete public article.'
                    audience: everyone
                    authors:
                      - bio: null
                        handle: astralcodexten
                        id: '12009663'
                        name: Scott Alexander
                        photo_url: >-
                          https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7b500d22-1176-42ad-afaa-5d72bc36a809_44x44.png
                    body_html: >-
                      <p>Thanks to everyone who commented last week with
                      prediction markets I missed. Two of them seemed to be
                      especially interesting.</p><p><strong><a
                      href="https://polymarket.com/">Polymarket</a></strong> is
                      another cryptocurrency-based prediction market. It's got
                      about two dozen contracts open, and some of them are
                      pretty big - $5 million plus! With that kind of money, we
                      ought to be seeing some really good predicting!
                      We're...not. Either there's a 6% chance that Donald Trump
                      will be president again by March 31, or something's gone
                      wrong. </p><p>Probably it's the second one. I tried to bet
                      against Trump, but getting money into the market was
                      pretty hard. You need USDCoins, a stablecoin related to
                      Ethereum. Polymarket tries to let you buy them directly,
                      but their app wanted me to give them a security code which
                      never showed up, so I gave up on this. Instead I bought
                      some USDC at Coinbase and tried to send them over. But
                      along with the usual Ethereum gas fees, they have
                      something called a relayer, which is supposed to collect
                      my money and put it in my account. And it's apparently
                      heavily backed up, and after two days my money is nowhere
                      to be seen (though I believe them <a
                      href="https://polymarket.medium.com/polymarket-relayer-community-announcement-31ac3b64c09d">when
                      they say</a> that they're trying their hardest and it will
                      probably percolate through the Ethereum network someday).
                      Maybe everyone's having these kinds of issues and this is
                      why the Trump contract hasn't adjusted? I'm not sure. I
                      will keep you updated if my money ever
                      materializes.</p><p><strong><a
                      href="https://kalshi.com/">Kalshi </a></strong>is "the
                      first regulated futures exchange dedicated to trading on
                      event outcomes". As far as I can tell they actually did
                      it. They got the government to agree to let them run a
                      prediction market, regulated as investing rather than
                      gambling. There will be a $25,000 max on contracts, so it
                      might not be enough for the real whales, but that's still
                      thirty times higher than existing prediction markets and
                      enough to probably be a sea change. I talked to a
                      representative who said they'll be "focused on creating
                      markets in a few key categories such as climate,
                      economics, geopolitics, energy, education, government,
                      space, COVID, and technology", but that they remain open
                      to potentially expanding to all sorts of other areas (<a
                      href="https://en.wikipedia.org/wiki/Onion_Futures_Act">except
                      onions,</a> which apparently have a very specific
                      carve-out as something which it is illegal to have futures
                      markets about, somebody please write a cyberpunk novel
                      revolving around this). So far they're still setting
                      things up, but they describe themselves as "ramping
                      quickly towards launch". I am super psyched about this and
                      will keep you all updated.</p><p>Getting back to
                      <strong><a
                      href="https://www.metaculus.com/questions/">Metaculus</a></strong>,
                      let’s look at what they’ve got on AI:</p><div
                      class="captioned-image-container"><figure><a
                      class="image-link image2" target="_blank"
                      href="https://substackcdn.com/image/fetch/$s_!ZlWn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png"
                      data-component-name="Image2ToDOM"><div
                      class="image2-inset"><picture><source type="image/webp"
                      srcset="https://substackcdn.com/image/fetch/$s_!ZlWn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png
                      424w,
                      https://substackcdn.com/image/fetch/$s_!ZlWn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png
                      848w,
                      https://substackcdn.com/image/fetch/$s_!ZlWn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3
                    body_text: >-
                      Thanks to everyone who commented last week with prediction
                      markets I missed. Two of them seemed to be especially
                      interesting.

                      Polymarket is another cryptocurrency-based prediction
                      market. It's got about two dozen contracts open, and some
                      of them are pretty big - $5 million plus! With that kind
                      of money, we ought to be seeing some really good
                      predicting! We're...not. Either there's a 6% chance that
                      Donald Trump will be president again by March 31, or
                      something's gone wrong.

                      Probably it's the second one. I tried to bet against
                      Trump, but getting money into the market was pretty hard.
                      You need USDCoins, a stablecoin related to Ethereum.
                      Polymarket tries to let you buy them directly, but their
                      app wanted me to give them a security code which never
                      showed up, so I gave up on this. Instead I bought some
                      USDC at Coinbase and tried to send them over. But along
                      with the usual Ethereum gas fees, they have something
                      called a relayer, which is supposed to collect my money
                      and put it in my account. And it's apparently heavily
                      backed up, and after two days my money is nowhere to be
                      seen (though I believe them when they say that they're
                      trying their hardest and it will probably percolate
                      through the Ethereum network someday). Maybe everyone's
                      having these kinds of issues and this is why the Trump
                      contract hasn't adjusted? I'm not sure. I will keep you
                      updated if my money ever materializes.

                      Kalshi is "the first regulated futures exchange dedicated
                      to trading on event outcomes". As far as I can tell they
                      actually did it. They got the government to agree to let
                      them run a prediction market, regulated as investing
                      rather than gambling. There will be a $25,000 max on
                      contracts, so it might not be enough for the real whales,
                      but that's still thirty times higher than existing
                      prediction markets and enough to probably be a sea change.
                      I talked to a representative who said they'll be "focused
                      on creating markets in a few key categories such as
                      climate, economics, geopolitics, energy, education,
                      government, space, COVID, and technology", but that they
                      remain open to potentially expanding to all sorts of other
                      areas (except onions, which apparently have a very
                      specific carve-out as something which it is illegal to
                      have futures markets about, somebody please write a
                      cyberpunk novel revolving around this). So far they're
                      still setting things up, but they describe themselves as
                      "ramping quickly towards launch". I am super psyched about
                      this and will keep you all updated.

                      Getting back to Metaculus, let’s look at what they’ve got
                      on AI:

                      First, some history. In 2016, DeepMind’s AlphaGo beat
                      first Fan Hui, a medium-level professional Go player, and
                      then Lee Sedol, a top professional Go player. This was one
                      of the more unexpected events in AI history; everyone
                      thought it would be a few more years before Go AIs were
                      ready for prime time. We can see this on Metaculus; their
                      prediction that a Go program would beat a professional
                      went from 30% before the Fan Hui match to 90% afterwards
                      (there was some debate on whether the Fan Hui match was
                      official enough to count, so it wasn’t 100, but everyone
                      agreed that beating Fan Hui meant the program could
                      probably beat other people in more official settings.


                      After that people thought it was moderately likely AlphaGo
                      could beat Lee Sedol too, and they were right.

                      Prediction markets clearly aren’t magic; they didn’t
                      expect AlphaGo’s victory over Hui any more than anyone
                      else did (maybe a little more than some other people? they
                      did give it 30%). But it’s interesting being able to
                      quantify the exact degree to which people thought it was
                      unlikely at the time, and when exactly that changed.

                      Imagine how great this sort of thing will one day be for
                      historians. With enough skill, you can sort of wring
                      prediction markets out of history - the price of
                      Confederate bonds in early 1863 implied that investors
                      thought the South had a 42% chance of winning the Civil
                      War. But future historians will be spoiled; the numbers
                      will be right t
                    comments: 104
                    cover_image: >-
                      https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/64c0705b-004a-4b01-861b-a00c1513fb5e_248x248.png
                    description: Two more prediction markets, plus AI
                    free_preview_sent: false
                    full_text_available: true
                    id: '32257019'
                    language: en
                    next_post_slug: book-review-why-were-polarized
                    observed_at_ms: 1789435777564
                    paywalled: false
                    podcast_duration_seconds: null
                    podcast_url: null
                    preview_text: null
                    previous_post_slug: open-thread-159
                    publication:
                      host: www.astralcodexten.com
                      url: https://www.astralcodexten.com
                    publication_id: '89120'
                    published_at: '2021-02-08T20:46:22.180Z'
                    reactions: 63
                    restacks: 0
                    search_engine_description: null
                    search_engine_title: null
                    section: null
                    slug: metaculus-monday-2821
                    source: >-
                      https://www.astralcodexten.com/api/v1/posts/metaculus-monday-2821
                    subtitle: Two more prediction markets, plus AI
                    tags: []
                    text_coverage: 0.992
                    title: Metaculus Monday 2/8/21
                    type: newsletter
                    updated_at: '2023-02-08T08:49:29.855Z'
                    url: https://www.astralcodexten.com/p/metaculus-monday-2821
                    visible_wordcount: 1636
                    wordcount: 1650
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            One Substack post by URL, or by publication and slug: metadata plus
            body_html and body_text. Free posts (audience everyone) are
            complete; paid posts return the publicly served preview with
            paywalled true, full_text_available false and text_coverage showing
            how much of the author's word count is visible. Custom domains are
            limited to the declared publications; paid text remains the
            anonymous preview.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `access_note` | string |  |

            | `audience` | string |  |

            | `authors` | object[] |  |

            | `body_html` | string |  |

            | `body_text` | string |  |

            | `comments` | number |  |

            | `cover_image` | string |  |

            | `description` | string |  |

            | `free_preview_sent` | boolean |  |

            | `full_text_available` | boolean |  |

            | `id` | string |  |

            | `language` | string |  |

            | `next_post_slug` | string |  |

            | `observed_at_ms` | number |  |

            | `paywalled` | boolean |  |

            | `podcast_duration_seconds` | number |  |

            | `podcast_url` | string |  |

            | `preview_text` | string |  |

            | `previous_post_slug` | string |  |

            | `publication` | object |  |

            | `publication_id` | string |  |

            | `published_at` | string |  |

            | `reactions` | number |  |

            | `restacks` | number |  |

            | `search_engine_description` | string |  |

            | `search_engine_title` | string |  |

            | `section` | object |  |

            | `slug` | string |  |

            | `source` | string |  |

            | `subtitle` | string |  |

            | `tags` | object[] |  |

            | `text_coverage` | number | visible_wordcount / wordcount, rounded
            to 3 decimals. About 1 for free posts, below 1 for paid posts. |

            | `title` | string |  |

            | `type` | string |  |

            | `updated_at` | string |  |

            | `url` | string |  |

            | `visible_wordcount` | number | Words in body_text as served to an
            anonymous reader. |

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