1Migrated from folder: common/pageApi
1Migrated from folder: common/paginateAPI
2Returns information about a specific version of a val.
3
4To access private vals this requires 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/getValVersion
1Migrated from folder: docs/api/valVersion
2Returns information about each version of a specific val.
3
4To access private vals this requires 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/getValVersions
1Migrated from folder: docs/api/valVersions
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\