List the agent's imports
curl --request GET \
--url http://localhost/mogl/mogl-backend/api/agent/roster-imports \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost/mogl/mogl-backend/api/agent/roster-imports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost/mogl/mogl-backend/api/agent/roster-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/agent/roster-imports",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/agent/roster-imports"
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(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/mogl/mogl-backend/api/agent/roster-imports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/agent/roster-imports")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 12,
"uuid": "3f0c8a52-7d4e-4f8e-9a51-2b6f0d4c1e77",
"file_name": "roster.csv",
"status": "partially_completed",
"is_complete": true,
"total_row_count": 50,
"processed_rows": 50,
"successful_count": 48,
"created_count": 45,
"linked_or_updated_count": 3,
"linked_count": 0,
"updated_count": 2,
"already_linked_count": 1,
"failed_or_conflicted_count": 2,
"can_retry": true,
"started_at": "2026-10-14 10:15:02",
"completed_at": "2026-10-14 10:15:09",
"created_at": "2026-10-14 10:15:01"
}
],
"links": {},
"meta": {
"current_page": 1,
"last_page": 10,
"per_page": 15,
"total": 150
}
}List the agent's imports
The authenticated agent’s imports, newest first. With session_id, only the import CSVBox delivered under that session: call it when the importer reports success to get the import id to poll. An empty list means MOGL has not accepted that session’s file.
GET
/
agent
/
roster-imports
List the agent's imports
curl --request GET \
--url http://localhost/mogl/mogl-backend/api/agent/roster-imports \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost/mogl/mogl-backend/api/agent/roster-imports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost/mogl/mogl-backend/api/agent/roster-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/mogl/mogl-backend/api/agent/roster-imports",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost/mogl/mogl-backend/api/agent/roster-imports"
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(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/mogl/mogl-backend/api/agent/roster-imports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/agent/roster-imports")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 12,
"uuid": "3f0c8a52-7d4e-4f8e-9a51-2b6f0d4c1e77",
"file_name": "roster.csv",
"status": "partially_completed",
"is_complete": true,
"total_row_count": 50,
"processed_rows": 50,
"successful_count": 48,
"created_count": 45,
"linked_or_updated_count": 3,
"linked_count": 0,
"updated_count": 2,
"already_linked_count": 1,
"failed_or_conflicted_count": 2,
"can_retry": true,
"started_at": "2026-10-14 10:15:02",
"completed_at": "2026-10-14 10:15:09",
"created_at": "2026-10-14 10:15:01"
}
],
"links": {},
"meta": {
"current_page": 1,
"last_page": 10,
"per_page": 15,
"total": 150
}
}Authorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Query Parameters
From POST /agent/roster-imports/session
Example:
"9b2f6a1e-2c4d-4f7e-9a51-3d8e6c0b7f21"
Example:
1
Items per page (default 10)
Example:
10