> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://api.labelstud.io/api-reference/api-reference/projects/reimports/list/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.labelstud.io/_mcp/server. # List project reimports GET http://localhost:8000/api/projects/{id}/reimports/ List asynchronous reimport jobs for a project (paginated). Optionally filter by `status`. Use `page` / `page_size` query params. Reference: https://api.labelstud.io/api-reference/api-reference/projects/reimports/list ## Authentication - `Authorization` header (required) (prefixed with ` Token `) — The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: curl [https://label-studio-host/api/projects](https://label-studio-host/api/projects) -H "Authorization: Token \[your-token]" ## Request ### Path parameters - `id` (integer, required) — A unique integer value identifying this project. ### Query parameters - `page` (integer, optional) — Page number within the paginated result set. - `page_size` (integer, optional) — Number of results per page (max 100). - `status` (string, optional) — Filter by reimport status (created, in_progress, failed, completed). ## Response ### 200 - `count` (integer, required) - `results` (list of ProjectReimportList, required) - `next` (string, optional, nullable) - `previous` (string, optional, nullable) ## Types ### ProjectReimportList - `created_at` (datetime, required, nullable) — Creation time - `id` (integer, required) - `annotation_count` (integer, optional) - `duration` (integer, optional) - `error` (string, optional, nullable) - `file_upload_ids` (any, optional) - `finished_at` (datetime, optional, nullable) — Complete or fail time - `prediction_count` (integer, optional) - `project` (integer, optional, nullable) - `status` (enum, optional) — * `created` - Created * `in_progress` - In progress * `failed` - Failed * `completed` - Completed - Allowed values: `created`, `in_progress`, `failed`, `completed` - `task_count` (integer, optional) - `updated_at` (datetime, optional, nullable) — Last time reimport progress or terminal status was updated ## Examples **Response** ```json { "count": 123, "results": [ { "created_at": "2024-01-15T09:30:00Z", "id": 1, "annotation_count": 1, "duration": 1, "error": "string", "finished_at": "2024-01-15T09:30:00Z", "prediction_count": 1, "project": 1, "status": "created", "task_count": 1, "updated_at": "2024-01-15T09:30:00Z" } ], "next": "http://api.example.org/accounts/?page=4", "previous": "http://api.example.org/accounts/?page=2" } ``` **SDK Code** ```python import requests url = "http://localhost:8000/api/projects/1/reimports/" headers = {"Authorization": "Token "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'http://localhost:8000/api/projects/1/reimports/'; const options = {method: 'GET', headers: {Authorization: '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 := "http://localhost:8000/api/projects/1/reimports/" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "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("http://localhost:8000/api/projects/1/reimports/") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Get.new(url) request["Authorization"] = 'Token ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("http://localhost:8000/api/projects/1/reimports/") .header("Authorization", "Token ") .asString(); ``` ```php request('GET', 'http://localhost:8000/api/projects/1/reimports/', [ 'headers' => [ 'Authorization' => 'Token ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("http://localhost:8000/api/projects/1/reimports/"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Token "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Token "] let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/projects/1/reimports/")! 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() ```