API Documentation
Power your applications with MyApp's flexible and scalable REST/GraphQL API.
Reference
Authentication
Use API tokens for authentication. Include your token in the Authorization
header.
curl -X GET https://api.myapp.com/v1/projects \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Endpoints
Project Management
- GET
/api/v1/projects
- List all projects - POST
/api/v1/projects
- Create new project - PUT
/api/v1/projects/{id}
- Update project configuration
Build Management
- POST
/api/v1/builds
- Initiate build - GET
/api/v1/builds
- List recent builds - DELETE
/api/v1/builds/{id}
- Cancel active build
Code Examples
Create Project (cURL)
curl -X POST https://api.myapp.com/v1/projects \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "My First Project", "type": "web"}'
List Builds (Python)
import requests response = requests.get( "https://api.myapp.com/v1/builds", headers={"Authorization": "Bearer YOUR_API_KEY"} ) print(response.json())
Rate Limiting
We enforce rate limits to ensure fair usage:
- 1000 requests/minute (free tier)
- 10,000 requests/minute (pro tier)
- Unlimited (enterprise plan)
Tip: Check the X-RateLimit-Remaining
header for remaining quota.