Initiate password reset
POST
/v1/auth/forgot-password
const url = 'https://kynectlocal-production.up.railway.app/v1/v1/auth/forgot-password';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","tenantSlug":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://kynectlocal-production.up.railway.app/v1/v1/auth/forgot-password \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "tenantSlug": "example" }'Request Body required
Section titled βRequest Body required β Media type application/json
object
email
required
string format: email
tenantSlug
required
string
Example generated
{ "email": "hello@example.com", "tenantSlug": "example"}Responses
Section titled β Responses βSuccess
Media type application/json
object
data
required
object
ok
required
Indicates the operation succeeded
boolean
Example
{ "data": { "ok": true }}Validation error
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Unauthenticated
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Forbidden
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Not found
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Unprocessable
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}