# Call API from iOS Shortcuts

**URL:** https://community.fibery.io/t/call-api-from-ios-shortcuts/2718
**Category:** API & Programming
**Created:** [April 18, 2022, 1:16am UTC](https://community.fibery.io/t/call-api-from-ios-shortcuts/2718 "2022-04-18T01:16:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cannibalflea](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cannibalflea/32/318_2.png) [@cannibalflea](https://community.fibery.io/u/cannibalflea)
#### Post date: [April 18, 2022, 1:16am UTC](https://community.fibery.io/t/call-api-from-ios-shortcuts/2718/1 "2022-04-18T01:16:27Z")

</div>

I was wondering if anyone has tried to use iOS/mac Shortcuts to interact/create new fibery entities? I think that it is possible to call the api using “Get contents of” action, but I seem to get a server error (500 error). I tried to use a REST client on iOS and get the same results.

I am sure I am doing something wrong here but not sure what. I am not sure if there is a way of figuring out what is going wrong (i.e. some sort of logs visible to developers).

---

<div class="post-metadata">

### Author: ![Viktar\_Zhuk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/viktar_zhuk/32/1934_2.png) [@Viktar\_Zhuk](https://community.fibery.io/u/Viktar_Zhuk)
#### Post date: [April 22, 2022, 3:18pm UTC](https://community.fibery.io/t/call-api-from-ios-shortcuts/2718/2 "2022-04-22T15:18:22Z")

</div>

Hi,

You may start from [Fibery API](https://api.fibery.io/#entity) .

---

<div class="post-metadata">

### Author: ![Dimitri\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/dimitri_s/32/1683_2.png) [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)
#### Post date: [April 27, 2022, 12:25pm UTC](https://community.fibery.io/t/call-api-from-ios-shortcuts/2718/3 "2022-04-27T12:25:54Z")

</div>

I would suggest getting whatever you are trying to do working in Postman and _then_ setting it up as a iOS/mac shortcut

> [@Fast and easy way to test the Fibery API using Postman](https://community.fibery.io/t/fast-and-easy-way-to-test-the-fibery-api-using-postman/1658):
>
> I hit a few hurdles getting my first API request to work in Postman so I figured I would throw together a quick guide for anyone that wants to try out the API but isn’t a developer or doesn’t want to use cURL. Getting your API token This process will [very likely change in the future](https://api.fibery.io/#generate-a-new-token) but for now: Open a tab to your https://YOUR\_ACCOUNT\_HERE.fibery.io/ page Open the developer console by pressing F12 or Cmd+Opt+J on Mac ([more info here](https://javascript.info/devtools)) Paste in the code below (WARNING: you should never run unk…

---

<div class="post-metadata">

### Author: ![Viktar\_Zhuk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/viktar_zhuk/32/1934_2.png) [@Viktar\_Zhuk](https://community.fibery.io/u/Viktar_Zhuk)
#### Post date: [May 1, 2022, 3:53pm UTC](https://community.fibery.io/t/call-api-from-ios-shortcuts/2718/4 "2022-05-01T15:53:24Z")

</div>

I’ve checked iOS `Get Contents of` action (iOS 15.4.1)  
As I got it there is no way to specify top level array, only object is available.  
Unfortunately our commands API requires commands array even if you need to execute only one.

You may try `Run JavaScript on` action as it allows arbitrary javascript.
