# Create a license with Zapier

**URL:** <https://community.replicated.com/t/create-a-license-with-zapier/216>\
**Category:** Supporting your customers\
**Created:** [August 27, 2018, 8:46pm UTC](https://community.replicated.com/t/create-a-license-with-zapier/216 "2018-08-27T20:46:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@paul](https://community.replicated.com/u/paul)\
**Post date:** [August 27, 2018, 9:02pm UTC](https://community.replicated.com/t/create-a-license-with-zapier/216/2 "2018-08-27T21:02:38Z")

</div>

It’s easy to create licenses using the Replicated API, and Zapier makes interacting with the Replicated API especially easy.

To get started, you’ll need to know three pieces of information:

- Your API Token
- The App ID for the application you’re licensing
- The Channel ID that the license belongs to

You can find all three of these by following the steps outlined here: [Finding Your Vendor API Token and App ID](http://community.replicated.com/t/finding-your-vendor-api-token-and-app-id/27).

Once you have that information handy, go to Zapier and create a new integration. Step one of the integration would be to connect up your CRM (like Salesforce, Pipedrive, or any other where you want to drive licensing from). Once you’ve selected your CRM as the originator of the action in Zapier, choose a “_Webhook POST_” action as step two.

In the URL field, put [https://api.replicated.com/vendor/v1/license](https://api.replicated.com/vendor/v1/license).  
Choose `Json` as the Payload Type.

Create the following data fields:

- `assignee` - The name of your Customer from your CRM
- `update_policy` - This should be either `manual` or `automatic`, depending on your desired update policy (see [Update Policies, Checks and Application](http://community.replicated.com/t/update-policies-checks-and-application/172) for more details)
- `require_activation` - This should be either ‘true’ or ‘false’, depending on whether or not your application requires activation.
- `activation_email` -Either a placeholder email, or the email address of your customer.
- `app_id` - The value for the application ID that you collected from earlier in this answer.
- `channel_id` - The value the channel ID that you collected from earlier in this answer.
- `airgap_download_enabled` - This should be either `true` or `false`, depending on whether or not this is an airagap customer.
- `expiration_date` - The date the license should expire, in `YYYY-MM-DD` format.
- `expiration_policy` - Either `ignore`, `noupdate-norestart`, or `noupdate-stop`, depending on your policies around what should happen when the license expires.
- `license_type` - Either `trial`, `dev`, or `paid`

“_Wrap Request In Array_”, “_File_”, “_Unflatten_”, and “\_Basic Aut\_h” can all be skipped.

Add a Header in the “_Headers_” section. The Key should be `Authorization` and the value should be the Vendor API Token you collected in the section above.

Successfully creating the license will return the new License to you. Record the `License.Id` in your CRM for use in updating licenses via your CRM.

---

_[View the full topic](https://community.replicated.com/t/create-a-license-with-zapier/216)._
