Originate with response permission denied

I am trying to use AMI - originate command. in the manager.conf, i have created user
asterisk version 10.6.1
[test]
secret=test
read = all,system,call,cc,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write = all,system,call,agent,user,config,command,reporting,originate

curl -v "http://localhost:8088/asterisk/rawman?action=originate&

i get response back - Error, permission denied

any help?

You need to log in. I’m not sure how web sessions are defined. I would use the basic AMI over a TCP connection for the whole session.

yes, the first step is i login as the user. I got Success, Authentication accepted.

Next i call the originate then i am getting a response - Error, permission denied

How are you expecting Asterisk to know that the login and the request came from the same person?