AuthenticationSign in
Authentication

Sign in

Authenticates a user and returns a JWT token.

curl -X POST "https://api.neostra.io/api/v1/auth/signin" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "admin@acmecorp.com",
  "password": "example_string"
}'
{
  "status": 200,
  "message": "Success",
  "data": {
    "token": "example_string",
    "refreshToken": "example_string",
    "expiresIn": 3600,
    "user": {
      "id": "example_string",
      "email": "user@example.com",
      "name": "John Doe",
      "roles": [
        "example_string"
      ]
    }
  },
  "errors": [
    "example_string"
  ]
}
POST
/api/v1/auth/signin
POST
Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring
Required

User email address

Format: email
passwordstring
Required

User password

Format: password
Request Preview
Response

Response will appear here after sending the request

Body

application/json
emailstring
Required

User email address

Responses

statusinteger

HTTP status code

messagestring

Response message

dataobject
errorsstring[]

List of error details, if any