I am unsure about your use case but one thing that you can do is put the api call on a test page on a button and check the payload in the network section of the console.