Why am I receiving an error when using pipedream via curl in python backend even after providing the correct project_id?

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

Hi, I have a probleme using pipedream via curl (We are using a python backend). When I try the route : https://api.pipedream.com/v1/connect/{project_id}/actions?app=slack with the right headers (Bearer token, Content type, X PD environment) and i still get the error {
“error”: “Make sure to include the project_id. See our docs for more info: https://pipedream.com/docs/connect/api
}. But i do give the right project_id.

Can someone help me ?

Cc

Can you share the full request? (without the actual access token)

curl --location ‘https://api.pipedream.com/v1/connect/proj_1jsJEXz/actions?app=slack
–header ‘X-PD-Environment: development’
–header ‘Content-Type: application/json’
–header ‘Authorization: apikeyfoundinpipedream’ \

Ah yes, you need an OAuth access token, not an API key. https://pipedream.com/docs/rest-api/auth/#oauth

Perfect it works, thank you :slight_smile:

By the way we’re working on a Python SDK also

Nice, do you think it will be available soon ?

Yes, I don’t have a firm date for you, but I just created this public issue to track it: [FEATURE] As a Connect developer, I want to use Pipedream's SDK in my Python backend · Issue #16945 · PipedreamHQ/pipedream · GitHub