This topic was automatically generated from Slack. You can find the original thread here.
Issue: Clarification Needed on Pipedream Connection and API Integration
We are working on a demo project using Next.js and integrating the API, and I have encountered a few issues that I’d like to clarify. Below are the details:
- Connection Token vs API Key
Upon cloning the demo project and running it, I observed the following:
- The connection token (
ctok_b1515e58108ef37dcba79330eff4997****
) is generated correctly (https://i.postimg.cc/B66s33vR/image.png) - However, when I call the
getAppInfo
API using"/apps/${nameSlug}"
, it returns an “Invalid Token” error. - When I use the API key from the settings (https://i.postimg.cc/zBbhf9tP/image.png), the API works as expected.
Could you please clarify the following:
-
What is the purpose of the connection-token (
ctok
), and how should it be used in this flow? -
How can I fix this token issue to make the
getAppInfo
API work? -
Is the API key from the settings the preferred method? If yes, how can I retrieve this API key programmatically? (https://i.postimg.cc/zBbhf9tP/image.png)
2. OAuth and Authentication Flow
Using the client ID and secret from the API settings, I have successfully set up the authentication flow (https://i.postimg.cc/prZw71fq/image.png).
However, I need guidance on triggering events, such as when a user creates a sheet or schedules a meeting.
Could you please provide the following details:
- API documentation or examples on monitoring and handling these events programmatically. (https://i.postimg.cc/rp5QQZ2b/image.png)
Looking forward to hearing from Pipedream team!