Key benefits of API Workflow
- By using workflows, it allows for you to easily reuse and save configurations without having to write long queries every single time
- Extremly simplified api calls using the workflow id
- In the future you will also be able to schedule the requests and make it run at a specific time for as long as you would like.
Dashboard Method
Create a workflow
Creating a workflow is very easy, first go to the builder page and configure your request. When you are done click on the “Save as workflow” button right under the editor to create a workflow, when you click on the button It will ask you for a name for the workflow. You can set the name as anything you would like:
And finally click on submit and it should create the workflow! When you go to the workflows page you should see your workflow there!
Using an workflow
To use an api workflow you will need to get the ID of the workflow, to get the api workflow id, go to the workflow list page and you should see a column called row which has the ID of the workflow you want to run:
After copying the ID, send the workflow id as a query parameter with your api key to run the scraping request, After you run the request you should get the response:
Edit an workflow
To edit a workflow, you can go to the workflows page and click on the actions button on the workflow you want to edit, you should see a edit button there. Click on it.
After clicking on it, you should see a builder like page which you can use to change your configuration. When you are done changing your configuration you can either create a new workflow or update the current workflow. If you want to update the current workflow, click on the “Save workflow” button under the editor, but if you want to create a new workflow click on the “Save as new workflow” button.
Pressing on the save as new workflow button will create a new workflow with all of the additional changes and redirect you to that specific workflow.
Archiving a workflow
If you want to archive/delete a workflow you can do it by going to the workflow list and clicking on the action button for the specific workflow you want to archive. Like this: After you archive a workflow you should be able to see it in the archived tab inside the workflow list.
After you archive a workflow you will no longer be able to use that workflow, or edit that workflow. If you change your mind and want to unacrhive you go to the archived tab on your workflows list and click on the action button for the specific workflow you want to unarchive and click on the unarchive button.
After clicking on the unarchive button you should be able to use that workflow again and edit it aswell.
We decided to archive a workflow rather then deleting it completely from history is that so if for some reason you need it in the future you can just unarchive it.
API Method
To easily manage and use the api workflows in your codebase, we provide some very simple api’s which allows you to very easily do this.Get all of your workflows
To get all of a user’s workflows you will need to send aGET request to this api route along with your api key, if your api key is invalid then the api won’t return your workflows and instead return an error. Here is an example request: