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' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"credential_id": "AC-20250709-001",
"credential_name": "Main Entrance Badge - Floor 1",
"assigned_to": "355c800b-6f2e-4e38-99bd-bf187e4f0988",
"linked_to": [
"6e9668fb-6f81-4ce4-b98c-43e2753c5b2d",
"e6d0aba3-e77c-46e1-aebe-b805a69d337e"
],
"source": "manual"
}'{
"msg": "Access Credential successfully created.",
"data": {
"id": "f0d98cfe-e9da-4b2e-af25-6af51c8e5015",
"credential_id": "AC-20250709-002",
"credential_name": "Server Room Keycard - Level 2",
"assigned_to": {
"id": "7ea5bfec-7349-4fd1-9f04-d3fc9b128383",
"first_name": "John",
"last_name": "Schäfer",
"mobile_phone": "+447911123456",
"email": "john.schaefer@example.com"
},
"linked_to": [
{
"id": "f2820197-6af5-49ad-a98b-bd8cfc310fa1",
"name": "Main Door - Data Center East"
},
{
"id": "b7a5deeb-5a46-49e1-a22b-2c9109871540",
"name": "Rack Room Door - Zone A"
}
],
"source": "manual"
}
}