# 'Claim' core with API call

**URL:** <https://community.particle.io/t/claim-core-with-api-call/11115>\
**Category:** Cloud\
**Created:** [April 6, 2015, 1:32pm UTC](https://community.particle.io/t/claim-core-with-api-call/11115 "2015-04-06T13:32:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lawless](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/lawless/32/5039_2.png) [@lawless](https://community.particle.io/u/lawless)\
**Post date:** [April 6, 2015, 1:32pm UTC](https://community.particle.io/t/claim-core-with-api-call/11115/1 "2015-04-06T13:32:08Z")

</div>

I looked through the API docs and found a lot of useful information. However I was wondering if there is an API call to register a core with a specific account? I plan to create an admin app and when a customer goes to get the device online I want it to auto register with my account after they put in their user credentials.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [April 6, 2015, 1:41pm UTC](https://community.particle.io/t/claim-core-with-api-call/11115/2 "2015-04-06T13:41:11Z")

</div>

Seems like it didn’t end up in the docs. I have opened a github issue and will push a PR tonight.  
[[https://github.com/spark/docs/issues/311](https://github.com/spark/docs/issues/311)]

See the command used here:

> <https://github.com/particle-iot/spark-cli/blob/master/lib/ApiClient.js>

Bascially a **POST** command with **core-id** and **access-token** to `[api.spark.io/v1/devices](http://api.spark.io/v1/devices)

---

<div class="post-metadata">

**Author:** ![lawless](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/lawless/32/5039_2.png) [@lawless](https://community.particle.io/u/lawless)\
**Post date:** [April 6, 2015, 1:55pm UTC](https://community.particle.io/t/claim-core-with-api-call/11115/3 "2015-04-06T13:55:11Z")

</div>

Thank you for the quick response, I will give that a try!

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [April 7, 2015, 12:31am UTC](https://community.particle.io/t/claim-core-with-api-call/11115/4 "2015-04-07T00:31:54Z")

</div>

It’s now in the docs: [http://docs.spark.io/api/#introduction-claim-core](http://docs.spark.io/api/#introduction-claim-core) 🙂

---

<div class="post-metadata">

**Author:** ![lawless](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/lawless/32/5039_2.png) [@lawless](https://community.particle.io/u/lawless)\
**Post date:** [April 8, 2015, 5:31am UTC](https://community.particle.io/t/claim-core-with-api-call/11115/5 "2015-04-08T05:31:35Z")

</div>

Much appreciated!
