curl --request GET \
--url https://api.perscom.io/{version}/roster \
--header 'Authorization: Bearer <token>'{
"data": [
{
"name": "<string>",
"description": "<string>",
"order": 123,
"hidden": false,
"icon": "<string>",
"image": {
"name": "<string>",
"description": "<string>",
"filename": "<string>",
"path": "<string>",
"image_url": "<string>"
},
"units": [
{
"name": "<string>",
"description": "<string>",
"order": 123,
"hidden": false,
"icon": "<string>",
"image": {
"name": "<string>",
"description": "<string>",
"filename": "<string>",
"path": "<string>",
"image_url": "<string>"
},
"users": [
{
"name": "<string>",
"email": "<string>",
"email_verified_at": "2023-11-07T05:31:56Z",
"phone_number": "<string>",
"position_id": 123,
"rank_id": 123,
"specialty_id": 123,
"status_id": 123,
"unit_id": 123,
"approved": true,
"online": true,
"notes": "<string>",
"notes_updated_at": "2023-11-07T05:31:56Z",
"profile_photo": "<string>",
"profile_photo_url": "<string>",
"cover_photo": "<string>",
"cover_photo_url": "<string>",
"discord_user_id": "<string>",
"timezone": "<string>",
"last_seen_at": "2023-11-07T05:31:56Z",
"last_assignment_change_date": "2023-11-07T05:31:56Z",
"last_rank_change_date": "2023-11-07T05:31:56Z"
}
]
}
],
"id": 123
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 123,
"from": 123,
"last_page": 123,
"path": "<string>",
"per_page": 123,
"to": 123,
"total": 123
}
}The roster endpoint returns a list of groups with their associated units and users already included. The personnel are then sorted by rank, specialty, position and name to assist with creating a roster-like UI.
curl --request GET \
--url https://api.perscom.io/{version}/roster \
--header 'Authorization: Bearer <token>'{
"data": [
{
"name": "<string>",
"description": "<string>",
"order": 123,
"hidden": false,
"icon": "<string>",
"image": {
"name": "<string>",
"description": "<string>",
"filename": "<string>",
"path": "<string>",
"image_url": "<string>"
},
"units": [
{
"name": "<string>",
"description": "<string>",
"order": 123,
"hidden": false,
"icon": "<string>",
"image": {
"name": "<string>",
"description": "<string>",
"filename": "<string>",
"path": "<string>",
"image_url": "<string>"
},
"users": [
{
"name": "<string>",
"email": "<string>",
"email_verified_at": "2023-11-07T05:31:56Z",
"phone_number": "<string>",
"position_id": 123,
"rank_id": 123,
"specialty_id": 123,
"status_id": 123,
"unit_id": 123,
"approved": true,
"online": true,
"notes": "<string>",
"notes_updated_at": "2023-11-07T05:31:56Z",
"profile_photo": "<string>",
"profile_photo_url": "<string>",
"cover_photo": "<string>",
"cover_photo_url": "<string>",
"discord_user_id": "<string>",
"timezone": "<string>",
"last_seen_at": "2023-11-07T05:31:56Z",
"last_assignment_change_date": "2023-11-07T05:31:56Z",
"last_rank_change_date": "2023-11-07T05:31:56Z"
}
]
}
],
"id": 123
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 123,
"from": 123,
"last_page": 123,
"path": "<string>",
"per_page": 123,
"to": 123,
"total": 123
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The API version to use.
v1, v2 image, units, units.image, units.users, units.users.position, units.users.rank, units.users.rank.image, units.users.specialty, units.users.status, units.* OK
Show child attributes
Supports HTML.
Will be auto-calculated if nothing is provided.
A valid Heroicon.
Show child attributes
The name of the image.
255A description of the image. Supports HTML.
65535The original filename of the uploaded image.
255The storage path of the uploaded image.
255The URL to access the image.
Show child attributes
Supports HTML.
Will be auto-calculated if nothing is provided.
A valid Heroicon.
Show child attributes
The name of the image.
255A description of the image. Supports HTML.
65535The original filename of the uploaded image.
255The storage path of the uploaded image.
255The URL to access the image.
Show child attributes
Supports HTML.
Was this page helpful?