Autoposting.ai Notifications API

List, read, and manage in-app notifications and notification preferences.

Operations 6

GET /api/notifications List notifications (paginated) #
GET /api/notifications/unread-count Get unread notification count #
POST /api/notifications/{id}/read Mark a notification as read #
POST /api/notifications/read-all Mark all notifications as read #
GET /api/notifications/preferences Get notification preferences #
PUT /api/notifications/preferences Update notification preferences #

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/autoposting-ai:autoposting-ai-notifications-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

autoposting-ai-notifications-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Autoposting Notifications API
  description: 'Schedule, publish, and AI-enhance social content across X, LinkedIn, Instagram, Threads, and YouTube. All responses use the `{ "success": boolean, "data": ... }` envelope. Authenticate with an API key (`Authorization: Bearer sk-social-...` or `x-api-key: sk-social-...`).'
  version: 1.0.0
servers:
- url: https://app.autoposting.ai/api-proxy
  description: Production
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Notifications
  description: List, read, and manage in-app notifications and notification preferences.
paths:
  /api/notifications:
    get:
      tags:
      - Notifications
      operationId: listNotifications
      summary: List notifications (paginated)
      parameters:
      - name: limit
        in: query
        required: false
        description: 'Items per page. Default: 50, max: 100.'
        schema:
          type: number
          default: 50
          maximum: 100
      - name: offset
        in: query
        required: false
        description: 'Items to skip. Default: 0.'
        schema:
          type: number
          default: 0
      - name: unreadOnly
        in: query
        required: false
        description: If true, returns only unread notifications.
        schema:
          type: boolean
      responses:
        '200':
          description: List of notifications
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      notifications:
                        type: array
                        items:
                          $ref: '#/components/schemas/NotificationItem'
                      total:
                        type: integer
                example:
                  success: true
                  data:
                    notifications:
                    - id: notif_01HXYZ
                      type: post.published
                      title: Post published successfully
                      body: Your post on LinkedIn has been published.
                      read: false
                      metadata:
                        postId: post_01HXYZ
                        brandSlug: acme-corp
                        platform: linkedin
                      createdAt: '2024-01-10T09:05:00Z'
                    - id: notif_02HXYZ
                      type: post.failed
                      title: Post failed
                      body: Your post on X failed to publish. Click to retry.
                      read: true
                      metadata:
                        postId: post_02HXYZ
                        platform: x
                      createdAt: '2024-01-09T14:00:00Z'
                    total: 2
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - error
                - message
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  message:
                    type: string
                example:
                  success: false
                  error: unauthorized
                  message: Missing or invalid API key
  /api/notifications/unread-count:
    get:
      tags:
      - Notifications
      operationId: getUnreadNotificationCount
      summary: Get unread notification count
      responses:
        '200':
          description: Unread notification count
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      count:
                        type: integer
                example:
                  success: true
                  data:
                    count: 5
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - error
                - message
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  message:
                    type: string
                example:
                  success: false
                  error: unauthorized
                  message: Missing or invalid API key
  /api/notifications/{id}/read:
    post:
      tags:
      - Notifications
      operationId: markNotificationRead
      summary: Mark a notification as read
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        example: notif_01HXYZ
      responses:
        '200':
          description: Notification marked as read
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      read:
                        type: boolean
                example:
                  success: true
                  data:
                    id: notif_01HXYZ
                    read: true
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - error
                - message
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  message:
                    type: string
                example:
                  success: false
                  error: unauthorized
                  message: Missing or invalid API key
  /api/notifications/read-all:
    post:
      tags:
      - Notifications
      operationId: markAllNotificationsRead
      summary: Mark all notifications as read
      description: Marks every unread notification for the current user as read in a single call.
      responses:
        '200':
          description: All notifications marked as read
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      markedRead:
                        type: integer
                example:
                  success: true
                  data:
                    markedRead: 5
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - error
                - message
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  message:
                    type: string
                example:
                  success: false
                  error: unauthorized
                  message: Missing or invalid API key
  /api/notifications/preferences:
    get:
      tags:
      - Notifications
      operationId: getNotificationPreferences
      summary: Get notification preferences
      responses:
        '200':
          description: Notification preferences
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/NotificationPreferences'
                example:
                  success: true
                  data:
                    inApp:
                      post.published: true
                      post.failed: true
                      agent.run.completed: true
                      clip.render.completed: true
                      team.invitation: true
                    email:
                      post.published: false
                      post.failed: true
                      agent.run.completed: false
                      clip.render.completed: false
                      team.invitation: true
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - error
                - message
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  message:
                    type: string
                example:
                  success: false
                  error: unauthorized
                  message: Missing or invalid API key
    put:
      tags:
      - Notifications
      operationId: updateNotificationPreferences
      summary: Update notification preferences
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                inApp:
                  type: object
                  additionalProperties:
                    type: boolean
                  description: Map of notification event type to boolean. Only provided keys are updated.
                email:
                  type: object
                  additionalProperties:
                    type: boolean
                  description: Map of notification event type to boolean. Only provided keys are updated.
              example:
                email:
                  post.failed: true
                  post.published: false
      responses:
        '200':
          description: Updated notification preferences
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/NotificationPreferences'
                example:
                  success: true
                  data:
                    inApp:
                      post.published: true
                      post.failed: true
                      agent.run.completed: true
                      clip.render.completed: true
                      team.invitation: true
                    email:
                      post.published: false
                      post.failed: true
                      agent.run.completed: false
                      clip.render.completed: false
                      team.invitation: true
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - error
                - message
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  message:
                    type: string
                example:
                  success: false
                  error: unauthorized
                  message: Missing or invalid API key
components:
  schemas:
    NotificationEventType:
      type: string
      description: Notification event type.
      enum:
      - post.published
      - post.failed
      - agent.run.completed
      - clip.render.completed
      - team.invitation
    NotificationItem:
      type: object
      required:
      - id
      - type
      - title
      - body
      - read
      - createdAt
      properties:
        id:
          type: string
          example: notif_01HXYZ
        type:
          $ref: '#/components/schemas/NotificationEventType'
        title:
          type: string
          example: Post published successfully
        body:
          type: string
          example: Your post on LinkedIn has been published.
        read:
          type: boolean
          example: false
        metadata:
          type: object
          additionalProperties: true
          description: Event-specific metadata (e.g. postId, brandSlug, platform).
          example:
            postId: post_01HXYZ
            brandSlug: acme-corp
            platform: linkedin
        createdAt:
          type: string
          format: date-time
          example: '2024-01-10T09:05:00Z'
    NotificationPreferences:
      type: object
      description: Per-channel map of notification event type to enabled boolean.
      properties:
        inApp:
          type: object
          additionalProperties:
            type: boolean
        email:
          type: object
          additionalProperties:
            type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key as `Authorization: Bearer sk-social-...`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API key as `x-api-key: sk-social-...`'