Class FileListParams

  • All Implemented Interfaces:
    com.anthropic.core.Params

    
    public final class FileListParams
     implements Params
                        

    List Files

    • Constructor Detail

    • Method Detail

      • ids

         final Optional<List<String>> ids()

        Restrict the result set to Files whose id is in this list. At most 100 entries (after de-duplication). Mutually exclusive with page and limit. When supplied, the response is always a single page (next_page is null). IDs that do not resolve to a visible File — including deleted Files — are silently omitted.

      • limit

         final Optional<Long> limit()

        Number of items to return per page.

        Defaults to 20. Ranges from 1 to 1000.

      • page

         final Optional<String> page()

        Opaque page cursor returned in a prior list response's next_page. Prefixed page_.

      • scopeId

         final Optional<String> scopeId()

        Filter by scope ID. Only returns files associated with the specified scope (e.g., a session ID).

      • workspaceId

         final Optional<String> workspaceId()

        Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

        Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

      • _headers

         Headers _headers()

        The full set of headers in the parameters, including both fixed and additional headers.

      • _queryParams

         QueryParams _queryParams()

        The full set of query params in the parameters, including both fixed and additional query params.

      • _spanData

         SpanData _spanData()

        The data for the OpenTelemetry span of a call to the method with these parameters.