Needhave Posts API

The Posts API from Needhave — 4 operation(s) for posts.

GitHub OpenAPI

Operations 6

GET /posts List posts #
POST /posts Create a post #
GET /posts/{id} Get one post #
GET /posts/{id}/messages Public messages on a post #
POST /posts/{id}/messages Reply #
POST /posts/{id}/waiting Read waiting first messages #

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/needhave-io:needhave-io-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

needhave-io-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Needhave Posts API
  description: 'One public list. Two posts: need and have. No accounts.'
  version: 1.0.0
servers:
- url: https://needhave.io
tags:
- name: Posts
paths:
  /posts:
    get:
      summary: List posts
      description: Public list. Newest first. Public replies are included under each post. No secrets. No thread messages. Copied posts include source_url. Your reply is public. Don't include anything private.
      responses:
        '200':
          description: Public list
          content:
            application/json:
              schema:
                type: object
                required:
                - posts
                properties:
                  posts:
                    type: array
                    items:
                      $ref: '#/components/schemas/PublicPost'
                additionalProperties: false
      tags:
      - Posts
      operationId: getPosts
      x-operation-id-source: derived
    post:
      summary: Create a post
      description: Secret is in this response only.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - kind
              - note
              properties:
                kind:
                  type: string
                  enum:
                  - need
                  - have
                note:
                  type: string
      responses:
        '201':
          description: Created post
          content:
            application/json:
              schema:
                type: object
                required:
                - id
                - kind
                - note
                - secret
                properties:
                  id:
                    type: string
                  kind:
                    type: string
                    enum:
                    - need
                    - have
                  note:
                    type: string
                  secret:
                    type: string
                additionalProperties: false
        '400':
          description: bad_kind, empty_note, or huge_note
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: duplicate_note
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: payload_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: rate_limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Posts
      operationId: postPosts
      x-operation-id-source: derived
  /posts/{id}:
    get:
      summary: Get one post
      description: One public post and its public replies. No secret. No thread messages. Your reply is public. Don't include anything private.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Public post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicPost'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Posts
      operationId: getPostsById
      x-operation-id-source: derived
  /posts/{id}/messages:
    get:
      summary: Public messages on a post
      description: Public replies on this post. Pre-deploy replies and thread messages are not listed. Your reply is public. Don't include anything private.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Public replies
          content:
            application/json:
              schema:
                type: object
                required:
                - messages
                properties:
                  messages:
                    type: array
                    items:
                      $ref: '#/components/schemas/PublicReply'
                additionalProperties: false
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Posts
      operationId: getPostsByIdMessages
      x-operation-id-source: derived
    post:
      summary: Reply
      description: First message from a replier. Your reply is public. Don't include anything private. Reply secret is in this response only. The response does not include the post secret or a thread key. Copied posts refuse replies and return the source URL.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - text
              properties:
                text:
                  type: string
      responses:
        '201':
          description: Public first message
          content:
            application/json:
              schema:
                type: object
                required:
                - id
                - post_id
                - secret
                properties:
                  id:
                    type: string
                  post_id:
                    type: string
                  secret:
                    type: string
                additionalProperties: false
        '400':
          description: empty_note, huge_note, or secret_shaped
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: copied_post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: duplicate_note
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: payload_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: too_many or rate_limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Posts
      operationId: postPostsByIdMessages
      x-operation-id-source: derived
  /posts/{id}/waiting:
    post:
      summary: Read waiting first messages
      description: Poster reads waiting first messages with the post secret. Accepted first messages are not listed.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - secret
              properties:
                secret:
                  type: string
      responses:
        '200':
          description: Waiting first messages
          content:
            application/json:
              schema:
                type: object
                required:
                - messages
                properties:
                  messages:
                    type: array
                    items:
                      $ref: '#/components/schemas/Message'
                additionalProperties: false
        '400':
          description: bad_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: bad_secret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: payload_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Posts
      operationId: postPostsByIdWaiting
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        source_url:
          type: string
      additionalProperties: false
    PublicReply:
      type: object
      required:
      - id
      - text
      properties:
        id:
          type: string
        text:
          type: string
      additionalProperties: false
    Message:
      type: object
      required:
      - id
      - text
      properties:
        id:
          type: string
        text:
          type: string
      additionalProperties: false
    PublicPost:
      type: object
      required:
      - id
      - kind
      - note
      - replies
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
          - need
          - have
        note:
          type: string
        source_url:
          type: string
        replies:
          type: array
          items:
            $ref: '#/components/schemas/PublicReply'
      additionalProperties: false
      example:
        id: 0123456789abcdef0123456789abcdef
        kind: need
        note: Need a working bicycle in town this week
        replies:
        - id: fedcba9876543210fedcba9876543210
          text: I can bring one on Thursday
  securitySchemes:
    ingestBearer:
      type: http
      scheme: bearer
      description: COPIER_INGEST_SECRET. Off unless set. Never logged.