> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capedigital.co.ke/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a banner (service-to-service)

> Auto-creates a system-wide banner for newly published content. Called by digi-content — requires a Keycloak service-account bearer token, not an end-user token.



## OpenAPI

````yaml /openapi/shared.yaml post /api/v1/banners/internal/create
openapi: 3.0.3
info:
  title: Shared Service API
  version: 1.0.0
  description: |2-

        **Shared Service API** - Comprehensive shared service and management system.

        ## Versionings
        The API uses URL path versioning (e.g., `/api/v1/`, `/api/v2/`).
        Current version: **v1**
        
  contact:
    name: API Support
    email: thakacreations@gmail.com
  license:
    name: thakacreations
servers: []
security: []
paths:
  /api/v1/banners/internal/create:
    post:
      tags:
        - banners
      summary: Create a banner (service-to-service)
      description: >-
        Auto-creates a system-wide banner for newly published content. Called by
        digi-content — requires a Keycloak service-account bearer token, not an
        end-user token.
      operationId: banners_internal_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InternalBannerCreateRequestRequest'
            examples:
              CreateRequest:
                value:
                  title: New episode
                  subtitle: Connect Inn S1E2 is out
                  entity_type: episode
                  entity_id: <uuid>
                summary: Create request
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/InternalBannerCreateRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/InternalBannerCreateRequestRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalBannerCreateResponse'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    InternalBannerCreateRequestRequest:
      type: object
      properties:
        title:
          type: string
          minLength: 1
        subtitle:
          type: string
        entity_type:
          type: string
          minLength: 1
        entity_id:
          type: string
          minLength: 1
      required:
        - entity_id
        - entity_type
        - title
    InternalBannerCreateResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          $ref: '#/components/schemas/InternalBannerCreateData'
      required:
        - data
        - message
        - success
    InternalBannerCreateData:
      type: object
      properties:
        id:
          type: string
      required:
        - id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT token in the format: Bearer <token>'

````