# Cloud API documentation

**URL:** <https://community.particle.io/t/cloud-api-documentation/969>\
**Category:** Cloud\
**Created:** [December 24, 2013, 1:58am UTC](https://community.particle.io/t/cloud-api-documentation/969 "2013-12-24T01:58:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrOmatic](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mromatic/32/66_2.png) [@mrOmatic](https://community.particle.io/u/mrOmatic)\
**Post date:** [December 24, 2013, 1:58am UTC](https://community.particle.io/t/cloud-api-documentation/969/1 "2013-12-24T01:58:29Z")

</div>

We shouldn’t need to go looking into the source code to find available types for Spark.variable etc

---

<div class="post-metadata">

**Author:** ![bigjme](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bigjme](https://community.particle.io/u/bigjme)\
**Post date:** [December 24, 2013, 2:01am UTC](https://community.particle.io/t/cloud-api-documentation/969/2 "2013-12-24T02:01:26Z")

</div>

I agree. A simple doc with all the veriables for spark and a quick explanation of what data they hold would be very useful

---

<div class="post-metadata">

**Author:** ![zach](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zach/32/20714_2.png) [@zach](https://community.particle.io/u/zach)\
**Post date:** [December 24, 2013, 3:32pm UTC](https://community.particle.io/t/cloud-api-documentation/969/3 "2013-12-24T15:32:09Z")

</div>

Good feedback guys; will add this to our backlog.

---

<div class="post-metadata">

**Author:** ![andrew](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@andrew](https://community.particle.io/u/andrew)\
**Post date:** [December 25, 2013, 4:30am UTC](https://community.particle.io/t/cloud-api-documentation/969/4 "2013-12-25T04:30:37Z")

</div>

On that note, has anyone who has gone through the source let us know what variables can be returned through Spark.function?

---

<div class="post-metadata">

**Author:** ![zach](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zach/32/20714_2.png) [@zach](https://community.particle.io/u/zach)\
**Post date:** [December 25, 2013, 12:42pm UTC](https://community.particle.io/t/cloud-api-documentation/969/5 "2013-12-25T12:42:25Z")

</div>

Right now they can only return integers.

---

<div class="post-metadata">

**Author:** ![wgbartley](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/wgbartley/32/1910_2.png) [@wgbartley](https://community.particle.io/u/wgbartley)\
**Post date:** [December 25, 2013, 10:40pm UTC](https://community.particle.io/t/cloud-api-documentation/969/6 "2013-12-25T22:40:57Z")

</div>

> [@zach](#):
>
> Right now they can only return integers.

And here I've been banging my head against the table for a couple of hours now due to this. Now that you mention, I'm pretty sure I read about it somewhere, but can't find where.

---

<div class="post-metadata">

**Author:** ![andrew](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@andrew](https://community.particle.io/u/andrew)\
**Post date:** [December 26, 2013, 1:17am UTC](https://community.particle.io/t/cloud-api-documentation/969/7 "2013-12-26T01:17:11Z")

</div>

Ah thanks. I was trying to return variables of type double earlier, this explains the odd behaviour.
