Solved

Getting current phase link through API


Userlevel 2
  • Regular Participant
  • 3 replies

I’m trying to get the current phase link to a card through the show card API request. I need to be able to automate getting this link to the cards phase form but can’t find a way.

This is the link generated from within the card. Does anyone know if this follows any logic or if its random? It looks like it contains a uuid but it doesn’t match the card or phase.

I know you can get this link through email but I need to be able to get it externally please let me know if you have a work around

 

Thanks

icon

Best answer by genietim 7 June 2021, 08:55

View original

4 replies

Userlevel 7
Badge +8

Hello everyone, 

I would like to inform that this is now available in our API! You can check more information here

 

 

Sooo nice!!  Thanks @Danielle Diehl 

Userlevel 5

Hello everyone, 

I would like to inform that this is now available in our API! You can check more information here

Userlevel 7
Badge +8

Hey Jon!

If you are courageous, you can use the network developer tools in your browser to find the corresponding GraphQL queries. You will find the following two to be relevant (here formatted as JavaScript fetch requests) (note that they use a different API-endpoint rather than the public one. For authentication [not listed in the requests below], it works just the same, just as well with your API-Token, thankfully):

 

fetch("https://app.pipefy.com/internal_api", {
"headers": {
"accept": "*/*",
"content-type": "application/json, application/json"
},
"referrer": "https://app.pipefy.com/",
"referrerPolicy": "origin",
"body": "{\"operationName\":\"publicPhaseFormLink\",\"variables\":{\"cardUuid\":\"5b96ae53-e3aa-4e26-9b58-yourCardUID\"},\"query\":\"query publicPhaseFormLink($cardUuid: ID!) {\\n publicPhaseFormLink(cardUuid: $cardUuid) {\\n url\\n active\\n __typename\\n }\\n}\\n\"}",
"method": "POST"
});

 

fetch("https://app.pipefy.com/internal_api", {
"headers": {
"accept": "*/*",
"content-type": "application/json, application/json",
},
"referrer": "https://app.pipefy.com/",
"referrerPolicy": "origin",
"body": "{\"operationName\":\"publicPhaseFormLinkToggle\",\"variables\":{\"cardUuid\":\"5b96ae53-e3aa-4e26-9b58-yourCardUID\"},\"query\":\"mutation publicPhaseFormLinkToggle($cardUuid: ID!) {\\n publicPhaseFormLinkToggle(input: {cardUuid: $cardUuid}) {\\n active\\n url\\n __typename\\n }\\n}\\n\"}",
"method": "POST"
});

The first one is used to fetch the actual public URL, whereas the second one is to actually enable the public form for this card.

 

Please be aware that I am a user only, too, so I will not take any responsibilities, and warn you herewith, that Pipefy might change this stuff one moment or the other.

Userlevel 3

Hey Jon!

 

The phase form uses an internal information to generate the link. Our product team is analyzing if it is possible to release this information on our API so our customers could use it!

Reply