Recipe lifecycle management

The following endpoints are available to Embedded partners only. These endpoints allow you to create and manage export manifests programmatically. You can also use these endpoints to import and export a package to or from a customer workspace using one set of API credentials.

If you plan to import or export packages to or from your own environments (not customer workspaces), use the endpoints listed in the Developer API documentation.

GLOSSARY

  • Manifest: A container of different assets, including recipes, lookup tables, connections, and more.

  • Package: The build of a manifest. Contains the source code of each asset within a manifest. It includes the latest version of the asset available when the package was created.

Rate limits

Recipe lifecycle management resources have the following rate limits:

Quick reference

TypeResourceDescription
GET/api/managed_users/:managed_user_id/
export_manifests/folder_assets
View assets in a folder.
POST/api/managed_users/:managed_user_id/export_manifestsCreate an export manifest.
PUT/api/managed_users/:managed_user_id/export_manifests/:idUpdate an export manifest.
GET/api/managed_users/:managed_user_id/export_manifests/:idView an export manifest.
DELETE/api/managed_users/:managed_user_id/export_manifests/:idDelete an export manifest.
POST/api/managed_users/:id/importsImport package into a folder in a customer workspace.
GET/api/managed_users/:id/imports/:package_idGet status of an imported package.
POST/api/managed_users/:managed_user_id/exports/:manifest_idExport package based on the manifest ID. Requires an Embedded workspace.
GET/api/managed_users/:managed_user_id/exports/:package_idReturns the status of a package export. Requires an Embedded workspace.

View assets in a folder

View assets in a folder. You can use this endpoint to help you create or update an export manifest.

GET /api/managed_users/:managed_user_id/export_manifests/folder_assets

URL parameters

NameTypeDescription
managed_user_idstring
required
Embedded customer Account ID or External ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300).
folder_idinteger
optional
The ID of the folder containing the asset. Defaults to the root folder.
include_test_casesboolean
optional
This parameter includes test cases from the list of assets. Defaults to false.
include_databoolean
optional
This parameter includes data from the list of assets. Defaults to false.

Sample request

shell
curl  -X GET 'https://www.workato.com/api/managed_users/91928/export_manifests?folder_id=423' \
      -H 'Authorization: Bearer <api_token>'

Response

json
{
  "result": {
    "assets": [
      {
        "id": 12,
        "name": "Copy of Recipeops",
        "type": "recipe",
        "version": 1,
        "folder": "",
        "absolute_path": "All projects",
        "root_folder": false,
        "unreachable": false,
        "zip_name": "copy_of_recipeops.recipe.json",
        "checked": true
      }
    ]
  }
}

Create an export manifest

Create an export manifest.

POST /api/managed_users/:managed_user_id/export_manifests

URL parameters

NameTypeDescription
managed_user_idstring
required
Embedded customer ID or external ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300).

Payload

NameTypeDescription
namestring
required
Name of the new manifest.
assetsobject
required
Dependent assets. Workato recommends reviewing the View assets in a folder endpoint's response before using this endpoint. The View assets in a folder endpoint returns an assets object containing all assets in a specific folder. This can help you identify and format the assets you plan to include in your manifest.
idinteger
required
ID of the dependency.
typestring
required
Type of dependent asset. Refer to Asset types to see all supported type values.
checkedboolean
optional
Determines if the asset is included in the manifest. Defaults to true.
versioninteger
optional
The version of the asset. Defaults to the latest version.
folderstring
optional
The folder that contains the asset. Defaults to "".
absolute_pathstring
optional
The absolute path of the asset. Defaults to root folder.
root_folderboolean
optional
Name the root folder. Defaults to false.
unreachableboolean
optional
Whether the asset is unreachable. Defaults to false.
zip_namestring
optional
Name in the exported zip file. By default, Workato auto-generates a name with this structure: asset_#{index}.#{type}.json.
folder_idinteger
optional
The ID of the folder containing the asset. Defaults to the root folder.
auto_generate_assetsboolean
optional
Auto-generates assets from a folder. Defaults to false.
include_test_casesboolean
optional
This parameter includes test cases from automatic asset generation. Defaults to false.
include_databoolean
optional
This parameter includes data from automatic asset generation. Defaults to false.
auto_runboolean
optional
Starts export package generation automatically. Defaults to false.
include_tagsboolean
optional
Specifies whether to include tags assigned to assets in the export manifest. Tags are excluded from the manifest when set to false. Set to false by default.

Asset types

Supported asset type values include:

  • recipe
  • connection
  • lookup_table
  • workato_db_table
  • account_property
  • project_property
  • workato_schema
  • workato_template
  • lcap_app
  • lcap_page
  • custom_adapter
  • topic
  • connection
  • recipe
  • api_group
  • api_endpoint

Sample request

shell
curl  -X POST 'https://www.workato.com/api/managed_users/91928/export_manifests' \
      -H 'Authorization: Bearer <api_token>' \
      -H 'Content-Type: application/json' \
      -d '{
            "export_manifest": {
              "name": "Test Manifest",
              "assets": [
                {
                  "id": 12,
                  "name": "Copy of Recipeops",
                  "type": "recipe",
                  "version": 1,
                  "folder": "",
                  "absolute_path": "All projects",
                  "root_folder": false,
                  "unreachable": false,
                  "zip_name": "copy_of_recipeops.recipe.json",
                  "checked": true
                }
              ],
              "folder_id": 112,
              "include_tags": true
            }
          }'
Create a manifest with multiple assets

You can pass multiple assets into the assets parameter to include them in the manifest.

Sample request
shell
curl  -X POST 'https://www.workato.com/api/managed_users/45267/export_manifests' \
      -H 'Authorization: Bearer <api_token>' \
      -H 'Content-Type: application/json' \
      -d '{
            "export_manifest": {
              "name": "Test Manifest with two assets",
              "assets": [
                {
                   "id": 65008167,
                   "name": "Outreach",
                   "type": "connection",
                   "version": null,
                   "folder": "API tests",
                   "absolute_path": "All projects/API tests",
                   "root_folder": false,
                   "provider": "outreach",
                   "unreachable": false,
                   "zip_name": "API tests/outreach.connection.json",
                   "deps": [],
                   "checked": true
                },
                {
                    "id": 86330482,
                    "name": "Test recipe",
                    "type": "recipe",
                    "version": 4,
                    "folder": "API tests",
                    "absolute_path": "All projects/API tests",
                    "root_folder": false,
                    "include_test_cases": false,
                    "unreachable": false,
                    "zip_name": "API tests/test_recipe.recipe.json",
                    "deps": [],
                    "checked": true
                  }
              ],
              "folder_id": 21339705,
              "include_tags": true
              }
            }'
Response
json
{
    "result": {
        "id": 267546,
        "name": "Test Manifest with two assets",
        "created_at": "2025-03-21T07:50:29.488-07:00",
        "updated_at": "2025-03-21T07:50:29.488-07:00",
        "deleted_at": null,
        "last_exported_at": null,
        "project_path": "Home assets",
        "status": "working",
        "include_tags": true
    }
}

Auto-generate assets

If you plan for Workato to auto-generate your assets, you can pass the parameter auto_generate_assets into the payload of the request. You must specify the folder_id you plan to have auto-generated. You can also choose to include test cases and data by including the include_test_cases or include_data parameters. Otherwise, they are excluded by default. Additionally, you can include auto_run in the payload to generate the package automatically.

Sample request

shell

curl  -X POST 'https://www.workato.com/api/managed_users/91928/export_manifests' \
      -H 'Authorization: Bearer <api_token>' \
      -H 'Content-Type: application/json' \
      -d '{
            "export_manifest": {
              "name": "Test Manifest",
              "folder_id": 112,
              "auto_generate_assets": true,
              "include_test_cases": true,
              "include_data": true, 
              "auto_run": true
            }
          }'

Response

json
{
  "result": {
    "id": 12,
    "name": "Test Manifest",
    "last_exported_at": null,
    "created_at": "2023-02-27T02:44:59.447-08:00",
    "updated_at": "2023-02-27T02:44:59.447-08:00",
    "deleted_at": null,
    "project_path": "Folder 1",
    "status": "working"
  }
}

Possible statuses

StatusDefinition
workingActive.
archivedDeleted.

Update an export manifest

Update an export manifest.

PUT /api/managed_users/:managed_user_id/export_manifests/:id

URL parameters

NameTypeDescription
idstring
required
The ID of the dependency.
managed_user_idstring
required
Embedded customer ID or external ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300).

Payload

Update the properties contained in assets[] to replace the assets previously defined.

NameTypeDescription
namestring
optional
Name of the manifest. Update this value to change the manifest name. Defaults to previous name.
assetsobject
required
Dependent assets. Workato recommends reviewing the View assets in a folder endpoint's response before using this endpoint. The View assets in a folder endpoint returns an assets object containing all assets in a specific folder. This can help you identify and format the assets you plan to update in your manifest.
idinteger
required
ID of the dependency.
typestring
required
Type of dependent asset. Refer to Asset types to see all supported type values.
checkedboolean
optional
Determines if the asset is included in the manifest. Defaults to true.
versioninteger
optional
The version of the asset. Defaults to the latest version.
folderstring
optional
The folder that contains the asset. Defaults to "".
absolute_pathstring
optional
The absolute path of the asset. Defaults to root folder.
root_folderboolean
optional
Name root folder. Defaults to false.
unreachableboolean
optional
Whether the asset is unreachable. Defaults to false.
zip_namestring
optional
Name in the exported zip file. By default, Workato auto-generates a name with this structure: asset_#{index}.#{type}.json.
folder_idinteger
optional
The ID of the folder containing the asset. Defaults to the root folder.
auto_generate_assetsboolean
optional
Auto-generates assets from folder. Defaults to false.
include_test_casesboolean
optional
Includes test cases in auto generation assets. Defaults to false.
include_databoolean
optional
Includes data in auto generation assets. Defaults to false.
auto_runboolean
optional
Starts export package generation automatically. Defaults to false.

Asset types

Supported asset type values include:

  • recipe
  • connection
  • lookup_table
  • workato_db_table
  • account_property
  • project_property
  • workato_schema
  • workato_template
  • lcap_app
  • lcap_page
  • custom_adapter
  • topic
  • connection
  • recipe
  • api_group
  • api_endpoint

Sample request

shell
curl  -X PUT 'https://www.workato.com/api/managed_users/91928/export_manifests/12' \
      -H 'Authorization: Bearer <api_token>' \
      -H 'Content-Type: application/json' \
      -d '{
            "export_manifest": {
              "name": "Test Manifest",
              "assets": [
                {
                  "id": 12,
                  "name": "Copy of Recipeops",
                  "type": "recipe",
                  "version": 1,
                  "folder": "",
                  "absolute_path": "All projects",
                  "root_folder": false,
                  "unreachable": false,
                  "zip_name": "copy_of_recipeops.recipe.json",
                  "checked": true
                }
              ],
              "folder_id": 112
            }
          }
          '
Update a manifest with multiple assets

You can pass multiple assets into the assets parameter to update them in the manifest.

Sample request
shell
curl  -X POST 'https://www.workato.com/api/managed_users/91928/export_manifests/15' \
      -H 'Authorization: Bearer <api_token>' \
      -H 'Content-Type: application/json' \
      -d '{
            "export_manifest": {
              "name": "Test Manifest with two assets",
              "assets": [
                {
                   "id": 65008167,
                   "name": "Outreach",
                   "type": "connection",
                   "version": null,
                   "folder": "API tests",
                   "absolute_path": "All projects/API tests",
                   "root_folder": false,
                   "provider": "outreach",
                   "unreachable": false,
                   "zip_name": "API tests/outreach.connection.json",
                   "deps": [],
                   "checked": true
                },
                {
                    "id": 86330482,
                    "name": "Test recipe",
                    "type": "recipe",
                    "version": 4,
                    "folder": "API tests",
                    "absolute_path": "All projects/API tests",
                    "root_folder": false,
                    "include_test_cases": false,
                    "unreachable": false,
                    "zip_name": "API tests/test_recipe.recipe.json",
                    "deps": [],
                    "checked": true
                  }
              ],
              "folder_id": 21339715
              }
            }'
Response
json
{
    "result": {
        "id": 171350,
        "name": "Test Manifest with two assets",
        "created_at": "2025-03-19T07:45:50.915-07:00",
        "updated_at": "2025-03-21T09:26:46.348-07:00",
        "deleted_at": null,
        "last_exported_at": null,
        "project_path": "Home assets",
        "status": "working",
        "include_tags": true,
        "assets": [
            {
                "checked": true,
                "root_folder": false,
                "unreachable": false,
                "name": "Outreach",
                "zip_name": "API tests/outreach.connection.json",
                "id": 65008167,
                "type": "connection",
                "version": null,
                "folder": "API tests",
                "absolute_path": "All projects/API tests",
                "deps": []
            },
            {
                "checked": true,
                "root_folder": false,
                "unreachable": false,
                "name": "Test recipe",
                "zip_name": "API tests/test_recipe.recipe.json",
                "id": 86330482,
                "type": "recipe",
                "version": 4,
                "folder": "API tests",
                "absolute_path": "All projects/API tests",
                "include_test_cases": false,
                "deps": []
            }
        ],
        "diff_included": false
    }
}

Auto-generate assets

If you plan for Workato to auto-generate your assets, you can pass the parameter auto_generate_assets into the payload of the request. You must specify the folder_id you plan to have auto-generated. You can also choose to include test cases and data by including the include_test_cases or include_data parameters. Otherwise, they are excluded by default. Additionally, you can include auto_run in the payload to generate the package automatically.

Sample request

shell

curl  -X PUT 'https://www.workato.com/api/managed_users/91928/export_manifests/12' \
      -H 'Authorization: Bearer <api_token>' \
      -H 'Content-Type: application/json' \
      -d '{
            "export_manifest": {
              "name": "Test Manifest",
              "folder_id": 112,
              "auto_generate_assets": true,
              "include_test_cases": true,
              "include_data": true, 
              "auto_run": true
            }
          }
          '

Response

json
{
  "result": {
    "id": 12,
    "name": "Test Manifest",
    "last_exported_at": null,
    "created_at": "2023-02-27T02:44:59.447-08:00",
    "updated_at": "2023-02-27T02:44:59.447-08:00",
    "deleted_at": null,
    "project_path": "Folder 1",
    "status": "working"
  }
}

View an export manifest

View an export manifest.

GET /api/managed_users/:managed_user_id/export_manifests/:id

URL parameters

NameTypeDescription
idstring
required
The ID of the dependency.
managed_user_idstring
required
Embedded customer ID or external ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300).

Sample request

shell
curl  -X GET 'https://www.workato.com/api/managed_users/91928/export_manifests/12' \
      -H 'Authorization: Bearer <api_token>'

Response

json
{
  "result": {
    "id": 12,
    "name": "Test Manifest",
    "last_exported_at": null,
    "created_at": "2023-02-27T02:44:59.447-08:00",
    "updated_at": "2023-02-27T02:44:59.447-08:00",
    "deleted_at": null,
    "project_path": "Folder 1",
    "status": "working"
  }
}

Delete an export manifest

Delete an export manifest.

DELETE /api/managed_users/:managed_user_id/export_manifests/:id

URL parameters

NameTypeDescription
idstring
required
Export manifest ID.
managed_user_idstring
required
Embedded customer ID or external ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300).

Sample request

shell
curl  -X DELETE 'https://www.workato.com/managed_users/12345/api/export_manifests/12' \
      -H 'Authorization: Bearer <api_token>'

Response

json
{
    "result": {
        "success": true,
        "status": "destroyed"
    }
}

Import package into a customer workspace

Import a package in zip file format into a specified folder in a customer workspace. This endpoint allows an API client to create or update assets, such as recipes, lookup tables, event topics, and message templates, through package imports.

POST /api/managed_users/:managed_user_id/imports

This is an asynchronous request. Use the Get package status endpoint to get details of the imported the package.

The input (zip file) is an application/octet-stream payload containing package content. The query parameter restart_recipes must be set to true if the running recipes need to be restarted upon import.

URL parameters

NameTypeDescription
managed_user_idstring
required
Embedded customer ID or external ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300).

Query parameters

NameTypeDescription
folder_idstring
required
Folder ID.
restart_recipesboolean
optional
Value must be true to allow the restarting of running recipes during import.
Packages cannot be imported if there are running recipes and this parameter equals false or is not provided.
include_tagsboolean
optional
Specifies whether to preserve tags assigned to assets when importing the package into the folder. Tags are excluded from the import when set to false. Set to false by default.
folder_id_for_home_assetsstring
conditionally required
The ID of a folder to store assets in instead of the root folder. The folder specified must be accessible to the API client and cannot be the root folder. Defaults to "".

FOLDER_ID_FOR_HOME_ASSETS IS CONDITIONALLY REQUIRED

The folder_id_for_home_assets parameter is required if:

  • You are importing a package that contains root folder assets.
  • The customer's workspace Home assets folder has been converted to a Home assets project.

Refer to the Home assets project section for more information.

Sample request

shell
curl  -X POST 'https://www.workato.com/api/managed_users/91928/imports?folder_id=1827&include_tags=true' \
      -H 'Authorization: Bearer <api_token>' \
      -H 'Content-Type: application/octet-stream' \
      -F 'path/to/local/file.zip'

Response

json
{  
   "id":251,
   "operation_type":"import",
   "status":"completed"
}

Get status of package import

Get details of a package imported into a customer workspace.

GET /api/managed_users/:managed_user_id/imports/:package_id

URL parameters

NameTypeDescription
managed_user_idstring
required
Embedded customer ID or external ID.
External ID must be prefixed with an E (for example, EA2300) and the resulting ID should be URL encoded.
package_idstring
required
Package ID.

Sample request

shell
curl  -X GET 'https://www.workato.com/api/managed_users/91829/imports/198' \
      -H 'Authorization: Bearer <api_token>'

Responses

Successful import

The following response is returned when an import is completed successfully.

IMPORT RESULTS

For any completed import, it is important to also check each recipe's import_result. Learn more about the possible import_result values.

json
{
   "id":242,
   "operation_type":"export",
   "status":"completed",
   "recipe_status":[
      {
            "id": 12345,
            "import_result": "no_update_or_update_without_restart"
      },
      {
            "id": 12346,
            "import_result": "restarted"
      },
      {
            "id": 12347,
            "import_result": "stopped"
      }
   ]
}

Failed import

The following response is returned when an import fails.

IMPORT RESULTS

For any failed import, not all recipes may be returned in recipe_status as they may not have been updated before the import failed. Learn more about the possible import_result values.

json
{  
   "id":198,
   "operation_type":"export",
   "status":"failed",
   "error":"error_message",
   "recipe_status":[
      {
            "id": 12345,
            "import_result": "no_update_or_update_without_restart"
      },
      {
            "id": 12346,
            "import_result": "restarted"
      },
      {
            "id": 12347,
            "import_result": "stopped"
      }
   ]
}

Recipe import_result values

There are a total of six (6) possible results:

  • no_update_or_update_without_restart - This indicates no restart was needed for the recipe. Either recipe could be updated without it or no update was made. Successful import
  • not_found - Unexpected error when recipe cannot be found. Should not often be seen. Import has failed with no update to recipe.
  • stop_failed - For recipes that need to be restarted, we attempt to stop the recipe. This state indicates we could not stop the recipe. Import has failed with no update to recipe.
  • stopped - Workato stopped the recipe but recipe was not restarted due to errors in the recipe. Import has failed with recipe updated but not restarted
  • restart_failed - Workato attempted to restart recipe but failed to do so. Import has failed with recipe updated but not restarted
  • restarted - Workato successfully restarted recipe after update. Successful import

Export package

Export a package using the manifest ID. This endpoint requires an Embedded workspace.

Use the Get export status endpoint to retrieve details on the exported package.

WARNING

Providing an API client with privilege to this endpoint indirectly gives it the ability to create/update other assets like recipes, lookup tables, Event topics and message templates by examining the resultant zip file.

POST /api/managed_users/:managed_user_id/exports/:manifest_id

INCLUDE TAGS WHEN CREATING THE EXPORT MANIFEST

To include tags in the exported package, set the include_tags attribute to true when calling the Create an export manifest endpoint.

URL parameters

NameTypeDescription
managed_user_idstring
required
Embedded customer Account ID or External ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300) and the resulting ID should be URL encoded.
manifest_idstring
required
The ID of the manifest you plan to export.

Sample request

shell
curl  -X POST 'https://www.workato.com/api/managed_users/91829/exports/508' \
      -H 'Authorization: Bearer <api_token>'

Response

json
{
  "id": 365,
  "operation_type": "export",
  "status": "in_progress",
  "include_tags": true,
  "export_manifest_id": 508,
  "download_url": null
}

RETRIEVE THE DOWNLOAD URL

Use the Get export status endpoint to monitor the export status. The download URL is available in the response after the process completes.


Get export status

Returns the status of an exported package. Requires an Embedded workspace.

GET /api/managed_users/:managed_user_id/exports/:package_id

URL parameters

NameTypeDescription
managed_user_idstring
required
Embedded customer Account ID or External ID.
The External ID must be URL encoded and prefixed with an E (for example, EA2300) and the resulting ID should be URL encoded.
package_idstring
required
The ID of the package.

Sample request

shell
curl  -X GET 'https://www.workato.com/api/managed_users/91829/exports/370' \
      -H 'Authorization: Bearer <api_token>'

Response

json
{
      "id":370,
      "operation_type":"export",
      "status":"completed",
      "export_manifest_id":513,
      "download_url":"https://www.workato-staging-assets.com/packages/zip_files/000/000/242/original/exportdemo.zip"
}

Last updated: