planningcenter / developers

Planning Center API docs and support
https://developer.planning.center/docs/
84 stars 8 forks source link

Newbie question - Is it possible to use the PCO APIs through Zapier? #1152

Closed mikehigashi closed 8 months ago

mikehigashi commented 8 months ago

Related Product Which product is this question related to? People

Describe the question We're trying to create an automation with Zapier to Planning Center, where we get certain people from a PCO List.

I'm trying to use a Zapier Webhook to connect to the PCO People Api, but I can't seem to figure out the authentication details for the API call.

What have you tried that worked? Nothing has worked from Zapier.

I did familiarized myself with the API Explorer and have an API call that I'd eventually like to build https://api.planningcenteronline.com/explorer/people/v2/lists/[LIST ID]/people?order=last_name

What have you tried that didn't work? I'm using a GET Method to this URL https://api.planningcenteronline.com/services/v2/

And in the Header section, I'm passing the Personal Token [Secret] to this Header [application_id].

Additional context

image

I have..

zanebliss commented 8 months ago

Hey @mikehigashi, sorry you've been having trouble. While I can't speak in depth to the Zapier side of your question, I can point you to the authentication page of our Planning Center API documentation.

It looks like for your use case would be suited for a PAT method of authentication. According to the doc, you will need to pass your token and secret using HTTP Basic Auth e.g app_id:secret with the request. According to the screen shot you sent, it looks like the Basic Auth field is blank in Zapier. If I'm understanding Zapier's UI correctly, I believe you'd want to enter the value I suggested in the Basic Auth field.

Remember that your PAT is secret and it's important you never share the token directly with any other user or company.

I hope this helps!

I'm going to close this issue. If you are still running into issues, feel free to reply to this thread.