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

# List the asset library

> List reusable images and videos. Requires the READ_SOCIAL scope.



## OpenAPI

````yaml apps-api/specs/social.json GET /social-assets
openapi: 3.1.0
info:
  title: 'Salesive Apps API: Post Planner'
  version: 1.0.0
  description: >-
    Plan, schedule and publish Instagram, TikTok and LinkedIn posts from an
    installed third-party app, and read the store's connected accounts. Reads
    need `READ_SOCIAL`; writes need `WRITE_SOCIAL`; generating images with the
    store's AI credits additionally needs `USE_MERCHANT_AI`. Without that grant
    an app must supply its own media: generate the image itself and pass the
    URL, or add it through the file API, then create a manual post. The target
    store is bound to the token server-side from the installation, so never send
    a shop id.
servers:
  - url: https://api.salesive.com/api/v1
    description: Production
security:
  - AppToken: []
tags:
  - name: Post planner
    description: Planned posts, the asset library, presets and publishing.
  - name: Connected accounts
    description: Read-only view of the store's connected social accounts.
paths:
  /social-assets:
    get:
      tags:
        - Post planner
      summary: List the asset library
      description: Requires `READ_SOCIAL`.
      operationId: listSocialAssets
      parameters:
        - name: album
          in: query
          required: false
          schema:
            type: string
        - name: source
          in: query
          required: false
          schema:
            type: string
        - name: type
          in: query
          required: false
          schema:
            type: string
            enum:
              - image
              - video
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: The matching assets.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/EnvelopeBase'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          assets:
                            type: array
                            items:
                              $ref: '#/components/schemas/SocialAsset'
                          pagination:
                            $ref: '#/components/schemas/Pagination'
                          albums:
                            type: array
                            description: >-
                              Album names with their asset counts, most used
                              first.
                            items:
                              type: object
                              properties:
                                name:
                                  type:
                                    - string
                                    - 'null'
                                count:
                                  type: integer
components:
  schemas:
    EnvelopeBase:
      type: object
      description: >-
        Standard Salesive response envelope. The operation-specific payload is
        carried in `data`.
      required:
        - status
        - success
        - message
      properties:
        status:
          type: integer
        success:
          type: boolean
        message:
          type: string
    SocialAsset:
      type: object
      properties:
        _id:
          type: string
        url:
          type: string
          format: uri
        name:
          type: string
        type:
          type: string
          enum:
            - image
            - video
        album:
          type:
            - string
            - 'null'
        source:
          type: string
        createdAt:
          type: string
          format: date-time
    Pagination:
      type: object
      properties:
        total:
          type: integer
        page:
          type: integer
        limit:
          type: integer
        pages:
          type: integer
        hasNext:
          type: boolean
        hasPrev:
          type: boolean
        nextPage:
          type:
            - integer
            - 'null'
        prevPage:
          type:
            - integer
            - 'null'
  securitySchemes:
    AppToken:
      type: http
      scheme: bearer
      description: >-
        Installed-app access token (prefix app_), issued by the OAuth install
        flow. The store is bound to the token server-side, so never send a shop
        id.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.