Just-in-time settings API
The JIT Access Settings API allows organizations to define how long temporary access should last, and under what conditions. Admins can configure approvable, standing, and maximum access durations, create custom expiry presets, and enforce approval policies like requiring justifications or second-party approval. This aligns access privileges with least-privilege principles and audit requirements, without slowing teams down.
Custom expiry added
No content
Bad request
Unauthorized
POST /o/demo-org/settings/expiry-options HTTP/1.1
Host: api.p0.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"value": "text",
"time": 1,
"unit": "m"
}No content
Custom expiry removed
No content
Bad request
Unauthorized
DELETE /o/demo-org/settings/expiry-options/{key} HTTP/1.1
Host: api.p0.app
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Reset expiry options
Bad request
Unauthorized
POST /o/demo-org/settings/expiry-options/_reset HTTP/1.1
Host: api.p0.app
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"options": [
{
"value": "text",
"time": 1,
"unit": "m"
}
],
"approvableDuration": {
"value": "text",
"time": 1,
"unit": "m"
},
"maxAccessDuration": {
"value": "text",
"time": 1,
"unit": "m"
},
"standingAccessDuration": {
"value": "text",
"time": 1,
"unit": "m"
}
}Set the duration within which access requests must be approved. Requests that remain pending beyond this duration are automatically timed out.
Approvable duration configured
Bad request
Unauthorized
PUT /o/demo-org/settings/approvable-duration HTTP/1.1
Host: api.p0.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"value": "text",
"time": 1,
"unit": "m"
}{
"ok": true,
"approvableDuration": {
"value": "text",
"time": 1,
"unit": "m"
}
}Standing access configured
Bad request
Unauthorized
PUT /o/demo-org/settings/standing-access-duration HTTP/1.1
Host: api.p0.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"value": "text",
"time": 1,
"unit": "m"
}{
"ok": true,
"standingAccessDuration": {
"value": "text",
"time": 1,
"unit": "m"
}
}Max access configured
Bad request
Unauthorized
PUT /o/demo-org/settings/max-access-duration HTTP/1.1
Host: api.p0.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"value": "text",
"time": 1,
"unit": "m"
}{
"ok": true,
"maxAccessDuration": {
"value": "text",
"time": 1,
"unit": "m"
}
}Last updated