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 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 Active Builds (Python)
import requests response = requests.get( "https://api.myapp.com/v1/builds", headers={"Authorization": "Bearer YOUR_API_KEY"} ) print(response.json())