Authentication
Reset password with token (project-based, legacy)
Legacy token-based completion. Prefer OTP flow: use POST .../password-reset/confirm with the OTP sent to email for project-based resets.
POST
/api/auth/local/password-reset/{token}SDK setup
Create a client instance. No authentication is required for this endpoint.
import { Configuration, AuthenticationApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const authentication = new AuthenticationApi(configuration);import { Configuration, AuthenticationApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const authentication = new AuthenticationApi(configuration);Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const { data: result } = await authentication.resetLocalPassword(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
{
password: "Str0ng_Sample_Pass!w0rd",
projectId: "proj_MYil8lDqtYPR"
}
);const { data: result } = await authentication.resetLocalPassword(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
{
password: "Str0ng_Sample_Pass!w0rd",
projectId: "proj_MYil8lDqtYPR"
}
);Playground
liveTest this endpoint with your own credentials. Your requests will be sent to the live API.
No Request Yet
Send a request to see the full inspector
Authentication
Public — No Auth Required
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | — |
Request Body
json
{
"password": "NewSecurePass123!",
"projectId": "685ad30be129932fbb7a1047"
}{
"password": "NewSecurePass123!",
"projectId": "685ad30be129932fbb7a1047"
}Responses
200Password reset successful
json
{
"message": "Password reset successful"
}{
"message": "Password reset successful"
}400—
500—
Errors
| Code | Meaning |
|---|---|
400 | — |
500 | — |