Create from json post. Also print generated token to stdout.