Skip to main content
Question

Choosing the right api for acting on a user's behalf

  • October 4, 2024
  • 1 reply
  • 9 views

Hello! I want to allow users of my platform to connect their Zapier accounts in order for my platform to execute their zaps on their behalf. Basically, scenario is as follows:

  • User gets on the platform and clicks “Connect your Zapier account”
  • Oauth 2.0 magic happens and we get the token, that can be used to act on behalf of this user
  • We are able to list zaps of this user on our platform and execute them using this token (e.g. from AI assistant that this user has created on our platform)

I’ve gone to https://zapier.com/developer-platform and set the oauth2.0 up, and I’m able to get the token which kinda works, however, I cannot access any APIs (e.g. GET https://api.zapier.com/v2/apps) as I get

{
    "errors": [
        {
            "status": "401",
            "code": "unauthenticated",
            "title": "User Not Authenticated",
            "detail": "User must be authenticated to access this resource. The provided access token may be invalid or expired.",
            "meta": {
                "source": "ZAPIER"
            }
        }
    ]
}

Could it be because my app is private? If so, is there a way to test things without making the app public?

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Forum|alt.badge.img+14

Hi @Aldres 

If you are building a Zap app integration using the Zapier Developer Platform, make sure to post in this Category: Developer Zone

https://community.zapier.com/p/developer-zone