Admin API
The admin API provides a way to create, delete, and list workspaces. To use the user API, you’ll first need to generate a user API key. This can be done via the “Regenerate user API key” link on your dashboard.
Your cloud service username and API key should be specified via the X-Authorization header:
X-Authorization: username:apiKey
Get all workspaces
Gets the metadata for all workspaces (i.e. ID, name, API key/secret pair, etc).
GEThttps://api.structurizr.com/workspace
Example:
curl --header "X-Authorization: [email protected]:1234567890" https://api.structurizr.com/workspace
Create workspace
Creates a new workspace.
POSThttps://api.structurizr.com/workspace
Example:
curl -X POST --header "X-Authorization: [email protected]:1234567890" https://api.structurizr.com/workspace
Delete workspace
Deletes the specified workspace.
DELETEhttps://api.structurizr.com/workspace/{workspaceId}
Example:
curl -X DELETE --header "X-Authorization: [email protected]:1234567890" https://api.structurizr.com/workspace/1234
Notes
- This is a paid cloud service feature.