Api
Log in with email + password; starts a server-side session
On success sets the `chimely_admin` session cookie (HttpOnly, SameSite=Strict, Path=/admin). Failure returns a generic error that does not reveal which field was wrong.
On success sets the chimely_admin session cookie (HttpOnly, SameSite=Strict, Path=/admin). Failure returns a generic error that does not reveal which field was wrong.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/admin/api/login" \ -H "Content-Type: application/json" \ -d '{ "email": "string", "password": "string" }'{
"capabilities": [
"string"
],
"email": "string",
"id": "string",
"name": "string",
"role": "string"
}{
"error": {
"code": "invalid_request",
"message": "string"
}
}{
"error": {
"code": "invalid_request",
"message": "string"
}
}