> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.schoolset.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.schoolset.io/_mcp/server.

# List school files with filters

GET https://ssuccessv2.com/app/api/v1/services/manager/files

Returns paginated files related to current school people and supports search, filters, sorting, and pagination.

Reference: https://docs.schoolset.io/api-reference/school-set-api/file-manager-management/get-all-file-manager

## Authentication

- `Authorization` header (bearer token, required) — The signed-in SchoolSet user token sent by the frontend.

## Request

### Query parameters

- `page` (integer, optional) — Page number.
- `per_page` (integer, optional) — Items per page.
- `sort` (string, optional) — Sort field with optional leading minus.
- `filter[search]` (string, optional) — Search file names and related records.
- `filter[file_type][]` (list of string, optional) — File MIME/type values to include.
- `filter[created_by][]` (list of string, optional) — Creator names to include.
- `filter[related_to][]` (list of string, optional) — Related entity labels to include.
- `filter[student_status][]` (list of string, optional) — Student status titles to include.
- `filter[file_category][]` (list of string, optional) — File category titles to include.
- `filter[created_at][from]` (date, optional) — Lower date bound; sent as the created_at filter value.
- `filter[created_at][to]` (date, optional) — Upper date bound; sent as the created_at filter value.

## Response

### 200

Paginated file rows and pagination metadata.

- `status` (string, optional)
- `message` (string, optional)
- `data` (ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaData, optional)

## Errors

### 401 Unauthorized Error

Authentication is required.

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

### 403 Forbidden Error

User lacks student or parent viewing permission.

- `status` (string, required)
- `message` (string, required)
- `data` (any, optional, nullable)

### 422 Unprocessable Entity Error

Pagination or filter parameters failed validation.

- `message` (string, required)
- `errors` (map from string to list of string, required)

## Types

### ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaData

- `items` (list of ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaDataItemsItems, optional)
- `meta` (ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaDataMeta, optional)

### ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaDataItemsItems

- `id` (integer, optional)
- `file_original_name` (string, optional)
- `file_type` (string, optional)
- `file_mime_type` (string, optional)
- `related_to` (string, optional)
- `related_type` (string, optional)
- `model_name` (string, optional)
- `model_id` (integer, optional)
- `file_category` (ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaDataItemsItemsFileCategory, optional, nullable)
- `classification_status` (string, optional, nullable)
- `automatically_matched` (boolean, optional)
- `created_at` (datetime, optional)

### ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaDataMeta

- `current_page` (integer, optional)
- `last_page` (integer, optional)
- `per_page` (integer, optional)
- `total` (integer, optional)

### ApiV1ServicesManagerFilesGetResponsesContentApplicationJsonSchemaDataItemsItemsFileCategory

## Examples

**Response**

```json
{
  "status": "success",
  "message": "",
  "data": {
    "items": [
      {
        "id": 8421,
        "file_original_name": "enrollment-form.pdf",
        "file_type": "pdf",
        "file_mime_type": "application/pdf",
        "related_to": "Maya Rodriguez",
        "related_type": "Student",
        "model_name": "Student",
        "model_id": 301,
        "file_category": {
          "id": 4,
          "title": "Enrollment"
        },
        "classification_status": "completed",
        "automatically_matched": true,
        "created_at": {}
      }
    ],
    "meta": {
      "current_page": 1,
      "last_page": 4,
      "per_page": 25,
      "total": 86
    }
  }
}
```

**SDK Code**

```python
import requests

url = "https://ssuccessv2.com/app/api/v1/services/manager/files"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://ssuccessv2.com/app/api/v1/services/manager/files';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://ssuccessv2.com/app/api/v1/services/manager/files"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://ssuccessv2.com/app/api/v1/services/manager/files")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://ssuccessv2.com/app/api/v1/services/manager/files")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://ssuccessv2.com/app/api/v1/services/manager/files', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://ssuccessv2.com/app/api/v1/services/manager/files");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://ssuccessv2.com/app/api/v1/services/manager/files")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```