Skip to content

API Reference

REST API endpoints for the Nebion platform. Used by the Nebion CLI and available for custom integrations.

Endpoints at a Glance

MethodPathDescription
GET/api/meCurrent user and organizations
GET/api/projectsList projects
GET/api/projects/{id}/environmentsList environments for a project
GET/api/environments/{id}/logsContainer logs
GET/api/environments/{id}/tasksDeployment task history
GET/api/environments/{id}/diagnosticsError diagnostics for failed deploys
POST/api/servers/{id}/sshRequest SSH certificate

Authentication

All requests require an OAuth2 Bearer token:

Authorization: Bearer <access_token>

To obtain a token, log in with the CLI Tool:

bash
nebioncli login

The token is stored in ~/.config/nebioncli/credentials.json. You can use it for custom integrations.

Many endpoints also support the optional X-Nebion-Organization header to scope results to a specific organization.

Quick Example

bash
curl -s https://nebion.wsagency.io/api/projects \
  -H "Authorization: Bearer <access_token>" \
  -H "X-Nebion-Organization: 1"
json
[
  {
    "id": 42,
    "name": "My Project",
    "repo_url": "git@github.com:example/project.git",
    "domain": "example.com",
    "environment_count": 3,
    "servers": [
      {
        "id": 10,
        "name": "Production Server",
        "hostname": "192.168.1.100"
      }
    ]
  }
]

Interactive Reference

Expand any endpoint below to see parameters, request format, and example responses.