Sign in dashboard user
Signin a Dashboard user
POST
/appid-{appId}/recipe/dashboard/signinAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
ridstringcdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonemailstringpasswordstringResponses
200Indicates success with the status property
One of:
object
statusstringAllowed:
OKsessionIdstringobject
statusstringAllowed:
USER_SUSPENDED_ERRORmessagestringobject
statusstringAllowed:
INVAlID_CREDENTIALS_ERROR400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/appid-{appId}/recipe/dashboard/signin" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "password@123"
}'const response = await fetch("/appid-{appId}/recipe/dashboard/signin", {
method: "POST",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"email": "[email protected]",
"password": "password@123"
})
});import requests
response = requests.post(
"/appid-{appId}/recipe/dashboard/signin",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"email": "[email protected]",
"password": "password@123"
},
)Response
{
"status": "OK",
"sessionId": null
}"string""Invalid API key""Not Found""Internal Error"