---
name: python-flask-api-boilerplate
description: "Generate a clean Flask API application structure with error handling. Use when the user wants help with Python Flask API Boilerplate. Related topics: coding, python, flask."
---

# Python Flask API Boilerplate

Generate a clean Flask API application structure with error handling.

## How to use this skill

1. Ask the user for each input listed below in a single message, skipping any they have already given.
2. Where options are listed, offer them, but accept other answers too.
3. Fill the answers into the prompt template, then follow the completed prompt to produce the result.

## Inputs

- **Enable Blueprint routing** (choose one: Yes, No)
- **Database ORM** (choose one: SQLAlchemy, MongoEngine, Raw SQL, None)
- **Authentication** (choose one: JWT, Session, API Key, None)
- **Allow all origins ()** (choose one: Yes, No)
- **Specific origin** (free text, e.g. "")

## Prompt template

## Introduction
Create a production-ready Python Flask REST API scaffold.

## Boilerplate options
- Enable Blueprint routing: {{Enable Blueprint routing}}
- Database ORM: {{Database ORM}}
- Authentication: {{Authentication}}

## CORS Configuration
- Allow all origins (*): {{Allow all origins ()}}
- Specific origin: {{Specific origin}}

---

Source: [Python Flask API Boilerplate on PromptBuild](https://promptbuild.io/prompt/w74fq8CPGtyoynITbMeH/python-flask-api-boilerplate)
