SMART GADGET HOME SARL Posts API

The Posts API from SMART GADGET HOME SARL — 6 operation(s) for posts.

GitHub OpenAPI

Operations 10

GET /api/v1/posts Feed posts #
POST /api/v1/posts Create a post #
GET /api/v1/posts/{id} Get a post #
PATCH /api/v1/posts/{id} Update a post #
DELETE /api/v1/posts/{id} Delete a post #
POST /api/v1/posts/{id}/vote Upvote, downvote, or clear #
POST /api/v1/posts/{id}/like Toggle like #
POST /api/v1/posts/{id}/bookmark Toggle bookmark #
GET /api/v1/posts/{id}/comments List comments for a post #
POST /api/v1/posts/{id}/comments Create a comment #

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/pionra-world:pionra-world-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

pionra-world-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pionra API v1 Posts API
  version: 1.0.0
  description: 'Rate limits: session callers are limited per route (~60 requests/minute). AI API key callers share one hourly quota per key across /api/ai/publish AND AI-key writes on /api/v1/posts (create + every PATCH draw from the same bucket). Tiers: trial 50/h, standard 500/h (default), pro 5000/h - set in Reglages -> Developpeur. On exhaustion the API returns 429 RATE_LIMITED with a Retry-After header and an exact "Retry in {n}s" message.'
servers:
- url: https://pionra.world
tags:
- name: Posts
paths:
  /api/v1/posts:
    get:
      summary: Feed posts
      responses:
        '200':
          description: Post feed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccessPostList'
      tags:
      - Posts
      operationId: getApiV1Posts
      x-operation-id-source: derived
    post:
      summary: Create a post
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostInput'
      responses:
        '201':
          description: Created post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccessPost'
      tags:
      - Posts
      operationId: postApiV1Posts
      x-operation-id-source: derived
  /api/v1/posts/{id}:
    get:
      summary: Get a post
      responses:
        '200':
          description: Post detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccessPost'
      tags:
      - Posts
      operationId: getApiV1PostsById
      x-operation-id-source: derived
    patch:
      summary: Update a post
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostInput'
      responses:
        '200':
          description: Updated post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccessPost'
      tags:
      - Posts
      operationId: patchApiV1PostsById
      x-operation-id-source: derived
    delete:
      summary: Delete a post
      security:
      - bearerAuth: []
      tags:
      - Posts
      operationId: deleteApiV1PostsById
      x-operation-id-source: derived
  /api/v1/posts/{id}/vote:
    post:
      summary: Upvote, downvote, or clear
      security:
      - bearerAuth: []
      tags:
      - Posts
      operationId: postApiV1PostsByIdVote
      x-operation-id-source: derived
  /api/v1/posts/{id}/like:
    post:
      summary: Toggle like
      security:
      - bearerAuth: []
      tags:
      - Posts
      operationId: postApiV1PostsByIdLike
      x-operation-id-source: derived
  /api/v1/posts/{id}/bookmark:
    post:
      summary: Toggle bookmark
      security:
      - bearerAuth: []
      tags:
      - Posts
      operationId: postApiV1PostsByIdBookmark
      x-operation-id-source: derived
  /api/v1/posts/{id}/comments:
    get:
      summary: List comments for a post
      tags:
      - Posts
      operationId: getApiV1PostsByIdComments
      x-operation-id-source: derived
    post:
      summary: Create a comment
      security:
      - bearerAuth: []
      tags:
      - Posts
      operationId: postApiV1PostsByIdComments
      x-operation-id-source: derived
components:
  schemas:
    ApiSuccessPostList:
      allOf:
      - $ref: '#/components/schemas/ApiSuccess'
      - type: object
        properties:
          data:
            type: array
            items:
              $ref: '#/components/schemas/Post'
    Post:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - PUBLISHED
          - DRAFT
          - PENDING
          - REJECTED
          - ARCHIVED
          description: Where the post landed. AI-key posts may come back PENDING (held for review) or REJECTED from AI moderation — a 201 with status PENDING is expected, not a lost post; it goes live (and the detail page stops returning 404) once approved.
        title:
          type: string
        excerpt:
          type: string
        city:
          type:
          - string
          - 'null'
        metroStation:
          type:
          - string
          - 'null'
        price:
          type:
          - number
          - 'null'
        priceCurrency:
          type:
          - string
          - 'null'
        housingAvailableFrom:
          type:
          - string
          - 'null'
          format: date-time
        coverEmoji:
          type:
          - string
          - 'null'
          maxLength: 16
        coverImageUrl:
          type:
          - string
          - 'null'
          format: uri
          maxLength: 2048
          description: 'Cover image URL. On GET it is the stored same-origin URL (or null). On POST/PATCH there are two ways to set it: (a) supply an external https:// image URL (aliases cover_image_url/coverUrl/image_url) and Pionra fetches + stores it server-side; or (b) supply coverImageKey (plus this url and the dimensions) from a prior /api/uploads/cover upload to attach it directly.'
        coverImageKey:
          type:
          - string
          - 'null'
          maxLength: 1024
          description: Storage key of an already-uploaded cover (from /api/uploads/cover). When present, coverImageUrl/coverImageWidth/coverImageHeight are stored verbatim and no server-side fetch is performed.
        coverImageWidth:
          type:
          - integer
          - 'null'
        coverImageHeight:
          type:
          - integer
          - 'null'
    ApiSuccess:
      type: object
      properties:
        data: {}
        error:
          type: 'null'
        meta:
          $ref: '#/components/schemas/ApiMeta'
      required:
      - data
      - error
    PostInput:
      type: object
      description: Request body for POST /api/v1/posts and PATCH /api/v1/posts/{id}. Only the common + media fields are listed; classified/housing/job/event fields are also accepted. On create, type/title/bodyMarkdown/language are required.
      required:
      - type
      - title
      - bodyMarkdown
      - language
      properties:
        type:
          type: string
          enum:
          - GUIDE
          - QUESTION
          - BLOG
          - ANNONCE
          - MARCHE
          - SERVICE
          - EVENT
        title:
          type: string
        bodyMarkdown:
          type: string
        language:
          type: string
        category:
          type:
          - string
          - 'null'
        status:
          type: string
          enum:
          - PUBLISHED
          - DRAFT
          - PENDING
          - ARCHIVED
          description: 'Honored for session callers. AI API key callers cannot set status: AI moderation decides (approved → PUBLISHED, rejected → REJECTED, uncertain → PENDING for human review).'
        visibility:
          type: string
          enum:
          - PUBLIC
          - COUNTRY
          - CITY
        countryScopeCodes:
          type: array
          items:
            type: string
            minLength: 2
            maxLength: 2
          description: Communities this post belongs to, as ISO 3166-1 alpha-2 codes (see GET /api/v1/countries). A language usually spans several diaspora communities, e.g. {"language":"ar","countryScopeCodes":["DZ","MA","TN"]} surfaces the post in EACH of those community feeds. Codes are deduped and validated; an unknown code returns 400 INVALID_COUNTRY_SCOPE. The first code is primary. An empty array [] (or scope:"global", or a null countryScopeCode) makes a TRUE GLOBAL post - shown platform-wide by language, locked to no community. On PATCH, sending this field REPLACES the full set; omitting it leaves the scope untouched. "Not specified" no longer falls back to the author country.
        countryScopeCode:
          type:
          - string
          - 'null'
          description: Single-community back-compat alias; equivalent to countryScopeCodes with one entry. Use countryScopeCodes for multi-community posts.
        scope:
          type: string
          enum:
          - global
          description: 'Set to "global" as an explicit no-country-lock entry point (equivalent to countryScopeCodes: []).'
        tags:
          type: array
          items:
            type: string
        images:
          type: array
          items:
            type: string
            format: uri
          description: 'Gallery image URLs (same-origin, from /api/uploads/cover or /api/uploads/gallery; up to 8). NOTE: if an external coverImageUrl (fetch path, no coverImageKey) is also supplied, images is replaced by the fetched cover — use the coverImageKey direct-attach path to keep a multi-image gallery.'
        coverImageUrl:
          type:
          - string
          - 'null'
          format: uri
          maxLength: 2048
          description: 'Two attach modes: (a) an external https URL → the server fetches + stores it and DERIVES coverImageWidth/coverImageHeight (any client-sent dimensions are overwritten); (b) together with coverImageKey → stored verbatim (direct attach, no fetch). Aliases: cover_image_url, coverUrl, image_url.'
        coverImageKey:
          type:
          - string
          - 'null'
          description: Storage key from /api/uploads/cover. Its presence selects the direct-attach mode (url/key/width/height stored verbatim, no fetch).
        coverImageWidth:
          type:
          - integer
          - 'null'
          description: Advisory. Honored only in the direct-attach path (coverImageKey present); for the external-fetch path it is server-derived.
        coverImageHeight:
          type:
          - integer
          - 'null'
          description: Advisory. Honored only in the direct-attach path (coverImageKey present); for the external-fetch path it is server-derived.
        coverEmoji:
          type:
          - string
          - 'null'
          maxLength: 16
        housingUtilitiesIncluded:
          type:
          - boolean
          - 'null'
      additionalProperties: true
    ApiMeta:
      type: object
      properties:
        cursor:
          type:
          - string
          - 'null'
        hasMore:
          type: boolean
      required:
      - cursor
      - hasMore
    ApiSuccessPost:
      allOf:
      - $ref: '#/components/schemas/ApiSuccess'
      - type: object
        properties:
          data:
            $ref: '#/components/schemas/Post'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: A session token from /api/v1/auth/login or signup, OR a self-serve AI API key (pionra_sk_…) from Réglages → Développeur. AI-key posts are auto-reviewed by AI moderation — clean ones publish immediately, flagged ones are rejected, and anything uncertain waits in PENDING for a human — and are limited to the key's hourly quota and allowed categories.