If you have a JSON API running, I’d say curl is probably the most lightweight solution.
curl -XPOST \
-H "Authorization: Bearer $(cat token)" \
http://$JSON_API_HOST/v1/parties/allocate \
-d '{}'
You can optionally pass either of (or both) identifierHint
and displayName
if those are relevant:
curl -XPOST \
-H "Authorization: Bearer $(cat token)" \
http://$JSON_API_HOST/v1/parties/allocate \
-d '{"identifierHint": "hint", "displayName": "display me"}'