Woflow employs an asynchronous data export system to handle the retrieval of large catalogs efficiently. This mechanism ensures that even extensive data sets are processed without causing undue strain or delay in the system.
Initiating a Data Export
To trigger a data export, you'll need to make a request to a specific endpoint. Here's an example of how to initiate the process:
curl --location 'https://gateway.woflow.com/v1/data_exports' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token api_key=<api_key>' \
"type" : "catalog",
Callback URL (Optional)
By including an optional callback_url in your request, you allow Woflow to post the results directly to your specified endpoint once the data export process is complete. This eliminates the need to continually poll for updates, providing a seamless integration experience. If you decide not to use the callback_url, you'll need to manually poll for the status of the data export.
Once the request is made, you'll receive a response that confirms the initiation of the data export and provides additional details about the process:
Upon successful initiation, the state will indicate "initiated", and other details about the job will be provided.