• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
pomdtr

pomdtr

token

Public
Like
token
Home
Code
2
README.md
main.ts
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
12/21/2025
README.md

token

A simple utility val that reads and displays the Val Town API token from the environment.

Description

This val accesses the valtown environment variable, which contains your Val Town API token. This is useful for:

  • Testing environment variable access
  • Verifying your token is correctly configured
  • Quick debugging of authentication issues

Usage

This is a script-type val that logs the token value when executed:

console.log(Deno.env.get("valtown"));

Environment Variables

  • valtown - Your Val Town API token (automatically provided by the platform)

Notes

⚠️ Security Warning: Be careful when logging or exposing API tokens. This val is intended for debugging purposes only. In production code, never log sensitive credentials or expose them in HTTP responses.

Related

  • Val Town Environment Variables Documentation
  • Val Town API Documentation
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.