How Can I Access Pipedream Data Stores via a REST API?

This topic was automatically generated from Slack. You can find the original thread here.

Hi! How can access Pipedream Data Stores via a REST API? I want to look up some values stored by my Workflow from code

Hi there, here are our docs on how you can access Data Stores from within code steps Using Data Stores

Thanks Danny for you reply. I am in Golang and I came up with a different solution hitting https://api.pipedream.com/graphql directly. Is this use case allowed? I don’t see it documented on the website or in Slack history

I’d recommend not hitting the /graphql API directly, since that’s a private API and subject to change.

Would this work?

  1. Create an HTTP-triggered workflow that’s set to issue a custom response
  2. Fetch the data you need from the data store, given the params / body of the incoming HTTP request
  3. Return the response

you can add any auth layer you want to the workflow to allow only authorized requests

Thanks ! Yes I think that will work. One of my integrations calls myStoreKeyDelete mutation, so I definitely want to add an auth layer. Not sure how to do that yet. As a lifetime requestbin user I’m not used to having so many helpful modules, this is actually really awesome now that I understand what to do next, thanks again!! Since I already got everything working and this isn’t in my hot-path, is it okay if I wait until it breaks to revisit this using the gui tooling?

What’s the volume of writes? I want to make sure it’s OK with our team, and want to make sure we don’t block you on accident, too

Less than 100 per day for this workflow. Thank you if it works out!

That should be fine, thanks. Here’s a small guide on the auth piece. You have a lot of options, since you can add any auth layer that would work in Node.js (e.g. static key, JWT, etc.)