The vals endpoints allow you to manipulate vals.
/v1/vals
https://www.val.town/embed/neverstew.postVals
/v1/vals/{val_id}
https://www.val.town/embed/neverstew.getVal
/v1/vals/{val_id}
https://www.val.town/embed/neverstew.deleteValExample
/v1/vals/{val_id}/versions
https://www.val.town/embed/neverstew.getValVersions
/v1/vals/{val_id}/versions
https://www.val.town/embed/neverstew.createValVersionExample
/v1/vals/{val_id}/versions/{version}
https://www.val.town/embed/neverstew.getValVersion
/v1/vals/{val_id}/versions/{version}
https://www.val.town/embed/neverstew.deleteValVersionExample
/v1/vals/{val_id}/runs