Forum Discussion

MishaLeong's avatar
MishaLeong
Qrew Member
5 years ago

"Invalid Application Token" error when using User Token Authentication

I'm trying to use the API_AddRecord api call, but keep getting Error Code 24: Invalid Application Token; An Application Token must be supplied.  However, I though when using a user token, Quickbase does not require an application token. Some example code of what I'm using is below. 

Any advice is much appreciated!

---
POST https://
target_domain/db/target_dbid?
Content-Type: application/xml
Content-Length:
QUICKBASE-ACTION: API_AddRecord

<qdbapi>
    <udata>mydata</udata>
    <usertoken>user_token</usertoken>
    <field fid="8">value 1</field>
    <field fid="9">value 2</field>
    <field fid="10">value 3</field>
</qdbapi>

------------------------------
Misha Leong
------------------------------

9 Replies

  • Is that your actual code where for the user token you typed

    user_token

    The user token would be a very long string.  You make a user token by going into you name at the top right, and then Preferences and then look for
    Manage User Tokens



    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • MishaLeong's avatar
      MishaLeong
      Qrew Member
      Hey Mark, sorry for the confusion. I just pasted in the generic code that's in the quickbase documentation for api calls. I have a very long string that I'm using in reality.

      ------------------------------
      Misha Leong
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Why not just use an Automation instead of a Webhook?  Or is this being called from outside Quick Base?
        Any chance there is a leading or trailing space in your usertoken?

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------