Neon uses 3 basic forms of authentication, depending on the use case:
For your first use of the API, we want to authenticate with your username and password from the website. Go to the API Browser, and expand the POST /secure/access-token endpoint, and hit the "Try It Out" button. That will make the request editable. Now make these changes:
Now hit the "Execute" button! If all went well, you'll get a response that looks like this:
Congrats! You have managed to generate a login token. Copy the contents of the token field, and scroll up until you see the "Authorize" button near the top of the page. Hit that button, and in the value field enter:
Bearer (your token)
So, if your token was 1234abcd, you would put Bearer 1234abcd in the field, and press "Authorize", then hit "Done"
Super-duper double dog important! Do NOT forget to put the word "Bearer" before your token. That word is how we tell that you are using a JWT token instead of a API key. If you leave it out, the API will NOT work.
Finally, test your login by expanding the GET /info/user endpoint, and hitting "Try it out", and "Execute". If you are not logged in, this endpoint won't work - but if you are, it should give you the contents of the JWT token that you just put into the authenticator.