CMDBuild Forum

CMDBuild READY2USE 2.2 REST API session id

Hello,

I’m trying to get sessionId value via REST API, however the value that I’m getting in _id attribute is current. This is my query:
curl -X POST -H “Content-Type: application/json” -d ‘{“username”:“username”,“password”:“password”}’ http://127.0.0.1:8080/cmdbuild/services/rest/v3/sessions?scope=service&returnId=true

Am I doing something wrong?

curl -X POST --location ’ …/cmdbuild/services/rest/v3/sessions?scope=service&returnId=true’ --header ‘Content-Type: application/json’ --data '{“username”:“username”,“password”:“password”}’ | jq