Help forum

access_token for authorised API requests in API v2

  • Miles

    2 years ago

    I'm struggling to set up the headers in v2 to send the access_token to the endpoint. I've attached an image of the set up and an image of the header xano is receiving. It's not inserting the access token. Any help is appreciated. thanks 🙂
    1301221870154027081-image.png
    1301221870833504307-image.png
    1301221870464667708-image.png
  • NoCode ProCode

    2 years ago

    Shit
  • NoCode ProCode

    2 years ago

    @Andreas Møller - Sorry, I may have added V2 in a paid template (the one with the 20h course) and people possibly have been copying it across projects.
  • Lucas G

    2 years ago

    lol
  • I guess more feedback/testing 😅
  • Andreas Møller

    2 years ago

    It is ok it adds to the mystery
  • Lucas G

    2 years ago

    @Miles v2 isn't released for public use yet. Might want to change that API to a regular one in the meantime
  • Though that part should be working just fine 🤔
  • Andreas Møller

    2 years ago

    Do you have the browser plugin installed ? And do you currently have the access_token cookie?
  • Miles

    2 years ago

    Apologies if I've shared something I shouldn't have? 😐

    @Andreas Møller yes browser is installed and I can see the access token is there.

    @NoCode ProCode I set this up myself, I have beta access.

    Is there a specific thread I should be asking about V2 in?
  • NoCode ProCode

    2 years ago

    Thank you 😉
  • NoCode ProCode

    2 years ago

    Oh ok - shit, so I spoiled the thing without need LOL
  • Andreas Møller

    2 years ago

    It looks correct. What response are you getting?
  • Miles

    2 years ago

    {"code":"ERROR_CODE_UNAUTHORIZED","message":"Invalid token.","payload":null,"traceId":"3fbd3bc0-f4dc-4a8d-9dbe-f655cdd2bcb6"}
  • Andreas Møller

    2 years ago

    Ok. Are you sure you have the right token?
  • Miles

    2 years ago

    It seems to be correct. Am I right in thinking it's not being inserted? And I should see it in the request headers?
  • Andreas Møller

    2 years ago

    No you should see the placeholder in the request in the browser
  • Is pricing turned on under advanced
  • Proxying
  • Miles

    2 years ago

    Sorry I mean in the server (not browser)
  • @Andreas Møller
    Proxying

    Miles

    2 years ago

    Will check
  • Miles

    2 years ago

    Proxy was off. Turned on. Same error
    1301264616143458424-image.png
  • 1301264687018672149-image.png
  • Miles

    2 years ago

    I think I have some issues in my server. Will review and update.
  • Miles

    2 years ago

    Yes, was an error in my server. Solved. Well technically there was nothing to solve. Oops. 🙂
  • Andreas Møller

    2 years ago

    🙂
  • Glad I couldn't help
    😂1
  • NoCode ProCode

    2 years ago

    Happy to help at OH 😉