Projects & README
Projects are the top-level container in Foundry. Each project has its own API key, settings, and features (feedback, roadmap, testimonials, changelog, waitlist, analytics).
Project README
Section titled “Project README”Each project has an optional markdown README accessible via API. Use it to store project documentation, setup instructions, or notes that AI agents can read.
Get README (API Key)
Section titled “Get README (API Key)”curl https://api.sassmaker.com/v1/projects/readme \ -H "X-Project-Key: pk_your_api_key"Update README (API Key)
Section titled “Update README (API Key)”curl -X PUT https://api.sassmaker.com/v1/projects/readme \ -H "Content-Type: application/json" \ -H "X-Project-Key: pk_your_api_key" \ -d '{ "content": "# My Project\n\nSetup instructions here..." }'SDK Usage
Section titled “SDK Usage”import { SaaSMakerClient } from '@saas-maker/sdk';
const client = new SaaSMakerClient({ apiKey: 'pk_your_api_key' });
// Readconst { readme } = await client.projects.getReadme();
// Writeawait client.projects.updateReadme('# My Project\n\nUpdated docs.');Dashboard Endpoints (Session Auth)
Section titled “Dashboard Endpoints (Session Auth)”These require a session Bearer token (used by the dashboard UI):
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/projects | List all projects |
| POST | /v1/projects | Create a project |
| GET | /v1/projects/by-slug/:slug | Get project by slug |
| PATCH | /v1/projects/:id | Update project (name, rate limits) |
| DELETE | /v1/projects/:id | Delete project |
| GET | /v1/projects/:id/readme | Get README |
| PUT | /v1/projects/:id/readme | Update README |
Rate Limiting
Section titled “Rate Limiting”Each project has configurable rate limiting for API-key-authenticated requests:
rate_limit_rpm— Requests per minute (default: 60)rate_limit_enabled— Enable/disable rate limiting (default: true)
Configure via the dashboard settings page or the PATCH endpoint:
curl -X PATCH https://api.sassmaker.com/v1/projects/:id \ -H "Authorization: Bearer your_session_token" \ -H "Content-Type: application/json" \ -d '{ "rate_limit_rpm": 120 }'Rate-limited responses return 429 Too Many Requests with headers:
X-RateLimit-Limit— Configured RPMX-RateLimit-Remaining— Requests remaining in windowRetry-After— Seconds until window resets
fnd projects listfnd projects create --name "My App"fnd projects update --id <id> --name "New Name"fnd projects delete --id <id> --force