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

# Zeichen-Assets auflisten

> Listen Sie die Assets des authentifizierten CometAPI-Kontos auf und filtern Sie nach Gruppe oder Verarbeitungsstatus.

Listen Sie Assets des authentifizierten Kontos auf. Senden Sie das rohe Access-Token im Header `Authorization` ohne Präfix `Bearer`.

```bash theme={null}
curl \
  "https://api.cometapi.com/api/asset/assets?group_id=<GROUP_ID>&status=active" \
  -H "Authorization: $COMETAPI_ACCESS_TOKEN"
```

## Abfrageparameter

| Parameter | Beschreibung |
| - | - |
| `group_id` | Optionaler Gruppen-ID-Filter. |
| `status` | Optionaler Statusfilter. Verwenden Sie `processing`, `active` oder `failed`. |

Die Antwort gibt passende Assets in `data` zurück. Verwenden Sie nach dem Status `active` eine Asset-ID im Format `asset://<ASSET_ID>`.


## OpenAPI

````yaml api/openapi/video/seedance/get-list-character-assets.openapi.json GET /api/asset/assets
openapi: 3.1.0
info:
  title: List character assets API
  version: 1.0.0
  description: List character assets that belong to the authenticated CometAPI account.
servers:
  - url: https://api.cometapi.com
security:
  - accessTokenAuth: []
paths:
  /api/asset/assets:
    get:
      summary: List character assets
      description: >-
        List assets that belong to the authenticated account. Filter by group or
        processing status.
      operationId: seedance_list_character_assets
      parameters:
        - name: group_id
          in: query
          required: false
          schema:
            type: string
          description: Filter by group ID.
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - processing
              - active
              - failed
          description: Filter by asset status.
      responses:
        '200':
          description: Character assets returned.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - message
                  - data
                properties:
                  success:
                    type: boolean
                    description: Whether the request succeeded.
                  message:
                    type: string
                    description: Status or error message.
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/AssetView'
                    description: Array of matching records.
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    message: ''
                    data: {}
        '401':
          description: The access token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: unauthorized
      x-codeSamples:
        - lang: Shell
          label: Character asset request
          source: |-
            curl \
              "https://api.cometapi.com/api/asset/assets?group_id=<GROUP_ID>&status=active" \
              -H "Authorization: $COMETAPI_ACCESS_TOKEN"
        - lang: Python
          label: Character asset request
          source: |
            import os
            import requests

            response = requests.get(
                "https://api.cometapi.com/api/asset/assets",
                headers={"Authorization": os.environ["COMETAPI_ACCESS_TOKEN"]},
                timeout=30,
            )
            response.raise_for_status()
            print(response.json())
        - lang: JavaScript
          label: Character asset request
          source: |
            const response = await fetch(
              "https://api.cometapi.com/api/asset/assets",
              { headers: { Authorization: process.env.COMETAPI_ACCESS_TOKEN } },
            );

            if (!response.ok) throw new Error(await response.text());
            console.log(await response.json());
components:
  schemas:
    AssetView:
      type: object
      required:
        - id
        - group_id
        - asset_type
        - status
        - created_at
      properties:
        id:
          type: string
          description: CometAPI asset ID.
          example: as-example
        group_id:
          type: string
          description: Owning group ID.
          example: ag-example
        name:
          type: string
          description: Optional asset name.
        asset_type:
          type: string
          enum:
            - image
            - video
            - audio
          description: Asset media type.
        status:
          type: string
          enum:
            - processing
            - active
            - failed
          description: Asset processing status.
        fail_reason:
          type: string
          description: Sanitized failure reason when processing fails.
        created_at:
          type: integer
          description: Creation time as a Unix timestamp in seconds.
    ErrorResponse:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          description: Whether the request succeeded.
        message:
          type: string
          description: Description of the request error.
        data:
          type:
            - object
            - array
            - 'null'
          description: Error details when returned.
      additionalProperties: true
  securitySchemes:
    accessTokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Raw CometAPI access token. Do not prefix it with Bearer.

````

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