How to resolve 401 Api error?

I have just made a new Api and I can't get it to work. It is in the format  XXXXX-abc. I have tried with just the XX and also with the other part. I also tried using the  entire token. Each time I get back the same error below. How do I fix this issue? I am currently using curl from the Api guide. I am replacing <ACESS_TOKEN> with my given token.

curl -H "Authorization: Bearer <ACCESS_TOKEN>" https://api.youneedabudget.com/v1/budgets

 

401 Api error: 

{"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • When you create a token the full token is shown once, the XXXXX-abc tokens shown on the page https://app.youneedabudget.com/settings/developer are just so you can identify a token you might have in order to revoke it.

    You'll need to use the full token that is shown only once in your API calls.

    Like 1
    • 18059521-5301-4da6-9ab7-869db2 Thank you. I must have refresh the page and I haven't seen it at the top 

      Like 1
Like Follow
  • 3 wk agoLast active
  • 2Replies
  • 15Views
  • 2 Following