Skip to content

Space API

Space is inSCADA’s multi-workspace (multi-tenant) structure. Each space contains independent projects, users, and configurations.

Lists all spaces.

Terminal window
curl -b cookies.txt http://localhost:8081/api/spaces \
-H "X-Space: default_space"

Response:

[
{
"id": 1,
"name": "default_space",
"createdBy": "inscada",
"creationDate": "2024-04-24T11:05:55.076+03:00"
},
{
"id": 2,
"name": "claude",
"createdBy": "inscada",
"creationDate": "2026-03-04T13:36:31.143+03:00"
}
]
MethodEndpointDescription
GET/api/spacesSpace list
GET/api/spaces/{id}Space details
POST/api/spacesCreate a new space
PUT/api/spaces/{id}Update a space
DELETE/api/spaces/{id}Delete a space
Terminal window
curl -b cookies.txt -X POST http://localhost:8081/api/spaces \
-H "Content-Type: application/json" \
-d '{"name": "production"}'

The X-Space header is used in all API requests to specify which space the request operates in:

X-Space: default_space

If this header is not sent, the default space is used.