For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

To manage access durations and expiry options as code, use the p0_access_durations and p0_expiry_options resources in the P0 Terraform provider (version 0.50.0 or later).

Add a custom expiry duration

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
timenumberRequired
unitstring Β· enumRequiredPossible values:
Responses
204

Custom expiry added

No content

post/expiry-options

No content

Remove a custom expiry duration

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
keystringRequired
Responses
204

Custom expiry removed

No content

delete/expiry-options/{key}

No content

Reset custom expiry durations

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Reset expiry options

application/json
post/expiry-options/_reset

Set custom standing access duration

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
timenumberRequired
unitstring Β· enumRequiredPossible values:
Responses
200

Standing access configured

application/json
okbooleanOptional
put/standing-access-duration

Set custom maximum access duration

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
timenumberRequired
unitstring Β· enumRequiredPossible values:
Responses
200

Max access configured

application/json
okbooleanOptional
put/max-access-duration

Last updated