POST

Login V 2


Logs in an existing member.

Typically, after a successful login, you generate and use member tokens for the logged-in member so that subsequent API calls are called as part of a member session. Use the sessionToken in the response to get the site member's access and refresh tokens.

Endpoint
POST
https://www.wixapis.com/_api/iam/authentication/v2/login

Body Params
loginIdLoginIdRequired

Identifier of identity logging in.


passwordstring

Password of the identity logging in.


captchaTokensArray <CaptchaToken>

CAPTCHA tokens, when CAPTCHA setting is on.


clientMetaDatastruct

Additional data that's relevant for the flow.

Response Object
statestring

Current state of the login or registration process.


sessionTokenstring

Session token. If state is not SUCCESS, this field is undefined.


stateTokenstring

Token that represents the current state of the login or registration process.


identityIdentity

Identity of the current member.


additionalDataMap <string, CustomValue>format map

Additional data relevant to the login or registration process.

Request
cURL
Response
JSON
Errors
400Invalid Argument

There are 2 errors with this status code.

401Unauthenticated

There is 1 error with this status code.

403Permission Denied

There are 2 errors with this status code.

429Resource Exhausted

There is 1 error with this status code.

500Internal

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?