Skip to main content
POST
Create Access Request

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
app_id
string
required
requester_user_id
string

Override the user who made the request. If omitted, use the current user. Only available to organization admins.

target_user_id
string

User to request access for. If omitted, request for the current user.

note
string | null

[Deprecated - use business_justification] Why the user needs access.

business_justification
string | null

Why the user needs access.

expiration_in_seconds
integer | null

Once granted, how long the access should last. Omit for permanent access.

access_length
string | null

Once granted, how long the access should last. Omit for permanent access. All possible values are '2 hours', '4 hours', '8 hours', '12 hours', '1 day', '2 days', '3 days', '7 days', '14 days', '30 days', '90 days', 'Unlimited', but the exact options depend on the settings of the app and permissions.

requestable_permission_ids
string[] | null

The IDs of the requestable permissions the user is requesting access to. Omit this to just request access to the app.

Response

Successful Response

id
string
required

The ID of the access request.

app_id
string
required

The ID of the app the request is for.

app_name
string
required

The name of the app the request is for.

target_user
User · object
required

The user the request is for.

status
enum<string>
required

The current status of the request.

Available options:
PENDING,
PENDING_MANAGER_APPROVAL,
MANAGER_APPROVED,
MANAGER_DENIED,
PENDING_APPROVAL,
APPROVED,
DENIED,
EXPIRED,
CANCELLED,
PENDING_PROVISIONING,
PENDING_MANUAL_PROVISIONING,
DENIED_PROVISIONING,
PROVISIONED,
PENDING_DEPROVISIONING,
PENDING_MANUAL_DEPROVISIONING,
TIME_BASED_EXPIRED,
COMPLETED,
REVERTING,
REVERTED,
TIME_BASED_EXPIRED_FAILED,
TIME_BASED_EXPIRED_CANCELLED
requester_user
User · object | null

The user who requested access. It's possible for one user to request access on another's behalf. None for system-initiated requests, such as automated onboarding policies, that have no human requester.

supporter_user
User · object | null

The user supporting this request, if any. None if no supporter has been assigned.

notes
Notes · object

The reason the user wrote for putting the access request into the given state.

expires_at
string<date-time> | null
expiration_in_seconds
integer | null

For time-based access requests, the number of seconds after provisioning at which access should be removed. None for permanent requests.

requestable_permissions
RequestablePermissionOutput · object[] | null
requested_at
string<date-time> | null
tasks
Task · object[] | null
custom_fields
CustomIntakeFieldResponseOutput · object[] | null