Privileged session management — credential-injecting SSH/HTTPS brokers, recording, and audit. Auto-generated from the platform OpenAPI schema so it matches the running API.
REST API for this feature — 22 operations across 14 resource paths, auto-generated from the platform's live OpenAPI schema (drf-spectacular).
Base URL
https://<your-versus-host>/api· AuthAuthorization: Bearer <JWT>(fromPOST /api/auth/token/) · 📄 Download the OpenAPI spec for Postman/Insomnia/Swagger · see the API overview for pagination, filtering, and errors.
GET /api/psm/policies/List policys
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
ordering | query | no | string | Which field to use when ordering the results. |
page | query | no | integer | A page number within the paginated result set. |
page_size | query | no | integer | Number of results to return per page. |
search | query | no | string | A search term. |
Responses: 200 → PaginatedSessionPolicyList
POST /api/psm/policies/Create policy
Request body (application/json): SessionPolicyRequest
Responses: 201 → SessionPolicy
GET /api/psm/policies/{id}/Retrieve policy
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this session policy. |
Responses: 200 → SessionPolicy
PUT /api/psm/policies/{id}/Update policy
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this session policy. |
Request body (application/json): SessionPolicyRequest
Responses: 200 → SessionPolicy
PATCH /api/psm/policies/{id}/Update policy
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this session policy. |
Request body (application/json): PatchedSessionPolicyRequest
Responses: 200 → SessionPolicy
DELETE /api/psm/policies/{id}/Delete policy
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this session policy. |
Responses: 204
GET /api/psm/sessions/List sessions
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
ordering | query | no | string | Which field to use when ordering the results. |
page | query | no | integer | A page number within the paginated result set. |
page_size | query | no | integer | Number of results to return per page. |
search | query | no | string | A search term. |
Responses: 200 → PaginatedPrivilegedSessionList
POST /api/psm/sessions/Create session
Request body (application/json): PrivilegedSessionRequest
Responses: 201 → PrivilegedSession
GET /api/psm/sessions/machine/Read-only view of the collector machine/API sessions (TunnelSession)
Responses: 200 → PrivilegedSession
GET /api/psm/sessions/{id}/Retrieve session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Responses: 200 → PrivilegedSession
PUT /api/psm/sessions/{id}/Update session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PrivilegedSessionRequest
Responses: 200 → PrivilegedSession
PATCH /api/psm/sessions/{id}/Update session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PatchedPrivilegedSessionRequest
Responses: 200 → PrivilegedSession
DELETE /api/psm/sessions/{id}/Delete session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Responses: 204
POST /api/psm/sessions/{id}/approve/Approve: session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PrivilegedSessionRequest
Responses: 200 → PrivilegedSession
POST /api/psm/sessions/{id}/close/Close: session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PrivilegedSessionRequest
Responses: 200 → PrivilegedSession
GET /api/psm/sessions/{id}/connect/Download the one-time .rdp for an RDP session (actor-owned).
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Responses: 200 → PrivilegedSession
POST /api/psm/sessions/{id}/deny/Deny: session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PrivilegedSessionRequest
Responses: 200 → PrivilegedSession
GET /api/psm/sessions/{id}/events/Events: session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Responses: 200 → PrivilegedSession
POST /api/psm/sessions/{id}/exec/SSH session: run a command through the broker (credential injected).
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PrivilegedSessionRequest
Responses: 200 → PrivilegedSession
POST /api/psm/sessions/{id}/proxy/HTTPS session: forward a request through the broker (credential injected).
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PrivilegedSessionRequest
Responses: 200 → PrivilegedSession
GET /api/psm/sessions/{id}/recording/Recording: session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Responses: 200 → PrivilegedSession
POST /api/psm/sessions/{id}/terminate/Terminate: session
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string | A UUID string identifying this privileged session. |
Request body (application/json): PrivilegedSessionRequest
Responses: 200 → PrivilegedSession
Auto-generated from drf-spectacular OpenAPI. Endpoint descriptions come from viewset docstrings/serializers; enriching those improves this page on the next generation.