This documentation is still a work in progress. Please contact Support to register for early access.
curl --location --request POST 'https://api.portierx.com/api/v1/access-credentials/recommendations' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"person_id": "P123",
"space_ids": ["S1", "S2", "S3", "..."],
"options": {
"include_held_by_others": true,
"sort": "best_fit"
},
"page": 1,
"limit": 20
}'{
"msg": "Retrieved item list successfully",
"data": [
{
"id": "UUID",
"name": "Option 1",
"is_recommended": true,
"credentials": [
{
"id": "uuid-cred-1",
"credential_id": "E41",
"name": "Conference Room",
"covered_spaces": [
{
"id": "uuid-cov-space-1",
"name": "Arlington Library"
},
{
"id": "uuid-cov-space-2",
"name": "Sycamore Lab"
}
]
},
{
"id": "uuid-cred-2",
"credential_id": "E42",
"name": "CEO Office",
"covered_spaces": [
{
"id": "uuid-cov-space-3",
"name": "Emerald Library"
},
{
"id": "uuid-cov-space-4",
"name": "Juniper Hall"
}
]
},
{
"id": "uuid-cred-3",
"credential_id": "E43",
"name": "Learning Center",
"covered_spaces": [
{
"id": "uuid-cov-space-5",
"name": "Conference Room"
},
{
"id": "uuid-cov-space-6",
"name": "Learning Center"
}
]
}
]
}
]
}