How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Val Town vals API

These endpointslet you get, create, and run vals.

Val Town vals API is one of 13 APIs that Val Town publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include vals. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 17 operations across 8 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version 1.

Requests are made against a single base URL, https://api.val.town.

17 operations 8 paths 5 schemas 4 DELETE7 GET4 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1
Base URL
https://api.val.town
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Val Town vals API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth).

  • bearerAuth — Endpoints that support authorization expect Bearer authentication, using an API token provided from Val Town.

Paths & Operations 17

Across 8 paths, the API surfaces 17 operations — 4 DELETE, 7 GET, 4 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

vals 17

These endpoints let you get, create, and run vals.

GET
/v2/vals/{val_id}
Get a val by id
valsGet2 1 param → 200
DELETE
/v2/vals/{val_id}
Delete a project
projectsDelete2 1 param → 204404
GET
/v2/vals
Lists all vals including all public vals and your unlisted and private vals
valsList2 4 params → 200
POST
/v2/vals
Create a new val
valsCreate2 body → 201409
GET
/v2/vals/{val_id}/branches/{branch_id}
Get a branch by id
branchesGet2 2 params → 200
DELETE
/v2/vals/{val_id}/branches/{branch_id}
Delete a branch
branchesDelete2 2 params → 204404
GET
/v2/vals/{val_id}/branches
List all branches for a val
branchesList2 3 params → 200
POST
/v2/vals/{val_id}/branches
Create a new branch
branchesCreate2 1 param body → 201409
GET
/v2/vals/{val_id}/files
Get metadata for files and directories in a val. If path is an empty string, returns files at the root directory.
valFilesGet2 7 params → 200
POST
/v2/vals/{val_id}/files
Create a new file, project val or directory
filesCreate2 3 params body → 201409
DELETE
/v2/vals/{val_id}/files
Deletes a file or a directory. To delete a directory and all of its children, use the recursive flag. To delete all files, pass in an empty path and the recursive flag.
filesDelete2 4 params → 204404
PUT
/v2/vals/{val_id}/files
Update a file's content
fileContentUpdate2 3 params body → 200201
GET
/v2/vals/{val_id}/environment_variables
List environment variables defined in this project. This only includes names, not values.
valEnvironmentVariablesList 3 params → 200
POST
/v2/vals/{val_id}/environment_variables
Create a new environment variable scoped to this project.
valEnvironmentVariablesCreate 1 param body → 201409
PUT
/v2/vals/{val_id}/environment_variables/{key}
Update a environment variable scoped to this project.
valEnvironmentVariablesCreate 2 params body → 201
DELETE
/v2/vals/{val_id}/environment_variables/{key}
Delete a environment variable scoped to this project.
valEnvironmentVariablesDelete 2 params → 204404
GET
/v2/vals/{val_id}/files/content
Download file content
filesContentGet2 9 params → 200304412

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Val (8 properties), Branch (7 properties), FileRevisionMetadataV2 (7 properties), TEnvironmentVariable (4 properties). Each schema is shown below with its type and property counts.

FileRevisionMetadataV2
object
A File or Directory's Metadata
7 properties 7 required
Branch
object
A Branch
7 properties 7 required
TEnvironmentVariable
object
An environment variable
4 properties 4 required
PaginationLinks
object
Links to use for pagination
3 properties 1 required
Val
object
A Val
8 properties 8 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

val-town-vals-api-openapi.yml Raw ↑

Other APIs Val Town publishes across the network.

Val Town TypeScript SDK
Val Town MCP Server
Val Town alias API
Val Town blobs API
Val Town connections API
Val Town emails API
Val Town files API
Val Town me API
Val Town orgs API
Val Town sqlite API
Val Town telemetry API
Val Town users API
Where this information came from

This is an independent, third-party profile of Val Town vals API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.