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

# project.listFiles

> Lists files attached to a project from newest to oldest. Project web links are excluded.

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

> [!TIP]
>
> **Auth:**
>
> * **API Key:** Full access.
> * **Standard OAuth client:** Requires `manage_all_tasks`. `create_project` alone is not sufficient.
> * **Trusted client:** Full access.
>
> The user must own the project or be a project member. Otherwise, the request returns `404 not_found`.

## Behavior

* Returns files attached to the project ordered from newest to oldest. Project web links are excluded.
* Use `limit` (default `20`, range `1–200`) and pass `next_cursor` as `cursor` while `has_more` is `true`.

## Errors

| Status | Cause |
| - | - |
| `400 invalid_argument` | `project_id` is missing, `limit` is outside `1–200`, or `cursor` is malformed. |
| `403 permission_denied` | A Standard OAuth client lacks `manage_all_tasks`. |
| `404 not_found` | The project does not exist or the user is not a member. |
| `429 resource_exhausted` | The `project.listFiles` limit was exceeded; see [Rate Limits](https://open.manus.ai/docs/v2/rate-limits.md). |


## OpenAPI

````yaml GET /v2/project.listFiles
openapi: 3.1.0
info:
  title: Manus OpenAPI v2
  description: >-
    API for integrating Manus into your workflow. All responses are wrapped with
    {"ok": true, "request_id": "...", ...} for success and {"ok": false,
    "request_id": "...", "error": {"code": "...", "message": "..."}} for errors.
  version: 2.0.0
servers:
  - url: https://api.manus.ai
security:
  - ApiKeyAuth: []
paths:
  /v2/project.listFiles:
    get:
      summary: ListProjectFiles
      description: >-
        Lists files attached to a project from newest to oldest. Project web
        links are excluded.
      operationId: openapi.v2.OpenapiV2Service.ListProjectFiles
      parameters:
        - name: x-manus-api-key
          in: header
          required: false
          schema:
            type: string
          description: >-
            API key for direct authentication. Provide either this or
            `Authorization`, not both. See
            [Authentication](https://open.manus.ai/docs/v2/authentication).
        - name: Authorization
          in: header
          required: false
          schema:
            type: string
            example: Bearer {access_token}
          description: >-
            OAuth2 access token in `Bearer {token}` format. An OAuth client
            requires the `manage_all_tasks` scope unless it is a `Trusted team
            client` or `Trusted public client`; `create_project` alone is not
            sufficient. Provide either this or `x-manus-api-key`, not both. See
            the [Open App](https://open.manus.ai/docs/v2/open-app) guide.
        - name: project_id
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 65
          description: >-
            The unique identifier of the project. Use
            [project.list](https://open.manus.ai/docs/v2/project.list) to get
            project IDs.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 20
          description: Maximum number of files to return per page (1–200, default 20).
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            maxLength: 256
          description: >-
            Opaque pagination cursor returned as `next_cursor` by a previous
            `project.listFiles` response.
      responses:
        '200':
          description: Project files retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                    description: Whether the request was successful.
                  request_id:
                    type: string
                    description: Unique identifier for this API request.
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ProjectFile'
                    description: >-
                      Array of project files. Omitted when the project has no
                      files; treat absence as an empty array.
                  has_more:
                    type: boolean
                    description: Whether additional pages are available.
                  next_cursor:
                    type: string
                    description: >-
                      Cursor to pass to the next request when `has_more` is
                      `true`.
                required:
                  - ok
                  - request_id
                  - has_more
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    ProjectFile:
      type: object
      properties:
        id:
          type: string
          description: Unique project file identifier.
        filename:
          type: string
          description: Display filename stored in the project.
        bytes:
          type: string
          pattern: ^[0-9]+$
          example: '1024'
          description: File size in bytes, encoded as a decimal string. Omitted when 0.
        created_at:
          type: string
          pattern: ^[0-9]+$
          example: '1732512000'
          description: >-
            Unix timestamp (seconds) when the file was added to the project,
            encoded as a decimal string.
      required:
        - id
        - filename
        - created_at
    ErrorResponse:
      type: object
      description: Standard error response format returned when a request fails.
      properties:
        ok:
          type: boolean
          example: false
          description: Always false for error responses.
        request_id:
          type: string
          description: >-
            Unique identifier for this API request, useful for debugging with
            support.
        error:
          type: object
          description: Error details.
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code (e.g., "invalid_argument",
                "not_found", "permission_denied", "rate_limited").
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-manus-api-key

````

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