mashprime-dev Posts API

Published essays and build notes.

GitHub OpenAPI

Operations 3

GET /api/v1/posts List published blog posts, newest first #
GET /api/v1/posts/{slug} Read one blog post, including its full markdown text #
GET /api/v1/search Search blog posts by keyword across titles, descriptions, and full text #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mashprime-dev:mashprime-dev-posts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mashprime-dev-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mash Prime Posts API
  version: 1.0.0
  summary: 'Read-only API for mashprime.dev: posts, search, and site information.'
  description: 'Read-only JSON API for mashprime.dev — essays and build notes on agentic systems from Mash Prime.


    **Authentication:** none. No API keys; every endpoint is public.


    **Versioning:** the major version is in the URL path (`/api/v1/`) and echoed in the `API-Version` response header. Additive changes (new fields, endpoints, error codes) ship within a version; anything breaking ships as a new path version. A version being retired first returns a `Deprecation` header (RFC 9745) and a `Sunset` header (RFC 8594) at least 90 days before removal, with a `Link: rel="successor-version"` to its replacement.


    **Rate limits:** 60 requests per 60 seconds per client IP. Every response carries `RateLimit-Policy` and `RateLimit` (draft-ietf-httpapi-ratelimit-headers) plus `X-RateLimit-Limit/Remaining/Reset`; a 429 adds `Retry-After`.


    **Errors:** every 4xx/5xx is an RFC 9457 `application/problem+json` object with a stable machine-readable `code` and a resolution `hint`.


    **Also available:** an MCP server (streamable HTTP) at https://mashprime.dev/mcp, and a markdown variant of every page via `Accept: text/markdown`.'
  contact:
    name: Mash Prime
    url: https://mashprime.dev/contact/
servers:
- url: https://mashprime.dev
  description: Production
security: []
tags:
- name: Posts
  description: Published essays and build notes.
paths:
  /api/v1/posts:
    get:
      operationId: listPosts
      summary: List published blog posts, newest first
      security: []
      tags:
      - Posts
      description: Published posts with slug, title, description, and date, newest first. Page with limit and offset; `total` is the number of published posts. Use a slug with getPost to read the full text.
      parameters:
      - name: limit
        in: query
        required: false
        description: Maximum number of results to return (1–100). Omit to return all.
        schema:
          type: integer
          minimum: 1
          maximum: 100
      - name: offset
        in: query
        required: false
        description: Number of posts to skip before returning results, for paging. Default 0.
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: Published posts, newest first.
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            API-Version:
              $ref: '#/components/headers/API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostList'
        '400':
          description: 'Invalid input. Codes: `invalid_slug`, `missing_query`, `invalid_parameter`, `query_too_long`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: 'Rate limit exceeded. Code: `rate_limited`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: 'Unexpected server error. Code: `internal_error`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '502':
          description: 'The site''s content index could not be read. Code: `upstream_unavailable`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /api/v1/posts/{slug}:
    get:
      operationId: getPost
      summary: Read one blog post, including its full markdown text
      security: []
      tags:
      - Posts
      description: One published post by slug, including its full markdown text in the `markdown` field.
      parameters:
      - name: slug
        in: path
        required: true
        description: Post slug from listPosts, e.g. `one-folder-to-autonomy`.
        schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
          maxLength: 200
      responses:
        '200':
          description: The post and its markdown.
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            API-Version:
              $ref: '#/components/headers/API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostDetail'
        '400':
          description: 'Invalid input. Codes: `invalid_slug`, `missing_query`, `invalid_parameter`, `query_too_long`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: 'Resource not found. Codes: `not_found`, `post_not_found`, `unsupported_version`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: 'Rate limit exceeded. Code: `rate_limited`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: 'Unexpected server error. Code: `internal_error`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '502':
          description: 'The site''s content index could not be read. Code: `upstream_unavailable`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /api/v1/search:
    get:
      operationId: searchPosts
      summary: Search blog posts by keyword across titles, descriptions, and full text
      security: []
      tags:
      - Posts
      description: Keyword search across post titles, descriptions, and full text, best match first (BM25 over the site's search index; a post must contain most of the query's terms). Posts that only contain the query as a literal substring follow. Each result has a snippet around the match, or the description when the title/description matched; `total` is the number of matches before limit.
      parameters:
      - name: q
        in: query
        required: true
        description: Keyword or phrase to search for (case-insensitive).
        schema:
          type: string
          minLength: 1
          maxLength: 200
      - name: limit
        in: query
        required: false
        description: Maximum number of results to return (1–100). Omit to return all.
        schema:
          type: integer
          minimum: 1
          maximum: 100
      responses:
        '200':
          description: Matching posts (possibly none).
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            API-Version:
              $ref: '#/components/headers/API-Version'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResults'
        '400':
          description: 'Invalid input. Codes: `invalid_slug`, `missing_query`, `invalid_parameter`, `query_too_long`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: 'Rate limit exceeded. Code: `rate_limited`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: 'Unexpected server error. Code: `internal_error`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '502':
          description: 'The site''s content index could not be read. Code: `upstream_unavailable`.'
          headers:
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  headers:
    RateLimit:
      description: Remaining quota and seconds until reset for the current window, e.g. `"default";r=59;t=42`.
      schema:
        type: string
    X-RateLimit-Limit:
      description: Requests allowed per window.
      schema:
        type: integer
    Deprecation:
      description: RFC 9745. Present only once this API version is deprecated; value is the deprecation date, e.g. `@1767225600`.
      schema:
        type: string
    X-RateLimit-Reset:
      description: Unix epoch seconds when the current window resets.
      schema:
        type: integer
    RateLimit-Policy:
      description: Quota policy, e.g. `"default";q=60;w=60`.
      schema:
        type: string
    X-RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    Sunset:
      description: RFC 8594. Present only once a removal date is set; HTTP-date after which this version stops responding.
      schema:
        type: string
    Retry-After:
      description: Seconds to wait before retrying (429 responses only).
      schema:
        type: integer
    API-Version:
      description: Major API version that served the request.
      schema:
        type: string
        example: '1'
  schemas:
    PostList:
      type: object
      description: Published posts, newest first.
      properties:
        count:
          type: integer
          description: Number of posts returned in this page.
          minimum: 0
        total:
          type: integer
          description: Number of published posts in all.
          minimum: 0
        offset:
          type: integer
          description: Posts skipped before this page.
          minimum: 0
        posts:
          type: array
          description: Posts, newest first.
          items:
            $ref: '#/components/schemas/Post'
      required:
      - count
      - total
      - offset
      - posts
      additionalProperties: false
    PostDetail:
      type: object
      description: A published blog post with its full markdown text.
      properties:
        slug:
          type: string
          description: URL-safe identifier; use with GET /api/v1/posts/{slug}.
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
        title:
          type: string
          description: Post title.
        description:
          type: string
          description: One- or two-sentence summary of the post.
        date:
          type: string
          description: Publication date (YYYY-MM-DD).
          format: date
        url:
          type: string
          description: Canonical HTML URL of the post.
          format: uri
        markdown_url:
          type: string
          description: URL of the post's raw markdown.
          format: uri
        markdown:
          type: string
          description: Full post as markdown, starting with a `# Title` heading.
      required:
      - slug
      - title
      - description
      - date
      - url
      - markdown_url
      - markdown
      additionalProperties: false
    Problem:
      type: object
      description: RFC 9457 problem details, extended with a stable `code` and a resolution `hint`.
      properties:
        type:
          type: string
          description: URI identifying the problem type; resolves to its documentation.
          format: uri
        title:
          type: string
          description: Short, human-readable summary of the problem type.
        status:
          type: integer
          description: HTTP status code.
          minimum: 400
          maximum: 599
        detail:
          type: string
          description: Explanation specific to this occurrence.
        instance:
          type: string
          description: Request path (and query) that produced the problem.
        code:
          type: string
          description: Stable machine-readable error code.
          enum:
          - invalid_slug
          - missing_query
          - invalid_parameter
          - query_too_long
          - not_found
          - post_not_found
          - unsupported_version
          - method_not_allowed
          - rate_limited
          - internal_error
          - upstream_unavailable
        hint:
          type: string
          description: How to resolve the problem.
        documentation:
          type: string
          description: Link to the error reference.
          format: uri
        request_id:
          type: string
          description: Request identifier, when available; include it in bug reports.
      required:
      - type
      - title
      - status
      - detail
      - code
      - hint
    SearchResult:
      type: object
      description: A post that matched the search, with a snippet around the match.
      properties:
        slug:
          type: string
          description: URL-safe identifier; use with GET /api/v1/posts/{slug}.
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
        title:
          type: string
          description: Post title.
        description:
          type: string
          description: One- or two-sentence summary of the post.
        date:
          type: string
          description: Publication date (YYYY-MM-DD).
          format: date
        url:
          type: string
          description: Canonical HTML URL of the post.
          format: uri
        markdown_url:
          type: string
          description: URL of the post's raw markdown.
          format: uri
        snippet:
          type: string
          description: Text around the first match, or the description when the title/description matched.
      required:
      - slug
      - title
      - description
      - date
      - url
      - markdown_url
      - snippet
      additionalProperties: false
    Post:
      type: object
      description: A published blog post.
      properties:
        slug:
          type: string
          description: URL-safe identifier; use with GET /api/v1/posts/{slug}.
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
        title:
          type: string
          description: Post title.
        description:
          type: string
          description: One- or two-sentence summary of the post.
        date:
          type: string
          description: Publication date (YYYY-MM-DD).
          format: date
        url:
          type: string
          description: Canonical HTML URL of the post.
          format: uri
        markdown_url:
          type: string
          description: URL of the post's raw markdown.
          format: uri
      required:
      - slug
      - title
      - description
      - date
      - url
      - markdown_url
      additionalProperties: false
    SearchResults:
      type: object
      description: Search results.
      properties:
        query:
          type: string
          description: The query as received (trimmed).
        count:
          type: integer
          description: Number of results returned.
          minimum: 0
        total:
          type: integer
          description: Number of matches before limit.
          minimum: 0
        results:
          type: array
          description: Matching posts, best match first.
          items:
            $ref: '#/components/schemas/SearchResult'
      required:
      - query
      - count
      - total
      - results
      additionalProperties: false
externalDocs:
  description: Mash Prime developer docs
  url: https://mashprime.dev/developers/