immich_api_rs 1.137.3

Immich API
Documentation
# \AuthenticationApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**change_password**]AuthenticationApi.md#change_password | **POST** /auth/change-password | 
[**change_pin_code**]AuthenticationApi.md#change_pin_code | **PUT** /auth/pin-code | 
[**get_auth_status**]AuthenticationApi.md#get_auth_status | **GET** /auth/status | 
[**lock_auth_session**]AuthenticationApi.md#lock_auth_session | **POST** /auth/session/lock | 
[**login**]AuthenticationApi.md#login | **POST** /auth/login | 
[**logout**]AuthenticationApi.md#logout | **POST** /auth/logout | 
[**reset_pin_code**]AuthenticationApi.md#reset_pin_code | **DELETE** /auth/pin-code | 
[**setup_pin_code**]AuthenticationApi.md#setup_pin_code | **POST** /auth/pin-code | 
[**sign_up_admin**]AuthenticationApi.md#sign_up_admin | **POST** /auth/admin-sign-up | 
[**unlock_auth_session**]AuthenticationApi.md#unlock_auth_session | **POST** /auth/session/unlock | 
[**validate_access_token**]AuthenticationApi.md#validate_access_token | **POST** /auth/validateToken | 



## change_password

> models::UserAdminResponseDto change_password(change_password_dto)


This endpoint requires the `auth.changePassword` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**change_password_dto** | [**ChangePasswordDto**]ChangePasswordDto.md |  | [required] |

### Return type

[**models::UserAdminResponseDto**](UserAdminResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## change_pin_code

> change_pin_code(pin_code_change_dto)


This endpoint requires the `pinCode.update` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**pin_code_change_dto** | [**PinCodeChangeDto**]PinCodeChangeDto.md |  | [required] |

### Return type

 (empty response body)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_auth_status

> models::AuthStatusResponseDto get_auth_status()


### Parameters

This endpoint does not need any parameter.

### Return type

[**models::AuthStatusResponseDto**](AuthStatusResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## lock_auth_session

> lock_auth_session()


### Parameters

This endpoint does not need any parameter.

### Return type

 (empty response body)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## login

> models::LoginResponseDto login(login_credential_dto)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**login_credential_dto** | [**LoginCredentialDto**]LoginCredentialDto.md |  | [required] |

### Return type

[**models::LoginResponseDto**](LoginResponseDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## logout

> models::LogoutResponseDto logout()


### Parameters

This endpoint does not need any parameter.

### Return type

[**models::LogoutResponseDto**](LogoutResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## reset_pin_code

> reset_pin_code(pin_code_reset_dto)


This endpoint requires the `pinCode.delete` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**pin_code_reset_dto** | [**PinCodeResetDto**]PinCodeResetDto.md |  | [required] |

### Return type

 (empty response body)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## setup_pin_code

> setup_pin_code(pin_code_setup_dto)


This endpoint requires the `pinCode.create` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**pin_code_setup_dto** | [**PinCodeSetupDto**]PinCodeSetupDto.md |  | [required] |

### Return type

 (empty response body)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## sign_up_admin

> models::UserAdminResponseDto sign_up_admin(sign_up_dto)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**sign_up_dto** | [**SignUpDto**]SignUpDto.md |  | [required] |

### Return type

[**models::UserAdminResponseDto**](UserAdminResponseDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## unlock_auth_session

> unlock_auth_session(session_unlock_dto)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**session_unlock_dto** | [**SessionUnlockDto**]SessionUnlockDto.md |  | [required] |

### Return type

 (empty response body)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## validate_access_token

> models::ValidateAccessTokenResponseDto validate_access_token()


### Parameters

This endpoint does not need any parameter.

### Return type

[**models::ValidateAccessTokenResponseDto**](ValidateAccessTokenResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)