# How to import/use a workflow from a file or API handbook

With n8n, its easy to share the workflow by downloading it as a .json file.\
\
To use any of the shared workflows follow the steps below:

* Get the workflow JSON file
* Then go to n8n→Add new workflow.
* Go to 3 dots menu on the top right corner and select Import from a file.
* Select the previously downloaded/obtained JSON file and you should see something similar to the image below.

  <figure><img src="https://2749008000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNv32980j4B1B2UoS6UMi%2Fuploads%2FykGg1FlTv4JTwOdDAf8H%2Fimage.png?alt=media&#x26;token=6217e852-aea7-4eef-9fc9-42de0248ed5b" alt=""><figcaption></figcaption></figure>
* In case you don't have a JSON file rather you just have JSON code open in webpage (by clicking a workflow link in API handbook), then just copy the URL of that page (It should be something like this: *<https://xxxxxxx-files.gitbook.io/\\~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%x---->)*
  * ![](https://2749008000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNv32980j4B1B2UoS6UMi%2Fuploads%2Fe3adDxLMyh1D7EAsxA1q%2Fimage.png?alt=media\&token=45d4a00a-f97a-445e-92ad-1a48a8d8457f)<br>
  * Now instead of importing from a file, select import from a URL.
  * Then paste the URL you copied earlier and add **".json"** at the end of the URL. This is important, you won't be able to import the workflow if you don't add **".json"** at the end of the URL.
* After you get the skeleton workflow, you might need to go to few of the modules to update credentials and settings (modules with red triangles).\
  **Note:** Its a good idea to check every module of the workflow and run them one by one to be sure that everything is correct.
* Once you have changed the modules, you can run the workflow by clicking the “Execute workflow” button at the bottom. **(Make sure you do a few tests before using this workflow for an actual producer or client)**

<figure><img src="https://2749008000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNv32980j4B1B2UoS6UMi%2Fuploads%2FouQiFNer1y6TXPDbwZpS%2Fimage.png?alt=media&#x26;token=f64a1847-c17a-41de-8904-c35b129ebf1d" alt=""><figcaption><p>How it looks when you import a workflow</p></figcaption></figure>
