JustBlogged Posts API

Blog post management

GitHub OpenAPI

Operations 5

GET /blogs/{blogId}/posts List posts #
POST /blogs/{blogId}/posts Create post #
GET /blogs/{blogId}/posts/{postId} Get post #
PATCH /blogs/{blogId}/posts/{postId} Update post #
DELETE /blogs/{blogId}/posts/{postId} Delete post #

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/justblogged-com:justblogged-com-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

justblogged-com-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: JustBlogged Posts API
  description: Content management API for JustBlogged multi-tenant blog platform
  version: 1.0.0
  contact:
    name: JustBlogged
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
- url: /api
  description: API base path
security:
- bearerAuth: []
tags:
- name: Posts
  description: Blog post management
paths:
  /blogs/{blogId}/posts:
    get:
      tags:
      - Posts
      summary: List posts
      description: Get paginated list of posts with optional filtering and sorting
      operationId: listPosts
      parameters:
      - $ref: '#/components/parameters/blogId'
      - name: page
        in: query
        schema:
          type: integer
          default: 1
          minimum: 1
      - name: limit
        in: query
        schema:
          type: integer
          default: 30
          minimum: 1
          maximum: 100
      - name: status
        in: query
        schema:
          type: string
          enum:
          - draft
          - published
          - scheduled
          - all
      - name: collectionId
        in: query
        schema:
          type: string
      - name: tagId
        in: query
        schema:
          type: string
      - name: userId
        in: query
        description: Filter by author
        schema:
          type: string
      - name: orderBy
        in: query
        schema:
          type: string
          enum:
          - createdAt
          - updatedAt
          - title
          - publishedAt
          default: createdAt
      - name: order
        in: query
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
      responses:
        '200':
          description: Paginated list of posts
          content:
            application/json:
              schema:
                type: object
                required:
                - posts
                - pagination
                properties:
                  posts:
                    type: array
                    items:
                      $ref: '#/components/schemas/Post'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      tags:
      - Posts
      summary: Create post
      description: Create a new blog post. collection_id is optional; when omitted, the blog's empty-slug default Posts collection is used. If that default does not exist, collection_id is required.
      operationId: createPost
      parameters:
      - $ref: '#/components/parameters/blogId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePostRequest'
      responses:
        '200':
          description: Created post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: Slug already exists in collection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /blogs/{blogId}/posts/{postId}:
    get:
      tags:
      - Posts
      summary: Get post
      description: Get a single post by ID
      operationId: getPost
      parameters:
      - $ref: '#/components/parameters/blogId'
      - $ref: '#/components/parameters/postId'
      responses:
        '200':
          description: Post details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Posts
      summary: Update post
      description: Update an existing post. Authors can update their own posts; admins/owners can update any post.
      operationId: updatePost
      parameters:
      - $ref: '#/components/parameters/blogId'
      - $ref: '#/components/parameters/postId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePostRequest'
      responses:
        '200':
          description: Updated post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Slug already exists in collection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      tags:
      - Posts
      summary: Delete post
      description: Delete a post. Authors can delete their own posts; admins/owners can delete any post.
      operationId: deletePost
      parameters:
      - $ref: '#/components/parameters/blogId'
      - $ref: '#/components/parameters/postId'
      responses:
        '204':
          description: Post deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    CollectionRef:
      type: object
      required:
      - id
      - name
      - slug
      - url
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        url:
          type: string
          format: uri
    Error:
      type: object
      required:
      - statusCode
      - statusMessage
      properties:
        statusCode:
          type: integer
        statusMessage:
          type: string
        message:
          type: string
    UpdatePostRequest:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 200
        slug:
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^(?!(?:[aA][dD][mM][iI][nN]|[lL][oO][gG][iI][nN]|[sS][iI][gG][nN][uU][pP]|[aA][pP][iI]|[aA][sS][sS][eE][tT][sS]|[rR][oO][bB][oO][tT][sS]\.[tT][xX][tT]|[sS][iI][tT][eE][mM][aA][pP]\.[xX][mM][lL]|[sS][iI][tT][eE][mM][aA][pP]-[iI][nN][dD][eE][xX]\.[xX][mM][lL]|[fF][eE][eE][dD]|[rR][sS][sS]|[tT][aA][gG][sS]|[tT][aA][gG]|[cC][oO][lL][lL][eE][cC][tT][iI][oO][nN][sS]|[cC][oO][lL][lL][eE][cC][tT][iI][oO][nN]|[pP][aA][gG][eE][sS]|[pP][aA][gG][eE]|[sS][iI][tT][eE][mM][aA][pP]|[sS][iI][tT][eE][mM][aA][pP][sS]|[sS][eE][aA][rR][cC][hH]|[dD][aA][sS][hH][bB][oO][aA][rR][dD]|[sS][eE][tT][tT][iI][nN][gG][sS]|[pP][rR][oO][fF][iI][lL][eE])$)(?!.*--)(?:[\p{L}\p{N}_-]+)?$
        content:
          type: string
          minLength: 1
          maxLength: 1000000
        status:
          type: string
          enum:
          - draft
          - published
        collection_id:
          type: string
        author_id:
          type: string
          minLength: 1
          description: Updated author user ID. Reassignment requires owner or admin access.
        image:
          type:
          - string
          - 'null'
          maxLength: 500
        published_at:
          type:
          - string
          - 'null'
          format: date-time
        tags:
          type: array
          items:
            type: string
            pattern: ^\s*(?=[\p{L}\p{N}_.-])[\p{L}\p{N}\s_.-]{1,50}\s*$
          maxItems: 10
        metadata:
          type: object
          maxProperties: 20
          propertyNames:
            minLength: 1
            maxLength: 50
          properties:
            description:
              type: string
              minLength: 1
              maxLength: 200
          additionalProperties:
            type: string
            minLength: 1
            maxLength: 500
    CreatePostRequest:
      type: object
      required:
      - title
      - content
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 200
        slug:
          type:
          - string
          - 'null'
          maxLength: 100
          pattern: ^(?!(?:[aA][dD][mM][iI][nN]|[lL][oO][gG][iI][nN]|[sS][iI][gG][nN][uU][pP]|[aA][pP][iI]|[aA][sS][sS][eE][tT][sS]|[rR][oO][bB][oO][tT][sS]\.[tT][xX][tT]|[sS][iI][tT][eE][mM][aA][pP]\.[xX][mM][lL]|[sS][iI][tT][eE][mM][aA][pP]-[iI][nN][dD][eE][xX]\.[xX][mM][lL]|[fF][eE][eE][dD]|[rR][sS][sS]|[tT][aA][gG][sS]|[tT][aA][gG]|[cC][oO][lL][lL][eE][cC][tT][iI][oO][nN][sS]|[cC][oO][lL][lL][eE][cC][tT][iI][oO][nN]|[pP][aA][gG][eE][sS]|[pP][aA][gG][eE]|[sS][iI][tT][eE][mM][aA][pP]|[sS][iI][tT][eE][mM][aA][pP][sS]|[sS][eE][aA][rR][cC][hH]|[dD][aA][sS][hH][bB][oO][aA][rR][dD]|[sS][eE][tT][tT][iI][nN][gG][sS]|[pP][rR][oO][fF][iI][lL][eE])$)(?!.*--)(?:[\p{L}\p{N}_-]+)?$
          description: Auto-generated from title if not provided
        content:
          type: string
          minLength: 1
          maxLength: 1000000
        status:
          type: string
          enum:
          - draft
          - published
          default: draft
        collection_id:
          type: string
          minLength: 1
          description: Optional collection ID. When omitted, the blog's empty-slug default Posts collection is used. If that default does not exist, collection_id is required.
        author_id:
          type: string
          minLength: 1
          description: Optional author user ID. Assigning another blog member requires owner or admin access.
        image:
          type:
          - string
          - 'null'
          maxLength: 500
        published_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Auto-set to now if status is published and not provided
        tags:
          type: array
          items:
            type: string
            pattern: ^\s*(?=[\p{L}\p{N}_.-])[\p{L}\p{N}\s_.-]{1,50}\s*$
          maxItems: 10
          default: []
        metadata:
          type: object
          maxProperties: 20
          propertyNames:
            minLength: 1
            maxLength: 50
          properties:
            description:
              type: string
              minLength: 1
              maxLength: 200
          additionalProperties:
            type: string
            minLength: 1
            maxLength: 500
          description: Custom metadata (max 20 fields, description max 200 chars)
    Pagination:
      type: object
      required:
      - page
      - limit
      - total
      - total_pages
      - has_next_page
      - has_prev_page
      properties:
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
        total_pages:
          type: integer
        has_next_page:
          type: boolean
        has_prev_page:
          type: boolean
    Post:
      type: object
      required:
      - id
      - title
      - url
      - slug
      - content
      - excerpt
      - status
      - created_at
      - author
      - tags
      - metadata
      properties:
        id:
          type: string
        title:
          type: string
        url:
          type: string
          format: uri
        slug:
          type: string
        content:
          type: string
          description: HTML content
        excerpt:
          type: string
          description: Auto-generated excerpt from content or metadata.description
        image:
          type:
          - string
          - 'null'
          format: uri
        status:
          type: string
          enum:
          - draft
          - published
          - scheduled
          description: scheduled is derived from published status with future published_at
        published_at:
          type:
          - string
          - 'null'
          format: date-time
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        author:
          $ref: '#/components/schemas/Author'
        collection:
          oneOf:
          - $ref: '#/components/schemas/CollectionRef'
          - type: 'null'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/TagRef'
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Custom metadata fields (max 20 fields)
    Author:
      type: object
      required:
      - id
      - name
      - bio
      - metadata
      - url
      properties:
        id:
          type: string
        name:
          type: string
        bio:
          type: string
        image:
          type:
          - string
          - 'null'
          format: uri
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Public custom author metadata (max 20 fields)
        url:
          type: string
          format: uri
          description: Public author page URL
    TagRef:
      type: object
      required:
      - id
      - name
      properties:
        id:
          type: string
        name:
          type: string
  responses:
    BadRequest:
      description: Invalid request data
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication required
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    postId:
      name: postId
      in: path
      required: true
      description: Post ID
      schema:
        type: string
    blogId:
      name: blogId
      in: path
      required: true
      description: Blog ID
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key authentication (format: jb_xxxx). Blog-scoped keys can manage only their bound blog and inherit the key owner''s current account status and blog permissions.'