> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/iam.md). Agents can also search and read this documentation through its [MCP server](https://intuitem.gitbook.io/ciso-assistant/~gitbook/mcp).

# IAM

## GET /api/iam/auth-tokens/

> Get all personal access tokens for the user.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/auth-tokens/":{"get":{"operationId":"iam_auth_tokens_retrieve","description":"Get all personal access tokens for the user.","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/auth-tokens/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/auth-tokens/":{"post":{"operationId":"iam_auth_tokens_create","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## DELETE /api/iam/auth-tokens/{id}/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/auth-tokens/{id}/":{"delete":{"operationId":"iam_auth_tokens_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["iam"],"responses":{"204":{"description":"No response body"}}}}}}
```

## POST /api/iam/change-password/

> An endpoint for changing password.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"ChangePassword":{"type":"object","description":"Serializer for password change endpoint.","properties":{"old_password":{"type":"string","writeOnly":true,"maxLength":128},"new_password":{"type":"string","writeOnly":true,"maxLength":128},"confirm_new_password":{"type":"string","writeOnly":true,"maxLength":128}},"required":["confirm_new_password","new_password","old_password"]}}},"paths":{"/api/iam/change-password/":{"post":{"operationId":"iam_change_password_create","description":"An endpoint for changing password.","tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePassword"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ChangePassword"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ChangePassword"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePassword"}}},"description":""}}}}}}
```

## GET /api/iam/connected-apps/

> OAuth apps the current user has authorized and still holds tokens for.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/connected-apps/":{"get":{"operationId":"iam_connected_apps_retrieve","description":"OAuth apps the current user has authorized and still holds tokens for.","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## DELETE /api/iam/connected-apps/{id}/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/connected-apps/{id}/":{"delete":{"operationId":"iam_connected_apps_destroy","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["iam"],"responses":{"204":{"description":"No response body"}}}}}}
```

## GET /api/iam/connected-apps/all/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/connected-apps/all/":{"get":{"operationId":"iam_connected_apps_all_retrieve","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## DELETE /api/iam/connected-apps/all/{user\_id}/{client\_id}/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/connected-apps/all/{user_id}/{client_id}/":{"delete":{"operationId":"iam_connected_apps_all_destroy","parameters":[{"in":"path","name":"client_id","schema":{"type":"string"},"required":true},{"in":"path","name":"user_id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["iam"],"responses":{"204":{"description":"No response body"}}}}}}
```

## GET /api/iam/connected-apps/apps/{client\_id}/

> One app across all its users: what "revoke for everyone" would cut, then\
> the revocation itself. Only the selected registration: a self-registered\
> app chooses its own name, so registrations that look alike are not proven\
> to be the same app.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/connected-apps/apps/{client_id}/":{"get":{"operationId":"iam_connected_apps_apps_retrieve","description":"One app across all its users: what \"revoke for everyone\" would cut, then\nthe revocation itself. Only the selected registration: a self-registered\napp chooses its own name, so registrations that look alike are not proven\nto be the same app.","parameters":[{"in":"path","name":"client_id","schema":{"type":"string"},"required":true}],"tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## DELETE /api/iam/connected-apps/apps/{client\_id}/

> One app across all its users: what "revoke for everyone" would cut, then\
> the revocation itself. Only the selected registration: a self-registered\
> app chooses its own name, so registrations that look alike are not proven\
> to be the same app.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/connected-apps/apps/{client_id}/":{"delete":{"operationId":"iam_connected_apps_apps_destroy","description":"One app across all its users: what \"revoke for everyone\" would cut, then\nthe revocation itself. Only the selected registration: a self-registered\napp chooses its own name, so registrations that look alike are not proven\nto be the same app.","parameters":[{"in":"path","name":"client_id","schema":{"type":"string"},"required":true}],"tags":["iam"],"responses":{"204":{"description":"No response body"}}}}}}
```

## GET /api/iam/current-user/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/current-user/":{"get":{"operationId":"iam_current_user_retrieve","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/disable-mfa/

> An endpoint for disabling another user's MFA as an administrator.\
> Removes all MFA authenticators (TOTP, WebAuthn, recovery codes).\
> The user will need to enable MFA again on their next login.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"DisableMFA":{"type":"object","description":"Serializer for disabling another user's MFA as an administrator.","properties":{"user":{"type":"string","format":"uuid"}},"required":["user"]}}},"paths":{"/api/iam/disable-mfa/":{"post":{"operationId":"iam_disable_mfa_create","description":"An endpoint for disabling another user's MFA as an administrator.\nRemoves all MFA authenticators (TOTP, WebAuthn, recovery codes).\nThe user will need to enable MFA again on their next login.","tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisableMFA"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/DisableMFA"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/DisableMFA"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisableMFA"}}},"description":""}}}}}}
```

## POST /api/iam/logout/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"knoxApiToken":[]}],"components":{"securitySchemes":{"knoxApiToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Token-based authentication with required prefix \"Token\""}}},"paths":{"/api/iam/logout/":{"post":{"operationId":"iam_logout_create","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/logoutall/

> Log the user out of all sessions\
> I.E. deletes all auth tokens for the user

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"knoxApiToken":[]}],"components":{"securitySchemes":{"knoxApiToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Token-based authentication with required prefix \"Token\""}}},"paths":{"/api/iam/logoutall/":{"post":{"operationId":"iam_logoutall_create","description":"Log the user out of all sessions\nI.E. deletes all auth tokens for the user","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/iam/mcp/access/

> What the presented MCP token may do. The MCP server asks this with the\
> token itself, so it needs no secret, and it learns nothing about any other\
> credential: they are refused here.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/mcp/access/":{"get":{"operationId":"iam_mcp_access_retrieve","description":"What the presented MCP token may do. The MCP server asks this with the\ntoken itself, so it needs no secret, and it learns nothing about any other\ncredential: they are refused here.","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/password-reset/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]},{}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/password-reset/":{"post":{"operationId":"iam_password_reset_create","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/password-reset/confirm/

> API Endpoint for reset password confirm

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]},{}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/password-reset/confirm/":{"post":{"operationId":"iam_password_reset_confirm_create","description":"API Endpoint for reset password confirm","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/revoke-sessions/

> An endpoint for revoking all other user sessions (except the current one).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/revoke-sessions/":{"post":{"operationId":"iam_revoke_sessions_create","description":"An endpoint for revoking all other user sessions (except the current one).","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/iam/scim-token/

> GET  /api/iam/scim-token/   — list all SCIM tokens (admin only)\
> POST /api/iam/scim-token/   — create a new SCIM token (admin only)

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/scim-token/":{"get":{"operationId":"iam_scim_token_retrieve","description":"GET  /api/iam/scim-token/   — list all SCIM tokens (admin only)\nPOST /api/iam/scim-token/   — create a new SCIM token (admin only)","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/scim-token/

> GET  /api/iam/scim-token/   — list all SCIM tokens (admin only)\
> POST /api/iam/scim-token/   — create a new SCIM token (admin only)

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/scim-token/":{"post":{"operationId":"iam_scim_token_create","description":"GET  /api/iam/scim-token/   — list all SCIM tokens (admin only)\nPOST /api/iam/scim-token/   — create a new SCIM token (admin only)","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## DELETE /api/iam/scim-token/{token\_id}/

> DELETE /api/iam/scim-token/{token\_id}/  — revoke a SCIM token (admin only)

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/scim-token/{token_id}/":{"delete":{"operationId":"iam_scim_token_destroy","description":"DELETE /api/iam/scim-token/{token_id}/  — revoke a SCIM token (admin only)","parameters":[{"in":"path","name":"token_id","schema":{"type":"integer"},"required":true}],"tags":["iam"],"responses":{"204":{"description":"No response body"}}}}}}
```

## GET /api/iam/service-accounts/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PaginatedServiceAccountReadList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAccountRead"}}}},"ServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}},"required":["client_id","created_at","created_by","folders","id","is_global_admin","is_recursive","is_role_linked","name","permissions","role","role_name","social_app","updated_at"]},"IdentitySourceEnum":{"enum":["local","federated"],"type":"string","description":"* `local` - Local\n* `federated` - Federated"}}},"paths":{"/api/iam/service-accounts/":{"get":{"operationId":"iam_service_accounts_list","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","parameters":[{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["iam"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedServiceAccountReadList"}}},"description":""}}}}}}
```

## POST /api/iam/service-accounts/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"ServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}},"required":["client_id","created_at","created_by","folders","id","is_global_admin","is_recursive","is_role_linked","name","permissions","role","role_name","social_app","updated_at"]},"IdentitySourceEnum":{"enum":["local","federated"],"type":"string","description":"* `local` - Local\n* `federated` - Federated"}}},"paths":{"/api/iam/service-accounts/":{"post":{"operationId":"iam_service_accounts_create","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"description":""}}}}}}
```

## GET /api/iam/service-accounts/{id}/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"ServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}},"required":["client_id","created_at","created_by","folders","id","is_global_admin","is_recursive","is_role_linked","name","permissions","role","role_name","social_app","updated_at"]},"IdentitySourceEnum":{"enum":["local","federated"],"type":"string","description":"* `local` - Local\n* `federated` - Federated"}}},"paths":{"/api/iam/service-accounts/{id}/":{"get":{"operationId":"iam_service_accounts_retrieve","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["iam"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"description":""}}}}}}
```

## DELETE /api/iam/service-accounts/{id}/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/service-accounts/{id}/":{"delete":{"operationId":"iam_service_accounts_destroy","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["iam"],"responses":{"204":{"description":"No response body"}}}}}}
```

## PATCH /api/iam/service-accounts/{id}/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PatchedServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}}},"IdentitySourceEnum":{"enum":["local","federated"],"type":"string","description":"* `local` - Local\n* `federated` - Federated"},"ServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}},"required":["client_id","created_at","created_by","folders","id","is_global_admin","is_recursive","is_role_linked","name","permissions","role","role_name","social_app","updated_at"]}}},"paths":{"/api/iam/service-accounts/{id}/":{"patch":{"operationId":"iam_service_accounts_partial_update","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedServiceAccountRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedServiceAccountRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedServiceAccountRead"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"description":""}}}}}}
```

## POST /api/iam/service-accounts/{id}/rotate-secret/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"ServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}},"required":["client_id","created_at","created_by","folders","id","is_global_admin","is_recursive","is_role_linked","name","permissions","role","role_name","social_app","updated_at"]},"IdentitySourceEnum":{"enum":["local","federated"],"type":"string","description":"* `local` - Local\n* `federated` - Federated"}}},"paths":{"/api/iam/service-accounts/{id}/rotate-secret/":{"post":{"operationId":"iam_service_accounts_rotate_secret_create","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"required":true}],"tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"description":""}}}}}}
```

## GET /api/iam/service-accounts/permissions/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"ServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}},"required":["client_id","created_at","created_by","folders","id","is_global_admin","is_recursive","is_role_linked","name","permissions","role","role_name","social_app","updated_at"]},"IdentitySourceEnum":{"enum":["local","federated"],"type":"string","description":"* `local` - Local\n* `federated` - Federated"}}},"paths":{"/api/iam/service-accounts/permissions/":{"get":{"operationId":"iam_service_accounts_permissions_retrieve","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","tags":["iam"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"description":""}}}}}}
```

## GET /api/iam/service-accounts/roles/

> Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"ServiceAccountRead":{"type":"object","description":"Serializer for ServiceAccount model. Never exposes the client secret.","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":100},"description":{"type":"string","nullable":true},"identity_source":{"$ref":"#/components/schemas/IdentitySourceEnum"},"client_id":{"type":"string","readOnly":true},"social_app":{"type":"string","readOnly":true},"federated_subject":{"type":"string","nullable":true,"maxLength":255},"is_active":{"type":"boolean"},"expiry_date":{"type":"string","format":"date","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"created_by":{"type":"string","readOnly":true},"permissions":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"folders":{"type":"array","items":{"type":"object","additionalProperties":{}},"readOnly":true},"is_recursive":{"type":"boolean","readOnly":true},"previous_secret_expires_at":{"type":"string","format":"date-time","nullable":true},"secret_preview":{"type":"string","maxLength":32},"is_role_linked":{"type":"boolean","readOnly":true},"is_global_admin":{"type":"boolean","readOnly":true},"role_name":{"type":"string","nullable":true,"readOnly":true},"role":{"type":"string","nullable":true,"readOnly":true}},"required":["client_id","created_at","created_by","folders","id","is_global_admin","is_recursive","is_role_linked","name","permissions","role","role_name","social_app","updated_at"]},"IdentitySourceEnum":{"enum":["local","federated"],"type":"string","description":"* `local` - Local\n* `federated` - Federated"}}},"paths":{"/api/iam/service-accounts/roles/":{"get":{"operationId":"iam_service_accounts_roles_retrieve","description":"Admin-only management of OAuth2 service accounts; secret is returned once, on create/rotate.","tags":["iam"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountRead"}}},"description":""}}}}}}
```

## POST /api/iam/session-token/

> API Endpoint for getting the session token from an access token\
> This is needed for allauth's authentication flows.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/session-token/":{"post":{"operationId":"iam_session_token_create","description":"API Endpoint for getting the session token from an access token\nThis is needed for allauth's authentication flows.","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/iam/set-password/

> An endpoint for setting a password as an administrator.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"SetPassword":{"type":"object","description":"Serializer for password set endpoint as an administrator.","properties":{"user":{"type":"string","format":"uuid"},"new_password":{"type":"string","writeOnly":true,"maxLength":128},"confirm_new_password":{"type":"string","writeOnly":true,"maxLength":128}},"required":["confirm_new_password","new_password","user"]}}},"paths":{"/api/iam/set-password/":{"post":{"operationId":"iam_set_password_create","description":"An endpoint for setting a password as an administrator.","tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPassword"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/SetPassword"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/SetPassword"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPassword"}}},"description":""}}}}}}
```

## GET /api/iam/social-apps/

> Admin-only registry of external OIDC providers for federated service accounts.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PaginatedSocialAppReadList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/SocialAppRead"}}}},"SocialAppRead":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":40},"provider":{"type":"string","maxLength":30},"provider_id":{"type":"string","maxLength":200},"client_id":{"type":"string","description":"App ID, or consumer key","maxLength":191},"server_url":{"type":"string","readOnly":true}},"required":["client_id","id","name","provider","server_url"]}}},"paths":{"/api/iam/social-apps/":{"get":{"operationId":"iam_social_apps_list","description":"Admin-only registry of external OIDC providers for federated service accounts.","parameters":[{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["iam"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedSocialAppReadList"}}},"description":""}}}}}}
```

## POST /api/iam/social-apps/

> Admin-only registry of external OIDC providers for federated service accounts.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"SocialAppRead":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":40},"provider":{"type":"string","maxLength":30},"provider_id":{"type":"string","maxLength":200},"client_id":{"type":"string","description":"App ID, or consumer key","maxLength":191},"server_url":{"type":"string","readOnly":true}},"required":["client_id","id","name","provider","server_url"]}}},"paths":{"/api/iam/social-apps/":{"post":{"operationId":"iam_social_apps_create","description":"Admin-only registry of external OIDC providers for federated service accounts.","tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAppRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/SocialAppRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/SocialAppRead"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAppRead"}}},"description":""}}}}}}
```

## GET /api/iam/social-apps/{id}/

> Admin-only registry of external OIDC providers for federated service accounts.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"SocialAppRead":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":40},"provider":{"type":"string","maxLength":30},"provider_id":{"type":"string","maxLength":200},"client_id":{"type":"string","description":"App ID, or consumer key","maxLength":191},"server_url":{"type":"string","readOnly":true}},"required":["client_id","id","name","provider","server_url"]}}},"paths":{"/api/iam/social-apps/{id}/":{"get":{"operationId":"iam_social_apps_retrieve","description":"Admin-only registry of external OIDC providers for federated service accounts.","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"tags":["iam"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAppRead"}}},"description":""}}}}}}
```

## DELETE /api/iam/social-apps/{id}/

> Admin-only registry of external OIDC providers for federated service accounts.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/social-apps/{id}/":{"delete":{"operationId":"iam_social_apps_destroy","description":"Admin-only registry of external OIDC providers for federated service accounts.","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"tags":["iam"],"responses":{"204":{"description":"No response body"}}}}}}
```

## PATCH /api/iam/social-apps/{id}/

> Admin-only registry of external OIDC providers for federated service accounts.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PatchedSocialAppRead":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":40},"provider":{"type":"string","maxLength":30},"provider_id":{"type":"string","maxLength":200},"client_id":{"type":"string","description":"App ID, or consumer key","maxLength":191},"server_url":{"type":"string","readOnly":true}}},"SocialAppRead":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":40},"provider":{"type":"string","maxLength":30},"provider_id":{"type":"string","maxLength":200},"client_id":{"type":"string","description":"App ID, or consumer key","maxLength":191},"server_url":{"type":"string","readOnly":true}},"required":["client_id","id","name","provider","server_url"]}}},"paths":{"/api/iam/social-apps/{id}/":{"patch":{"operationId":"iam_social_apps_partial_update","description":"Admin-only registry of external OIDC providers for federated service accounts.","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"tags":["iam"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedSocialAppRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedSocialAppRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedSocialAppRead"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAppRead"}}},"description":""}}}}}}
```

## POST /api/iam/sso/logout-url/

> Resolve the IdP logout URL without sending the browser to the API.\
> \
> The SvelteKit BFF calls this server-side and redirects the browser itself,\
> so SSO logout keeps working on deployments where the API is IP-restricted.\
> Session keys travel as headers because the API cookies are not forwarded.\
> \`logout\_url\` is null when no IdP round-trip is needed, and\
> \`allauth\_session\_ended\` tells the caller whether it still has to end that\
> session itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"iam"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/iam/sso/logout-url/":{"post":{"operationId":"iam_sso_logout_url_create","description":"Resolve the IdP logout URL without sending the browser to the API.\n\nThe SvelteKit BFF calls this server-side and redirects the browser itself,\nso SSO logout keeps working on deployments where the API is IP-restricted.\nSession keys travel as headers because the API cookies are not forwarded.\n`logout_url` is null when no IdP round-trip is needed, and\n`allauth_session_ended` tells the caller whether it still has to end that\nsession itself.","tags":["iam"],"responses":{"200":{"description":"No response body"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/iam.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
