# Get cluster provisioning token via API

**URL:** <https://forums.suse.com/t/get-cluster-provisioning-token-via-api/13889>\
**Category:** SUSE Rancher Prime\
**Created:** [April 8, 2019, 10:52am UTC](https://forums.suse.com/t/get-cluster-provisioning-token-via-api/13889 "2019-04-08T10:52:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenuat](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@Kenuat](https://forums.suse.com/u/Kenuat)\
**Post date:** [April 8, 2019, 10:52am UTC](https://forums.suse.com/t/get-cluster-provisioning-token-via-api/13889/1 "2019-04-08T10:52:54Z")

</div>

Hi, I’m trying to setup automatic bare-metal (manually provisioned virtual machines actually) cluster deployment process using Rancher. Rancher agent docker container requires a token available after a cluster creation in the UI. I’ve tried to find it in the API but couldn’t.  
Does anyone know how to get this token programmatically?  
Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [April 8, 2019, 11:34am UTC](https://forums.suse.com/t/get-cluster-provisioning-token-via-api/13889/2 "2019-04-08T11:34:00Z")

</div>

Automation examples are in the quickstart repository: [https://github.com/rancher/quickstart/](https://github.com/rancher/quickstart/)

They are also available using the Rancher CLI

---

<div class="post-metadata">

**Author:** ![Kenuat](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@Kenuat](https://forums.suse.com/u/Kenuat)\
**Post date:** [April 8, 2019, 1:07pm UTC](https://forums.suse.com/t/get-cluster-provisioning-token-via-api/13889/3 "2019-04-08T13:07:28Z")

</div>

So it’s the clusterregistrationtoken endpoint which I was looking for, thank you, @superseb, very appreciate
