API Endpoints

Explore the full technical specification of our REST and GraphQL APIs.

📡

REST APIs

Resource-oriented endpoints following standard HTTP methods.

🧠

GraphQL

Flexible data querying with schema-based validation.

Available Endpoints

REST Endpoints

GET
/api/v2/user/{id}

User Details

Retrieve user information and associated resources.
Parameters
{ "id": "string", "username": "string", "resources": { "projects": "/api/v2/user/{id}/projects", "tokens": "/api/v2/user/{id}/tokens" } }
POST
/api/v2/projects

Create Project

Create a new development project with resource allocations.
Request
{ "name": "My Project", "type": "web", "resources": ["compute", "storage"] }
Response
{ "id": "prj-12345", "status": "active", "resources": { "compute": "running", "storage": "80GB" } }
DELETE
/api/v2/tokens/{token}

Revoke Token

Remove access permissions for a specific API token.
Query Parameters
{ "token": "abc123xyz", "reason": "compromised" }
POST
/api/graphql

GraphQL Query

Flexible querying of system resources with field-specific filtering.
Example Mutation
{ "query": "mutation { updateProject(id: \"prj-12345\", status: \"inactive\") }" }
Response
{ "status": "success", "message": "Project status updated", "resources": { "compute": "stopped", "storage": "80GB" } }