API Endpoints

Complete list of available endpoints for programmatic access to our platform.

Projects Endpoint

GET /api/v1/projects

Retrieve all projects associated with your account

curl -X GET "https://api.emema.com/v1/projects" \
  -H "Authorization: Bearer YOUR_API_KEY"

POST /api/v1/projects

Create a new project

curl -X POST "https://api.emema.com/v1/projects" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"MyNewSite","region":"us-east-1"}'
200 OK → [project_data]
Project listing response

Deployments Endpoint

GET /api/v1/deployments

List all active deployments

curl -X GET "https://api.emema.com/v1/deployments" \
  -H "Authorization: Bearer YOUR_API_KEY"

POST /api/v1/deployments/{id}/rollback

Rollback to a previous deployment version

curl -X POST "https://api.emema.com/v1/deployments/789123/rollback" \
  -H "Authorization: Bearer YOUR_api_KEY"
201 Created → {deploy_status}
Deployment action response

User Management Endpoint

GET /api/v1/users/me

Retrieve information about your account

curl -X GET "https://api.emema.com/v1/users/me" \
  -H "Authorization: Bearer YOUR_api_KEY"

PUT /api/v1/users/{id}

Update user profile information

curl -X PUT "https://api.emema.com/v1/users/789123" \
  -H "Authorization: Bearer YOUR_api_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"newemail@example.com"}'
204 No Content
Successful profile update