ThaiProps Admin Content API

The admin-content API from ThaiProps — 5 operation(s) for admin-content.

GitHub OpenAPI

Operations 10

GET /admin/content/health Content Health #
GET /admin/content/categories List Categories #
POST /admin/content/categories Create Category #
PUT /admin/content/categories/{category_id} Update Category #
DELETE /admin/content/categories/{category_id} Delete Category #
GET /admin/content/posts List Posts #
POST /admin/content/posts Create Post #
GET /admin/content/posts/{post_id} Get Post #
PUT /admin/content/posts/{post_id} Update Post #
DELETE /admin/content/posts/{post_id} 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/thaiprops-com:thaiprops-com-admin-content-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

thaiprops-com-admin-content-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThaiProps Admin Admin Content API
  version: 0.1.0
tags:
- name: admin-content
paths:
  /admin/content/health:
    get:
      tags:
      - admin-content
      summary: Content Health
      operationId: content_health_admin_content_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /admin/content/categories:
    get:
      tags:
      - admin-content
      summary: List Categories
      operationId: list_categories_admin_content_categories_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    post:
      tags:
      - admin-content
      summary: Create Category
      operationId: create_category_admin_content_categories_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CategoryPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/content/categories/{category_id}:
    put:
      tags:
      - admin-content
      summary: Update Category
      operationId: update_category_admin_content_categories__category_id__put
      parameters:
      - name: category_id
        in: path
        required: true
        schema:
          type: integer
          title: Category Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CategoryPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - admin-content
      summary: Delete Category
      operationId: delete_category_admin_content_categories__category_id__delete
      parameters:
      - name: category_id
        in: path
        required: true
        schema:
          type: integer
          title: Category Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/content/posts:
    get:
      tags:
      - admin-content
      summary: List Posts
      operationId: list_posts_admin_content_posts_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: category_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Category Id
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Q
      - name: page
        in: query
        required: false
        schema:
          type: integer
          default: 1
          title: Page
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Per Page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - admin-content
      summary: Create Post
      operationId: create_post_admin_content_posts_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ArticlePayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /admin/content/posts/{post_id}:
    get:
      tags:
      - admin-content
      summary: Get Post
      operationId: get_post_admin_content_posts__post_id__get
      parameters:
      - name: post_id
        in: path
        required: true
        schema:
          type: integer
          title: Post Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - admin-content
      summary: Update Post
      operationId: update_post_admin_content_posts__post_id__put
      parameters:
      - name: post_id
        in: path
        required: true
        schema:
          type: integer
          title: Post Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ArticlePayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - admin-content
      summary: Delete Post
      operationId: delete_post_admin_content_posts__post_id__delete
      parameters:
      - name: post_id
        in: path
        required: true
        schema:
          type: integer
          title: Post Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ArticlePayload:
      properties:
        title:
          type: string
          maxLength: 255
          minLength: 1
          title: Title
        slug:
          type: string
          maxLength: 255
          minLength: 1
          title: Slug
        content_type:
          type: string
          title: Content Type
          default: post
        status:
          type: string
          title: Status
          default: draft
        excerpt:
          anyOf:
          - type: string
          - type: 'null'
          title: Excerpt
        tldr:
          anyOf:
          - type: string
          - type: 'null'
          title: Tldr
        body_json:
          title: Body Json
        body_html:
          anyOf:
          - type: string
          - type: 'null'
          title: Body Html
        raw_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Raw Code
        category_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Category Id
        seo_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Seo Title
        meta_description:
          anyOf:
          - type: string
          - type: 'null'
          title: Meta Description
        canonical_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Canonical Url
        og_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Og Title
        og_description:
          anyOf:
          - type: string
          - type: 'null'
          title: Og Description
        og_image:
          anyOf:
          - type: string
          - type: 'null'
          title: Og Image
        schema_type:
          type: string
          title: Schema Type
          default: Article
        faq_schema:
          title: Faq Schema
        index_status:
          type: string
          title: Index Status
          default: index
        ai_prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Ai Prompt
        ai_notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Ai Notes
        language:
          type: string
          title: Language
          default: en
        translation_group_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Translation Group Id
        author_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Author Name
        featured_image:
          anyOf:
          - type: string
          - type: 'null'
          title: Featured Image
        published_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Published At
      type: object
      required:
      - title
      - slug
      title: ArticlePayload
    CategoryPayload:
      properties:
        name:
          type: string
          maxLength: 160
          minLength: 1
          title: Name
        slug:
          type: string
          maxLength: 180
          minLength: 1
          title: Slug
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        parent_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Parent Id
        sort_order:
          type: integer
          title: Sort Order
          default: 0
        is_active:
          type: boolean
          title: Is Active
          default: true
      type: object
      required:
      - name
      - slug
      title: CategoryPayload