Vesta Backup

auth

Vesta API · 6.0.75 · Community

POST/api/v1/auth/loginLogin

Login endpoint - returns JWT token

Request body

Required

application/x-www-form-urlencoded

Schema

Body_login_api_v1_auth_login_post

Authentication

Anonymous access

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

POST/api/v1/auth/logoutLogout

Logout endpoint. JWT is stateless so this is a no-op server-side; the client clears its token.

Authentication

Responses

200

Successful Response

application/json

Schema
{}

GET/api/v1/auth/meGet Current User Info

Persisted profile only. Optional display fields are explicit JSON nulls.

Authentication

Responses

200

Successful Response

application/json

Schema
{}

GET/api/v1/auth/oidc/callbackOidc Callback

Handle OIDC callback after authentication. Exchanges code for tokens, creates/updates user, returns JWT. Redirects to frontend with token in URL fragment.

Parameters

code · query · Optional

{
  "title": "Code",
  "type": "string"
}

state · query · Optional

{
  "title": "State",
  "type": "string"
}

error · query · Optional

{
  "title": "Error",
  "type": "string"
}

error_description · query · Optional

{
  "title": "Error Description",
  "type": "string"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

GET/api/v1/auth/oidc/loginOidc Login

Initiate OIDC login flow. Redirects user to OIDC provider. Frontend should redirect to this URL or fetch it and redirect client-side. Returns: 302 redirect to OIDC provider, or 400 if OIDC not configured

Authentication

Anonymous access

Responses

200

Successful Response

application/json

Schema
{}

GET/api/v1/auth/oidc/statusGet Oidc Status

Check if OIDC is enabled and configured. Public endpoint - no auth required. Frontend uses this to show/hide SSO login button.

Authentication

Anonymous access

Responses

200

Successful Response

application/json

Schema
{}

POST/api/v1/auth/oidc/testTest Oidc Configuration

Test OIDC configuration by fetching discovery document. Requires persisted installation authority. Tests that the issuer URL is accessible and returns valid OIDC discovery metadata.

Authentication

Responses

200

Successful Response

application/json

Schema
{}

POST/api/v1/auth/refreshRefresh Token

Refresh access token. Issues a new JWT for the current user.

Authentication

Responses

200

Successful Response

application/json

Schema
{}