I don’t understand why the ticket is coming back as not authorized. It looks like this is preventing me from completing subsequent request to get the access token. What could be causing this
Can you tell us more about what you are trying to accomplish, @hanoitower ? Perhaps there’s a different workflow you could be using, or maybe this is a bug, but best to start from something like “I’m trying to programatically create access tokens so I can XXX with Netlify’s service” (but expand “XXX” as much as possible, please!) so we can give you the best advice.
The documentation here is not clear. After creating the Ticket, I had to go to Netlify App with my ticket, and authorize through the UI before I could my ticket to create the access token.
For those Personal Access Token, you can set those in an ‘Authorization’ header when invoking our API endpoints. The value will look like: Authorization: bearer <personal access token>
I also am receiving a response that has authorized: null
I’m trying to build an internal application that can create a new site and deploy it.
Should I be using a personal access token or an Oauth application?
If you expect other people will be using your app, perhaps registering an OAuth application to your account makes more sense. You can read more about that here: Use OAuth provider tokens on your site | Netlify Docs.