What is the email format

I am trying with different email formats along with your reference but nothing is working. Can you please provide me the email format for testing of api.

showing Unprocessable Entity

422 will have detailed error, what format you are sending? And what is the api response body can you please provide

There are curl examples on home page that may help you

i am generating random string using // generating random string var randomstring=Math.random().toString(36).substring(2);

console.log(randomstring) // concatinating the random string with another string var emailstring=randomstring+"@15ce-body.com"

console.log(emailstring) // assigning those strings to environment variables pm.environment.set("strmail",emailstring); pm.environment.set("strname",randomstring);

here is the body

{ "name": "{{randomstring}}", "email": "{{emailstring}}", "gender": "female", "status": "inactive" }

response body is

[ { "field": "email", "message": "is invalid" } ]

var randomstring=Math.random().toString(36).substring(2);

console.log(randomstring) var emailstring=randomstring+"@15ce-body.com"

console.log(emailstring) pm.environment.set("strmail",emailstring); pm.environment.set("strname",randomstring);

it is generating below string iw5oiogx2y8

and below email iw5oiogx2y8@15ce-body.com

sorry that's my mistake

i am assigning environment variable but i am not using that instead of env variable i am using variables assigned for those strings

thanks for your response


Little markdown supported