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

# Get All Content

> Retrieves a list of all content items.

```bash Get All Content theme={"system"}
curl -X GET \
  'https://api.appcharge.com/v1/portal-content' \
  -H 'x-publisher-token: <x-publisher-token>'
```

```json Get All Content theme={"system"}
{
  "items": [
    {
      "id": "507f1f77bcf86cd799439011",
      "title": "Welcome to Our Game",
      "subTitle": "Everything you need to know",
      "bodyText": "This is the main content body with detailed information...",
      "headerImage": "https://cdn.example.com/images/header.jpg",
      "thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
      "labels": ["tutorial", "beginner"],
      "state": "visible",
      "contentType": "article",
      "publishDate": "2025-10-20T00:00:00.000Z",
      "slug": "welcome-to-our-game",
      "visibility": "public",
      "tag": "spring2025",
      "createdAt": "2025-10-15T10:30:00.000Z",
      "updatedAt": "2025-10-19T14:20:00.000Z",
      "pages": [
        {
          "id": "6850249eb5bd5c59b9bab7e2",
          "pageName": "FAQs"
        },
        {
          "id": "692eb70d0293e07ab4895518",
          "pageName": "Events"
        }
      ]
    },
    {
      "id": "507f1f77bcf86cd799439012",
      "title": "New Feature Release",
      "subTitle": "Check out the latest updates",
      "bodyText": "We are excited to announce new features that will enhance your gaming experience...",
      "headerImage": "https://cdn.example.com/images/news-header.jpg",
      "thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
      "labels": ["news", "updates"],
      "state": "visible",
      "contentType": "news",
      "slug": "new-feature-release",
      "visibility": "public",
      "createdAt": "2025-10-18T08:15:00.000Z",
      "updatedAt": "2025-10-20T11:45:00.000Z",
      "pages": [
        {
          "id": "692eb70d0293e07ab4895518",
          "pageName": "Events"
        }
      ]
    }
  ]
}
```

```json 401 theme={"system"}
{
  "message": "UNAUTHORIZED",
  "requestUrl": "/v1/portal-content",
  "body": "Invalid or missing publisher token."
}
```

```json 500 theme={"system"}
{
  "message": "INTERNAL_SERVER_ERROR",
  "requestUrl": "/v1/portal-content",
  "body": "Server error."
}
```


## OpenAPI

````yaml openapi-portal-content.json GET /v1/portal-content
openapi: 3.0.0
info:
  title: Portal Content API
  description: API for managing Game Portal content items.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.appcharge.com
security: []
tags: []
paths:
  /v1/portal-content:
    get:
      tags:
        - Portal Content
      summary: Get Content
      description: Retrieves a list of all content items.
      operationId: get-content
      parameters:
        - name: x-publisher-token
          required: true
          in: header
          description: Publisher token.
          schema:
            type: string
      responses:
        '200':
          description: Content retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetContentResponse'
        '401':
          description: Invalid or missing publisher token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: UNAUTHORIZED
                requestUrl: /v1/portal-content
                body: Invalid or missing publisher token.
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: INTERNAL_SERVER_ERROR
                requestUrl: /v1/portal-content
                body: Server error.
components:
  schemas:
    GetContentResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ContentItemList'
          description: List of content objects.
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Error message.
        requestUrl:
          type: string
          description: URL of the request that caused the error.
        body:
          type: string
          description: Error description.
    ContentItemList:
      type: object
      properties:
        id:
          type: string
          description: Content ID.
          example: 507f1f77bcf86cd799439011
        title:
          type: string
          description: Content title.
          example: Welcome to Our Game
        subTitle:
          type: string
          description: Content description.
          example: Everything you need to know
        bodyText:
          type: string
          description: Content body text.
          example: This is the main content body with detailed information...
        headerImage:
          type: string
          description: Content header image URL.
          example: https://cdn.example.com/images/header.jpg
        thumbnailImage:
          type: string
          description: Content thumbnail image URL.
          example: >-
            https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg
        labels:
          type: array
          items:
            type: string
          description: List of labels associated with the content.
          example:
            - tutorial
            - beginner
        state:
          type: string
          description: Current state of the content.
          default: hidden
          enum:
            - visible
            - hidden
            - scheduled
          example: hidden
        contentType:
          type: string
          enum:
            - article
            - news
          description: Content type.
          example: article
        publishDate:
          type: string
          format: date-time
          description: Content publish date. Use for scheduling content.
          example: '2025-10-20T00:00:00.000Z'
        slug:
          type: string
          description: Content slug. If not provided, this value is auto-generated.
          example: welcome-to-our-game
        visibility:
          type: string
          enum:
            - public
            - private
          description: Content visibility level.
          default: public
          example: public
        tag:
          type: string
          description: Internal tag for organizing your content. Not visible to players.
          example: spring2025
        createdAt:
          type: string
          format: date-time
          description: Created date.
          example: '2025-10-15T10:30:00.000Z'
        updatedAt:
          type: string
          format: date-time
          description: Updated date.
          example: '2025-10-19T14:20:00.000Z'
        pages:
          type: array
          items:
            $ref: '#/components/schemas/Page'
          description: List of pages where this content appears.
          example:
            - id: 68b0249eb5bd5c59b9bab7e2
              pageName: FAQs
            - id: 692eb70d0293e07ab4895518
              pageName: Events
    Page:
      type: object
      properties:
        id:
          type: string
          description: Page ID.
          example: 6850249eb5bd5c59b9bab7e2
        pageName:
          type: string
          description: Page name.
          example: faq

````