got the endpoint working with nonces