PostNext Connections API

Connected social channels

GitHub OpenAPI

Operations 2

GET /api/connections List connected channels #
GET /api/connections/{provider}/{channelName}/check Check a channel connection #

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/postnext-io:postnext-io-connections-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

postnext-io-connections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostNext Public Connections API
  version: 1.0.0
  description: 'The PostNext public API lets you connect social channels, create, schedule

    and publish posts, manage media, and read analytics programmatically.


    ## Authentication

    Every request must include your API key in the `x-api-key` header. Each

    account has one key: copy it or regenerate it at

    https://postnext.io/account/api-keys. Regenerating it stops the old key

    working straight away.


    ```bash

    curl -H "x-api-key: YOUR_KEY" https://api-app.postnext.io/api/v1/account

    ```


    ## Response shapes

    Responses are JSON. Most endpoints wrap data in `{ "success": true, "data": ... }`,

    but a few return the payload at the top level for historical reasons; each

    operation below documents its exact shape. Errors are generally

    `{ "success": false, "error": { "message": "..." } }`, with a few endpoints

    adding a machine-readable `code` (noted per operation).


    ## Base URL

    All paths are relative to `https://api-app.postnext.io`. Note the mixed

    prefix: the posts, connections and assets resources are served under `/api`,

    while account and analytics are served under `/api/v1`.'
servers:
- url: https://api-app.postnext.io
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Connections
  description: Connected social channels
paths:
  /api/connections:
    get:
      tags:
      - Connections
      summary: List connected channels
      description: 'Returns a bare JSON array of the caller''s connected channels (NOT wrapped

        in the `success`/`data` envelope). Use `requiresAttention` (not

        `tokenExpiry`) to decide whether a channel needs re-authentication.'
      operationId: listConnections
      responses:
        '200':
          description: Array of connections
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Connection'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /api/connections/{provider}/{channelName}/check:
    get:
      tags:
      - Connections
      summary: Check a channel connection
      description: 'Verifies a single channel connection. The HTTP status mirrors the

        `status` field: `active` returns 200, `expired` returns 401, `invalid`

        returns 404. The body is a bare status object.'
      operationId: checkConnection
      parameters:
      - $ref: '#/components/parameters/Provider'
      - $ref: '#/components/parameters/ChannelName'
      responses:
        '200':
          description: Connection is active
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionStatus'
        '400':
          description: Missing required parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: 'Missing required parameters: provider and channelName'
        '401':
          description: Token expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionStatus'
        '404':
          description: Connection not found or unsupported provider
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionStatus'
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            message:
              type: string
        code:
          type: string
          description: Present on some endpoints only.
    Connection:
      type: object
      properties:
        channelName:
          type: string
        provider:
          $ref: '#/components/schemas/ProviderName'
        providerId:
          type: string
        createdAt:
          type: string
          format: date-time
        tokenExpiry:
          type: string
          format: date-time
        avatar:
          type:
          - string
          - 'null'
        isActive:
          type: boolean
        requiresAttention:
          type: boolean
          description: True only when a token refresh actually failed.
        uniqueId:
          type: string
    ProviderName:
      type: string
      enum:
      - twitter
      - instagram
      - linkedin
      - threads
      - youtube
      - tiktok
      - bluesky
    ConnectionStatus:
      type: object
      properties:
        status:
          type: string
          enum:
          - active
          - expired
          - invalid
          - error
        message:
          type: string
        expiresAt:
          type: string
          format: date-time
        profile:
          type:
          - object
          - 'null'
          description: Present only for twitter/instagram/threads live checks.
  parameters:
    ChannelName:
      name: channelName
      in: path
      required: true
      schema:
        type: string
      description: The channel identifier you assigned when connecting.
    Provider:
      name: provider
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/ProviderName'
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key