2Deletes a specific val.
3
4Pass 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/deleteValExample
1Migrated from folder: docs/api/deleteVal
1A type guard for vals that expect a WebApi `Request` as the first parameter.
2
3Since a val can be invoked by run, web, express or even email, the correct type for a web endpoint should be `req?: Request | unknown`.
14- the PR is authored authored by one of the users listed in `allowedAuthors` (line 5)\
15 (else response is `202: Ignored (pr author)`)
16- the `githubApiToken` configured in line 9 needs to have `repo` access to the related repository\
17 (else response is `50x: some error message`)
18- a branch protection has to be configured that requires at least one review approval and at least one status check\
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