This example shows how to use Flask 3 on Vercel with Serverless Functions using the Python Runtime.
https://flask-python-template.vercel.app/
This example uses the Web Server Gateway Interface (WSGI) with Flask to enable handling requests on Vercel with Serverless Functions.
npm i -g vercel
vercel dev
Your Flask application is now available at http://localhost:3000
.
Deploy the example using Vercel:
This part of the documentation will explain how various APIs can be used to interact with the list services.
To add a user to a list, send a POST request to the /add_user_to_list
endpoint with the following JSON payload:
{
"list_uri": "at://did:plc:abcdefg/app.bsky.graph.list/list_rkey",
"user_did": "did:plc:1234567890"
}
curl -X POST -H "Content-Type: application/json" -d '{"list_uri": "at://did:plc:abcdefg/app.bsky.graph.list/list_rkey", "user_did": "did:plc:1234567890"}' http://localhost:3000/add_user_to_list
On successful addition of a user to a list, the API will return a JSON response:
{
"result": "User [user_did] added to list: [list_uri]"
}