Skip to content

Cloud API

insider 2026-08-26 JSON ↗

API server for the Niksphere Cloud platform

Server & Base URL

All REST API endpoints documented below are relative to the Cloud base URL:

http
https://my.niksphere.de/api/v1

Endpoints Overview

MethodEndpointSummary
GET/api/v1/auth/meGet current user info
GET/api/v1/environmentsList environments
POST/api/v1/environmentsCreate a new environment
GET/api/v1/environments/check-slugCheck environment slug availability
PUT/api/v1/environments/{id}Edit an environment
DELETE/api/v1/environments/{id}Delete an environment
GET/api/v1/operationsList operations
GET/api/v1/regionsList available regions
GET/api/v1/tenantsList all tenants
POST/api/v1/tenantsCreate a new tenant
GET/api/v1/tenants/check-slugCheck tenant slug availability
PUT/api/v1/tenants/{id}Edit a tenant
DELETE/api/v1/tenants/{id}Delete a tenant
GET/api/v1/usersList all users
POST/api/v1/usersCreate a new user

Auth

GET /api/v1/auth/me

Get current user info

Returns the authenticated user's subject, role, and tenant ID from the JWT context

Responses:

Status CodeDescriptionSchema / Content
200OKniksphere-cloud_internal_handlers.AuthMeResponse
401Unauthorizedniksphere-cloud_internal_handlers.ErrorResponse

Environments

GET /api/v1/environments

List environments

Returns all environments visible to the authenticated user based on role and tenant

Responses:

Status CodeDescriptionSchema / Content
200OKArray<niksphere-cloud_internal_models.Environment>
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

POST /api/v1/environments

Create a new environment

Creates a new environment for a tenant and queues a provisioning operation

Parameters:

NameLocated inTypeRequiredDescription
tenantIdquerystringnoTenant ID (required for SUPERUSER)
bodybodyniksphere-cloud_internal_handlers.CreateEnvironmentRequestyesEnvironment details

Responses:

Status CodeDescriptionSchema / Content
202Acceptedniksphere-cloud_internal_handlers.EnvironmentCreatedResponse
400Bad Requestniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

GET /api/v1/environments/check-slug

Check environment slug availability

Validates an environment slug format and checks uniqueness within a tenant

Parameters:

NameLocated inTypeRequiredDescription
slugquerystringyesSlug to check
tenantIdquerystringnoTenant ID (used by SUPERUSER)
regionquerystringnoRegion ID for URL preview

Responses:

Status CodeDescriptionSchema / Content
200OKniksphere-cloud_internal_handlers.SlugCheckResponse

PUT /api/v1/environments/{id}

Edit an environment

Updates the name and/or slug of an existing environment

Parameters:

NameLocated inTypeRequiredDescription
idpathstringyesEnvironment ID
bodybodyniksphere-cloud_internal_handlers.EditEnvironmentRequestyesFields to update

Responses:

Status CodeDescriptionSchema / Content
200OKniksphere-cloud_internal_models.Environment
400Bad Requestniksphere-cloud_internal_handlers.ErrorResponse
404Not Foundniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

DELETE /api/v1/environments/{id}

Delete an environment

Queues an environment deletion operation and sets its status to DELETING

Parameters:

NameLocated inTypeRequiredDescription
idpathstringyesEnvironment ID

Responses:

Status CodeDescriptionSchema / Content
202Acceptedniksphere-cloud_internal_handlers.OperationQueuedResponse
404Not Foundniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

Operations

GET /api/v1/operations

List operations

Returns all operations visible to the authenticated user based on role and tenant

Responses:

Status CodeDescriptionSchema / Content
200OKArray<niksphere-cloud_internal_models.Operation>
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

Regions

GET /api/v1/regions

List available regions

Returns the list of all available deployment regions

Responses:

Status CodeDescriptionSchema / Content
200OKArray<niksphere-cloud_internal_models.Region>

Tenants

GET /api/v1/tenants

List all tenants

Returns all tenants. Requires SUPERUSER role.

Responses:

Status CodeDescriptionSchema / Content
200OKArray<niksphere-cloud_internal_models.Tenant>
403Forbiddenniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

POST /api/v1/tenants

Create a new tenant

Creates a new tenant with the given name and slug. Requires SUPERUSER role.

Parameters:

NameLocated inTypeRequiredDescription
bodybodyniksphere-cloud_internal_handlers.CreateTenantRequestyesTenant details

Responses:

Status CodeDescriptionSchema / Content
201Createdniksphere-cloud_internal_models.Tenant
400Bad Requestniksphere-cloud_internal_handlers.ErrorResponse
403Forbiddenniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

GET /api/v1/tenants/check-slug

Check tenant slug availability

Validates a tenant slug format and checks uniqueness. Requires SUPERUSER role.

Parameters:

NameLocated inTypeRequiredDescription
slugquerystringyesSlug to check

Responses:

Status CodeDescriptionSchema / Content
200OKniksphere-cloud_internal_handlers.SlugCheckResponse
403Forbiddenniksphere-cloud_internal_handlers.ErrorResponse

PUT /api/v1/tenants/{id}

Edit a tenant

Updates the name and/or slug of an existing tenant. Requires SUPERUSER role.

Parameters:

NameLocated inTypeRequiredDescription
idpathstringyesTenant ID
bodybodyniksphere-cloud_internal_handlers.EditTenantRequestyesFields to update

Responses:

Status CodeDescriptionSchema / Content
200OKniksphere-cloud_internal_models.Tenant
400Bad Requestniksphere-cloud_internal_handlers.ErrorResponse
403Forbiddenniksphere-cloud_internal_handlers.ErrorResponse
404Not Foundniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

DELETE /api/v1/tenants/{id}

Delete a tenant

Queues a tenant deletion operation and sets its status to DELETING. Requires SUPERUSER role.

Parameters:

NameLocated inTypeRequiredDescription
idpathstringyesTenant ID

Responses:

Status CodeDescriptionSchema / Content
202Acceptedniksphere-cloud_internal_handlers.OperationQueuedResponse
403Forbiddenniksphere-cloud_internal_handlers.ErrorResponse
404Not Foundniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

Users

GET /api/v1/users

List all users

Returns all user accounts. Requires SUPERUSER role.

Responses:

Status CodeDescriptionSchema / Content
200OKArray<User>
403Forbiddenniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

POST /api/v1/users

Create a new user

Creates a new user identity, credential, and cloud user profile. Requires SUPERUSER role.

Parameters:

NameLocated inTypeRequiredDescription
bodybodyniksphere-cloud_internal_handlers.CreateUserRequestyesUser details

Responses:

Status CodeDescriptionSchema / Content
201CreatedUser
400Bad Requestniksphere-cloud_internal_handlers.ErrorResponse
403Forbiddenniksphere-cloud_internal_handlers.ErrorResponse
500Internal Server Errorniksphere-cloud_internal_handlers.ErrorResponse

Data Models & Schemas

User

PropertyTypeDescription
created_atstring
idstring
identitiesArray<UserIdentity>Associations
namestring
tenantIdstring
typeUserRole
updated_atstring

UserIdentity

PropertyTypeDescription
created_atstring
idstring
identityIdstring
userIdstring

UserRole

niksphere-cloud_internal_handlers.AuthMeResponse

PropertyTypeDescription
rolestring
substring
tenantIdstring

niksphere-cloud_internal_handlers.CreateEnvironmentRequest

PropertyTypeDescription
namestring
regionstring
slugstring

niksphere-cloud_internal_handlers.CreateTenantRequest

PropertyTypeDescription
namestring
slugstring

niksphere-cloud_internal_handlers.CreateUserRequest

PropertyTypeDescription
passwordstring
tenantIdstring
typestring
usernamestring

niksphere-cloud_internal_handlers.EditEnvironmentRequest

PropertyTypeDescription
namestring
slugstring

niksphere-cloud_internal_handlers.EditTenantRequest

PropertyTypeDescription
namestring
slugstring

niksphere-cloud_internal_handlers.EnvironmentCreatedResponse

PropertyTypeDescription
environmentniksphere-cloud_internal_models.Environment
messagestring
operation_idstring

niksphere-cloud_internal_handlers.ErrorResponse

PropertyTypeDescription
errorstring

niksphere-cloud_internal_handlers.OperationQueuedResponse

PropertyTypeDescription
messagestring
operation_idstring

niksphere-cloud_internal_handlers.SlugCheckResponse

PropertyTypeDescription
errorstring
urlstring
validboolean

niksphere-cloud_internal_models.ActionType

niksphere-cloud_internal_models.Engine

PropertyTypeDescription
createdAtstring
environmentIdstring
externalIdstringe.g. Railway Container Service ID
idstring
namestring
statusstring
urlstring

niksphere-cloud_internal_models.Environment

PropertyTypeDescription
createdAtstring
engineniksphere-cloud_internal_models.Engine
externalIdstringe.g. Railway Environment ID
idstring
namestringe.g. "Acme Workshop"
regionstringselected region ID
regionInfoanyEnriched dynamically on API read (ignored by GORM)
slugstringe.g. "acme-workshop"
statusstringPENDING, READY, DELETING
tenantanyAssociations
tenantIdstring

niksphere-cloud_internal_models.EnvironmentProvider

niksphere-cloud_internal_models.Operation

PropertyTypeDescription
actionDetailsstring
actionTypeniksphere-cloud_internal_models.ActionType
createdAtstring
createdBystring
endsOnstring
idstring
logsstring
resultniksphere-cloud_internal_models.OperationResult
scheduledOnstring
startedOnstring
statusniksphere-cloud_internal_models.OperationStatus
tenantIdstring

niksphere-cloud_internal_models.OperationResult

niksphere-cloud_internal_models.OperationStatus

niksphere-cloud_internal_models.Region

PropertyTypeDescription
idniksphere-cloud_internal_models.RegionID
namestring
providerniksphere-cloud_internal_models.EnvironmentProvider
subdomainstring

niksphere-cloud_internal_models.RegionID

niksphere-cloud_internal_models.Tenant

PropertyTypeDescription
createdAtstring
idstring
namestring
slugstring
statusstringREADY, DELETING

Release v1.0.0-build.33-channel.insider