Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7Burl%7D?q=api&page=56&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 19729 results for "api"(2809ms)

myApi1 file match

@vandyand•Updated 1 year ago

myApi1 file match

@scottmcclung•Updated 1 year ago

myApi1 file match

@elrey741•Updated 1 year ago

myApi1 file match

@jfbouzereau•Updated 1 year ago

myApi1 file match

@elsurudo•Updated 1 year ago

myApi1 file match

@klmklm•Updated 1 year ago

myApi1 file match

@shaparder•Updated 1 year ago

myApi1 file match

@ridge•Updated 1 year ago

myApi1 file match

@wonday•Updated 1 year ago

myApi1 file match

@daleseo•Updated 1 year ago
Plantfo

Plantfocache.ts1 match

@Llad•Updated 3 mins ago
114 } catch (error) {
115 console.error("Error caching plant:", error);
116 // Don't throw error - caching failure shouldn't break the API
117 }
118}

send-transcriptsREADME.md10 matches

@sunnyatlightswitch•Updated 26 mins ago
1# Text Email API
2
3A simple API endpoint that receives text and emails it directly to configured recipients.
4
5## Recipients
6
7The API sends emails directly to:
8- sunny@getlightswitch.com
9- sunny.p.israni@gmail.com
30```
31
32## API Endpoints
33
34### POST /api/text
35Send text content via email to all configured recipients.
36
52```
53
54### GET /api/text
55Get email service status and recipient information.
56
77### Send text using curl:
78```bash
79curl -X POST https://your-val-url/api/text \
80 -H "Content-Type: application/json" \
81 -d '{"text": "Hello, this is my message!"}'
84### Check service status:
85```bash
86curl https://your-val-url/api/text
87```
88
89## Error Handling
90
91The API returns appropriate HTTP status codes:
92- 200: Success (email sent)
93- 400: Bad request (missing or invalid text)
99
1001. **Update email recipients** in the code (replace the example emails)
1012. **Test the API** with a sample message
1023. **Check recipient inboxes** to confirm delivery
103
vapicxy
stevenvapi