soeru Announcements (Admin) API

The Announcements (Admin) API from soeru — 5 operation(s) for announcements (admin).

GitHub OpenAPI

Operations 7

GET /api/admin/announcements List Admin Announcements #
POST /api/admin/announcements Create Announcement #
GET /api/admin/announcements/templates List Admin Templates #
GET /api/admin/announcements/{announcement_id} Get Admin Announcement #
PATCH /api/admin/announcements/{announcement_id} Update Announcement #
POST /api/admin/announcements/{announcement_id}/publish Publish Announcement #
POST /api/admin/announcements/{announcement_id}/archive Archive Announcement #

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/soeru-biz:soeru-biz-announcements-admin-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

soeru-biz-announcements-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: soeru Announcements (Admin) API
  description: AIパーソナライズ明細書メッセージ自動生成SaaS
  version: 0.1.0
tags:
- name: Announcements (Admin)
paths:
  /api/admin/announcements:
    get:
      tags:
      - Announcements (Admin)
      summary: List Admin Announcements
      description: List all announcements (draft/published/archived) for admin CMS.
      operationId: list_admin_announcements_api_admin_announcements_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 100
          title: Limit
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Announcements (Admin)
      summary: Create Announcement
      description: Create a new draft announcement.
      operationId: create_announcement_api_admin_announcements_post
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAnnouncementRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/announcements/templates:
    get:
      tags:
      - Announcements (Admin)
      summary: List Admin Templates
      description: 'Return announcement templates seeded in migration 063.


        2026-04-25 fix: ordered by ''severity'' which doesn''t exist in the table

        (actual column is ''default_severity''). Supabase returned 500. Switch to

        ordering by ''key'' for stable, deterministic listing. Also normalize the

        field shape to match the frontend Template interface (slug/title/body_md).'
      operationId: list_admin_templates_api_admin_announcements_templates_get
      parameters:
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/announcements/{announcement_id}:
    get:
      tags:
      - Announcements (Admin)
      summary: Get Admin Announcement
      description: Fetch a single announcement (including drafts/archived) for admin edit.
      operationId: get_admin_announcement_api_admin_announcements__announcement_id__get
      parameters:
      - name: announcement_id
        in: path
        required: true
        schema:
          type: string
          title: Announcement Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Announcements (Admin)
      summary: Update Announcement
      description: Update an announcement in place (edits propagate on next cache refresh).
      operationId: update_announcement_api_admin_announcements__announcement_id__patch
      parameters:
      - name: announcement_id
        in: path
        required: true
        schema:
          type: string
          title: Announcement Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAnnouncementRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/announcements/{announcement_id}/publish:
    post:
      tags:
      - Announcements (Admin)
      summary: Publish Announcement
      description: Flip status to 'published'. `published_at` is set by DB trigger.
      operationId: publish_announcement_api_admin_announcements__announcement_id__publish_post
      parameters:
      - name: announcement_id
        in: path
        required: true
        schema:
          type: string
          title: Announcement Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/announcements/{announcement_id}/archive:
    post:
      tags:
      - Announcements (Admin)
      summary: Archive Announcement
      description: Flip status to 'archived' — hides from public/admin banner.
      operationId: archive_announcement_api_admin_announcements__announcement_id__archive_post
      parameters:
      - name: announcement_id
        in: path
        required: true
        schema:
          type: string
          title: Announcement Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <token>
          title: Authorization
        description: Bearer <token>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateAnnouncementRequest:
      properties:
        slug:
          type: string
          maxLength: 120
          minLength: 3
          title: Slug
        title:
          type: string
          maxLength: 200
          minLength: 1
          title: Title
        body_md:
          type: string
          maxLength: 20000
          minLength: 1
          title: Body Md
        severity:
          type: string
          enum:
          - info
          - warning
          - critical
          title: Severity
          default: info
        audience:
          type: string
          enum:
          - admin_only
          - public_only
          - both
          title: Audience
          default: both
        starts_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Starts At
        ends_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Ends At
        incident_id:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: Incident Id
        related_links:
          items:
            $ref: '#/components/schemas/RelatedLink'
          type: array
          title: Related Links
      type: object
      required:
      - slug
      - title
      - body_md
      title: CreateAnnouncementRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    UpdateAnnouncementRequest:
      properties:
        title:
          anyOf:
          - type: string
            maxLength: 200
            minLength: 1
          - type: 'null'
          title: Title
        body_md:
          anyOf:
          - type: string
            maxLength: 20000
            minLength: 1
          - type: 'null'
          title: Body Md
        severity:
          anyOf:
          - type: string
            enum:
            - info
            - warning
            - critical
          - type: 'null'
          title: Severity
        audience:
          anyOf:
          - type: string
            enum:
            - admin_only
            - public_only
            - both
          - type: 'null'
          title: Audience
        starts_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Starts At
        ends_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Ends At
        incident_id:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: Incident Id
        related_links:
          anyOf:
          - items:
              $ref: '#/components/schemas/RelatedLink'
            type: array
          - type: 'null'
          title: Related Links
      type: object
      title: UpdateAnnouncementRequest
    RelatedLink:
      properties:
        label:
          type: string
          maxLength: 80
          minLength: 1
          title: Label
        url:
          type: string
          maxLength: 500
          minLength: 1
          title: Url
      type: object
      required:
      - label
      - url
      title: RelatedLink