1# [Translator](https://yieldray-translate.web.val.run)
2using a [public deepl api](https://deepl.deno.dev)
3
4Migrated from folder: http/translate
4
5### Setup
61. Create a [Val Town API Token](https://www.val.town/settings/api)
72. Add it to [your secrets](https://www.val.town/settings/secrets) as `valtown`
83. Fork & Run this val
57You can attach files to your emails by using the `attachments` field.
58Attachments need to be [Base64](https://en.wikipedia.org/wiki/Base64) encoded,
59which is what the [btoa](https://developer.mozilla.org/en-US/docs/Web/API/btoa)
60method is doing in this example:
61
94```
95
96This is also [documented in our REST API](https://docs.val.town/openapi#/tag/emails/POST/v1/email), and supported in the [SDK](https://docs.val.town/api/sdk/).
97
98
1# Human Alive-ness API
2
3It works by querying Wikidata via SPARQL to search for birth and death dates of a person.
17## Learn more
18
19* https://agg-shashank.medium.com/an-introduction-to-using-wikidata-apis-a678ee6d2968
20
21Migrated from folder: Archive/wikidata
2Gets information about a specific val.
3
4To access private vals, pass your API token as a secret to the function. Read more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token and save it as a secret.
5
6Migrated from folder: docs/api/getVal
1Migrated from folder: docs/api/val
2Creates a val.
3
4Requires a secret called valtownToken, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
5
6Migrated from folder: docs/api/postVals
1Migrated from folder: docs/api/createVal
2Fetches information about any comments on vals.
3
4Requires a secret called valtownToken, set to your API Token. See more about [authentication](https://docs.val.town/api/authentication) to understand how to generate a token.
5
6Migrated from folder: docs/api/getComments