Introduction
The GitFolio API is a REST API that allows you to programmatically manage developer portfolios, including profile data, repositories, education, experience, and premium templates.Base URL
All API requests should be made to:API Versioning
The current API version isv1. The version is included in the URL path for all endpoints.
Request Format
All requests should:- Use HTTPS in production
- Include
Content-Type: application/jsonheader for POST requests - Include
Authorization: Bearer <token>header for authenticated endpoints
Response Format
All API responses follow a consistent format:Success Response
Error Response
HTTP Status Codes
The API uses standard HTTP status codes:| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Missing or invalid authentication |
| 403 | Forbidden - Valid auth but insufficient permissions |
| 404 | Not Found - Resource doesn’t exist |
| 500 | Internal Server Error |
Rate Limiting
Currently, the GitFolio API does not enforce rate limits. However, we recommend:- Maximum 100 requests per minute per user
- Implement exponential backoff for failed requests
- Cache responses when appropriate
CORS Policy
The API supports CORS for the following origins:https://gitfolio.inhttps://www.gitfolio.inhttps://*.gitfolio.in(all subdomains)http://localhost:3000(development)http://localhost:4000(development)
Authentication
Most endpoints require authentication using Clerk. See the Authentication page for details.Public Endpoints
The following endpoints are publicly accessible without authentication:GET /api/v1/renderer/:username- Get public portfolio dataGET /api/v1/renderer/image/:username- Get portfolio image dataGET /api/health- Health check
Pagination
Currently, the API does not implement pagination. All results are returned in a single response.Next Steps
Authentication
Learn how to authenticate API requests
Dashboard API
Manage user profiles and portfolio data
Onboarding
Import GitHub data for new users
Payments
Handle premium template purchases