• Retrieves all Collections.

    Parameters

    • Optional admin: boolean

      – If true, fetches from the admin endpoint

    Returns Promise<CollectionResponse[]>

    Promise resolving to an array of CollectionResponse objects

    Throws

    ErrorResponse if the request fails