Skip to main content
POST
/
:projectId
/
api
/
v7
/
auth
/
sign-in
Sign In
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/auth/sign-in \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "password": "<string>"
}
'
{
  "success": true,
  "accessToken": "<string>",
  "refreshToken": "<string>",
  "user": {
    "id": "<string>",
    "foreignId": {},
    "role": "<string>",
    "email": {},
    "name": {},
    "username": {},
    "avatar": {},
    "bio": {},
    "metadata": {},
    "reputation": {},
    "isVerified": {},
    "isActive": {},
    "lastActive": {},
    "suspensions": [
      {}
    ],
    "avatarFile": {},
    "bannerFile": {},
    "authMethods": [
      "<string>"
    ],
    "createdAt": "<string>"
  }
}
Authenticates an existing user by email and password. Returns an access token, refresh token, and the user’s profile.

Body Parameters

email
string
required
User’s registered email address.
password
string
required
User’s password.

Response

success
boolean
true on successful authentication.
accessToken
string
Short-lived JWT access token. Expires in 30 minutes.
refreshToken
string
Long-lived JWT refresh token. Expires in 30 days. Use it to request a new access token when the current one expires.
user
object
The authenticated user’s profile.

Error Responses

{
  "error": "User not found.",
  "code": "auth/no-user-found"
}
{
  "error": "Invalid credentials.",
  "code": "auth/invalid-credentials"
}
Returned when the user exists but has no password set (e.g., OAuth-only account).
{
  "error": "Incorrect password.",
  "code": "auth/wrong-password"
}

See Also