# Using Taio’s new Image Uploader with Snapas via API

**URL:** <https://discuss.write.as/t/using-taio-s-new-image-uploader-with-snapas-via-api/5231>\
**Category:** API\
**Tags:** snapas\
**Created:** [April 11, 2022, 12:48am UTC](https://discuss.write.as/t/using-taio-s-new-image-uploader-with-snapas-via-api/5231 "2022-04-11T00:48:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidBlue](https://discuss.write.as/user_avatar/discuss.write.as/davidblue/32/258_2.png) [@DavidBlue](https://discuss.write.as/u/DavidBlue)\
**Post date:** [April 11, 2022, 12:48am UTC](https://discuss.write.as/t/using-taio-s-new-image-uploader-with-snapas-via-api/5231/1 "2022-04-11T00:48:12Z")

</div>

The iOS/iPadOS/macOS markdown-based writing app [**Taio**](https://apps.apple.com/us/app/taio-markdown-text-actions/id1527036273) recently added a very impressive [image uploader utility](https://github.com/cyanzhong/Image-Uploader) and I managed to figure out how to use it with [the Snap.as API](https://developers.snap.as/docs/api)!

![Image Uploader Configuration](https://i.snap.as/H4kiVJ7m.image)

#### Configuration

| Field | Content |
| --- | --- |
| API URL | [https://snap.as/api/photos/upload](https://snap.as/api/photos/upload) |
| HTTP Method | POST |
| HTTP Headers | Authorization: 00000000-0000-0000-0000-000000000000 |
| HTTP Body | (Empty) |
| Form File Name | file |
| JSON Result Path | data.url |

Here’s [**a rough, single-take video demo**](https://user-images.githubusercontent.com/43663476/162647696-bf9cd436-21bf-491f-874d-28aca6e55a6d.MOV).

I’m brand brand new to API, generally, so please do let me know if I can improve this. For more details, see [this GitHub Issue](https://github.com/extratone/bilge/issues/315).

---

<div class="post-metadata">

**Author:** ![LDLW](https://discuss.write.as/user_avatar/discuss.write.as/ldlw/32/1600_2.png) [@LDLW](https://discuss.write.as/u/LDLW)\
**Post date:** [April 11, 2022, 7:24pm UTC](https://discuss.write.as/t/using-taio-s-new-image-uploader-with-snapas-via-api/5231/2 "2022-04-11T19:24:04Z")

</div>

This is a really cool use of the API. I think I may build something similar via Shortcuts on Mac/iOS/iPad OS.

How did you get your API key? I reviewed the documentation, but am used to finding my key in the account area, but don’t see anything like that in the account management UI.

---

<div class="post-metadata">

**Author:** ![DavidBlue](https://discuss.write.as/user_avatar/discuss.write.as/davidblue/32/258_2.png) [@DavidBlue](https://discuss.write.as/u/DavidBlue)\
**Post date:** [April 11, 2022, 7:48pm UTC](https://discuss.write.as/t/using-taio-s-new-image-uploader-with-snapas-via-api/5231/3 "2022-04-11T19:48:47Z")

</div>

So… Snap.as tokens == Write.as tokens. You use the same token across both services. In order to get that token, you actually have to [make an authentication request _via_ the API](https://developers.write.as/docs/api/#authenticate-a-user). I have also been working on Siri Shortcuts for these! I’ve only published [a single one](https://routinehub.co/shortcut/11543/), so far, but I’m hoping to eventually figure out more complex requests and publish a whole suite.

[**Here’s what I have so far**](https://www.icloud.com/shortcuts/88ba8a9e701b43538858aa9080473309) of the shortcut intended to help one retrieve that auth token. I’m not 100% on it yet (and not familiar enough to be comfortable logging in and out of different accounts on my own device.)

(I got my token via copying and pasting that curl request into [Blink Shell](https://apps.apple.com/us/app/blink-shell-code/id1594898306), just to be clear.)

---

<div class="post-metadata">

**Author:** ![LDLW](https://discuss.write.as/user_avatar/discuss.write.as/ldlw/32/1600_2.png) [@LDLW](https://discuss.write.as/u/LDLW)\
**Post date:** [April 11, 2022, 11:24pm UTC](https://discuss.write.as/t/using-taio-s-new-image-uploader-with-snapas-via-api/5231/4 "2022-04-11T23:24:21Z")

</div>

That worked like a charm! Thank you.
