auth

Log in

post/auth/login

Request body

emailstring email required
passwordstring required

Response

OK

successtrue required
msgstring required

Example response

{
  "data": {
    "user": {
      "_id": "65f1c2a4d8b9e0123456789a",
      "firstName": "Ada",
      "lastName": "Lovelace",
      "email": "ada@example.com",
      "role": [
        "admin"
      ],
      "teamId": "65f1c2a4d8b9e01234567890",
      "createdAt": "2026-04-01T10:00:00.000Z",
      "updatedAt": "2026-04-15T14:30:00.000Z"
    },
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }
}

Changes

Changed in 3 of the 38 revisions of this API.11925

  • 39082d385dda248See the full diff
    • the password request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the response's body type/format changed from / to object/ for status 200

      response-body-type-changed

    • removed the optional property details from the response with the 401 status

      response-optional-property-removed

    • removed the optional property details from the response with the 500 status

      response-optional-property-removed

    • added the new false enum value to the success response property for the response status 401

      response-property-enum-value-added

    • added the new false enum value to the success response property for the response status 500

      response-property-enum-value-added

    • request body became optional

      request-body-became-optional

    • the password request property type/format was generalized from string/password to string/

      request-property-type-generalized

    • removed SuccessResponse subschema #2 from the response body allOf list for the response status 200

      response-body-all-of-removed

    • removed the non-success response with the status 422

      response-non-success-status-removed

    • added the optional property data to the response with the 500 status

      response-optional-property-added

    • added the required property data to the response with the 200 status

      response-required-property-added

    • added the required property msg to the response with the 200 status

      response-required-property-added

    • added the required property success to the response with the 200 status

      response-required-property-added

    This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • db719f9e3d342310See the full diff
    • request body became required

      request-body-became-required

    • the response's body type/format changed from object/ to / for status 200

      response-body-type-changed

    • removed the optional property data from the response with the 200 status

      response-optional-property-removed

    • removed the optional property msg from the response with the 200 status

      response-optional-property-removed

    • removed the optional property success from the response with the 200 status

      response-optional-property-removed

    • added SuccessResponse subschema #2 to the response body allOf list for the response status 200

      response-body-all-of-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the optional property details to the response with the 422 status

      response-optional-property-added

    • added the optional property details to the response with the 500 status

      response-optional-property-added

    • the response property msg became required for the status 422

      response-property-became-required

    • the response property msg became required for the status 500

      response-property-became-required

    • the response property success became required for the status 422

      response-property-became-required

    • the response property success became required for the status 500

      response-property-became-required

    • the success response's property default value false was removed for the status 422

      response-property-default-value-removed

    • the success response's property default value false was removed for the status 500

      response-property-default-value-removed

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • b97ec6888b3c727See the full diff
    • the password request property type/format changed from string/ to string/password

      request-property-type-changed

    • the response property data became optional for the status 200

      response-property-became-optional

    • the response property msg became optional for the status 200

      response-property-became-optional

    • the response property msg became optional for the status 500

      response-property-became-optional

    • the response property success became optional for the status 200

      response-property-became-optional

    • the response property success became optional for the status 500

      response-property-became-optional

    • removed the required property data/user from the response with the 200 status

      response-required-property-removed

    • removed the optional property data from the response with the 500 status

      response-optional-property-removed

    • removed the optional property data/token from the response with the 200 status

      response-optional-property-removed

    • the password request property's minLength was decreased from 1 to 0

      request-property-min-length-decreased

    • added the non-success response with the status 422

      response-non-success-status-added

    • removed the non-success response with the status 401

      response-non-success-status-removed

    • the success response's property default value false was added for the status 500

      response-property-default-value-added

    • the success response's property default value true was added for the status 200

      response-property-default-value-added

    • removed the false enum value from the success response property for the response status 500

      response-property-enum-value-removed

    • removed the true enum value from the success response property for the response status 200

      response-property-enum-value-removed

    This revision also has 18 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog