API reference

MSPs

Create, list, read, update and delete the MSP workspaces under a Master workspace.

An MSP workspace sits under a Master workspace and holds client workspaces. Two endpoint families manage MSPs and they return different JSON:

Familyid in the responseUse for
/v1/admin/mspsThe MSP workspace's UUIDCreate, list and read. The Master is taken from the key, so the URL has no workspace
/v1/workspaces/:workspace_id/mspsThe MSP's public ID (msp_...)Create, list, read, update, delete and logo upload

Both shapes carry the msp_... public ID: msp_public_id in the first, id in the second. The legacy client endpoint (POST /v1/workspaces/:workspace_id/children) takes it as msp_id. To get the workspace UUID of an MSP you created through the second family, call Retrieve an MSP with its msp_... ID.

Authentication#

Every call sends a workspace key and a second credential.

Headershttp
Authorization: Bearer scworks_...X-Authorization: Bearer scm2m_...

X-Authorization carries an M2M token or the JWT of a member of the workspace.

  • /v1/admin/msps: the key must be a Master workspace key. The M2M token's app must be in the Master workspace or a workspace below it.
  • /v1/workspaces/:workspace_id/msps: the key must belong to the workspace in the URL, which must be a Master or MSP workspace. The M2M token's app must be in that same workspace.
StatusBody errorWhen
401Master Workspace API key required/v1/admin/msps without a valid workspace key
401Master Workspace key must be paired with an M2M token (scm2m_...) or member JWT in X-Authorization/v1/admin/msps without X-Authorization
401Workspace key must be paired with an M2M token (scm2m_...) or a member user JWT in the X-Authorization header/v1/workspaces/:workspace_id/msps without X-Authorization
401Invalid or expired M2M tokenThe M2M token is unknown or expired
403Endpoint requires a Master Workspace API keyThe key belongs to a workspace that is not a Master
403M2M token does not belong to the Master workspaceThe token's app is outside the Master's tree
403M2M token does not belong to the workspace identified by the workspace keyThe token's app is in another workspace than the key's
403Workspace key does not belong to this workspaceThe key is not the URL workspace's
403MSPs can only be provisioned under a Master or MSP workspaceThe URL workspace is standard or a client
404Workspace not foundThe URL workspace does not exist

Calls that change data need the M2M token's write scope; reads need read.

Endpoints#

Create an MSP#

Creates an MSP workspace under the Master workspace that owns the key. The new MSP has no verification app and uses the Master's. The slug is <master-slug>-msp-<name>, with a numeric suffix when it is taken.

POST/v1/admin/mspsWorkspace key + M2M token
namestring
Display name. Without it the MSP is named Untitled MSP.
branding_display_namestring
Name shown on verification pages and emails. Defaults to name.
branding_colorstring
Hex color, for example #5B21B6.
branding_logo_urlstring
Public URL of a logo image.
Requestbash
curl -X POST https://api.scute.io/v1/admin/msps \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{"name": "Acme Telecom", "branding_color": "#5B21B6"}'
Response 201json
{  "msp": {    "id": "a4b2c1e9-d8f5-474e-b7e8-441007c93870",    "slug": "example-master-msp-acme-telecom",    "msp_public_id": "msp_a4b2c1KQ7nVx9LpRsT2u",    "parent_workspace_id": "ebb519f4-97dc-4ab1-81a2-a47cb5d6f905",    "workspace_type": "msp",    "name": "Acme Telecom",    "branding": {      "display_name": "Acme Telecom",      "color": "#5B21B6",      "logo_url": null    },    "client_count": 0,    "created_at": "2026-11-02T10:30:00.000Z"  }}

A validation failure (for example an invalid color) returns 422 with the validation message in error.

List MSPs#

Lists the MSP workspaces under the Master, ordered by name.

GET/v1/admin/mspsWorkspace key + M2M token
Requestbash
curl https://api.scute.io/v1/admin/msps \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "master_workspace_id": "ebb519f4-97dc-4ab1-81a2-a47cb5d6f905",  "msps": [    {      "id": "a4b2c1e9-d8f5-474e-b7e8-441007c93870",      "slug": "example-master-msp-acme-telecom",      "msp_public_id": "msp_a4b2c1KQ7nVx9LpRsT2u",      "parent_workspace_id": "ebb519f4-97dc-4ab1-81a2-a47cb5d6f905",      "workspace_type": "msp",      "name": "Acme Telecom",      "branding": { "display_name": "Acme Telecom", "color": "#5B21B6", "logo_url": null },      "client_count": 3,      "created_at": "2026-11-02T10:30:00.000Z"    }  ]}

Retrieve an MSP#

Returns one MSP workspace in the /v1/admin/msps shape.

GET/v1/admin/msps/:idWorkspace key + M2M token
idstringrequired
The MSP workspace's UUID or its msp_... public ID.
Requestbash
curl https://api.scute.io/v1/admin/msps/msp_a4b2c1KQ7nVx9LpRsT2u \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"

The response is {"msp": {...}} with the fields shown under Create an MSP. An MSP that is not under the Master returns 404 with MSP Workspace not found.

Create an MSP (workspace path)#

Creates an MSP record and its MSP workspace under the workspace in the URL. This path takes logo_url and primary_color; the branding_* fields of /v1/admin/msps are ignored here.

POST/v1/workspaces/:workspace_id/mspsWorkspace key + M2M token
workspace_idstringrequired
UUID or slug of the Master workspace. The key must belong to it.
namestringrequired
Display name.
slugstring
Lowercase letters, digits and dashes. Generated from name when omitted. Unique within the parent workspace.
logo_urlstring
Public URL of a logo image.
primary_colorstring
Hex color, for example #5B21B6.
Requestbash
curl -X POST https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{"name": "Acme Telecom", "slug": "acme-telecom", "primary_color": "#5B21B6"}'
Response 201json
{  "msp": {    "id": "msp_a4b2c1KQ7nVx9LpRsT2u",    "name": "Acme Telecom",    "created_at": "2026-11-02T10:30:00.000Z",    "slug": "acme-telecom",    "parent_workspace_id": "ebb519f4-97dc-4ab1-81a2-a47cb5d6f905",    "uploaded_logo_url": null,    "logo_url": null,    "primary_color": "#5B21B6",    "workspaces_count": 0  }}

logo_url is the uploaded logo when there is one, else the stored URL, else the parent workspace's logo. A validation failure (name missing, slug taken or malformed, invalid color) returns 422 with the messages joined in error.

List MSPs (workspace path)#

Lists the MSPs under the workspace in the URL, ordered by name, in the msp_... shape.

GET/v1/workspaces/:workspace_id/mspsWorkspace key + M2M token
Requestbash
curl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "workspace_id": "ebb519f4-97dc-4ab1-81a2-a47cb5d6f905",  "msps": [    {      "id": "msp_a4b2c1KQ7nVx9LpRsT2u",      "name": "Acme Telecom",      "created_at": "2026-11-02T10:30:00.000Z",      "slug": "acme-telecom",      "parent_workspace_id": "ebb519f4-97dc-4ab1-81a2-a47cb5d6f905",      "uploaded_logo_url": null,      "logo_url": null,      "primary_color": "#5B21B6",      "workspaces_count": 3    }  ]}

Retrieve an MSP (workspace path)#

GET/v1/workspaces/:workspace_id/msps/:idWorkspace key + M2M token
workspace_idstringrequired
UUID or slug of the parent workspace.
idstringrequired
The MSP's msp_... public ID.
Requestbash
curl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps/msp_a4b2c1KQ7nVx9LpRsT2u \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"

Returns {"msp": {...}} in the shape shown under Create an MSP (workspace path). An unknown or deleted MSP returns 404 with MSP not found.

Update an MSP#

Changes the MSP's name, slug, logo URL or color. Send only the fields to change. Name, logo URL and color are copied to the MSP workspace's branding.

PATCH/v1/workspaces/:workspace_id/msps/:idWorkspace key + M2M token
workspace_idstringrequired
UUID or slug of the parent workspace.
idstringrequired
The MSP's msp_... public ID.
namestring
New display name.
slugstring
New slug. Unique within the parent workspace.
logo_urlstring
Public URL of a logo image.
primary_colorstring
Hex color.
Requestbash
curl -X PATCH https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps/msp_a4b2c1KQ7nVx9LpRsT2u \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{"name": "Acme Telecom Inc."}'

Returns 200 with {"msp": {...}}. Errors: 404 MSP not found, 422 on a validation failure.

Delete an MSP#

Soft-deletes the MSP. The MSP workspace, its apps and every client workspace under it, with their apps, are soft-deleted too. The rows are kept with discarded_at set and drop out of every listing.

DELETE/v1/workspaces/:workspace_id/msps/:idWorkspace key + M2M token
Requestbash
curl -X DELETE https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps/msp_a4b2c1KQ7nVx9LpRsT2u \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"

Returns 204 with no body. An unknown MSP returns 404.

Attaches a logo file to the MSP. Send it as multipart/form-data. An uploaded logo takes precedence over logo_url.

POST/v1/workspaces/:workspace_id/msps/:id/upload_logoWorkspace key + M2M token
logofilerequired
JPEG, PNG, GIF, WebP or SVG, at most 5 MB.
Requestbash
curl -X POST https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps/msp_a4b2c1KQ7nVx9LpRsT2u/upload_logo \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -F "logo=@logo.png"

Returns 200 with {"msp": {...}}, uploaded_logo_url set.

StatusBody error
422Logo file is required
422Invalid file type. Allowed: JPEG, PNG, GIF, WebP, SVG
422File too large. Maximum size is 5MB
422Failed to upload logo

Removes the uploaded logo. logo_url falls back to the stored URL or the parent workspace's logo.

DELETE/v1/workspaces/:workspace_id/msps/:id/delete_logoWorkspace key + M2M token
Requestbash
curl -X DELETE https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps/msp_a4b2c1KQ7nVx9LpRsT2u/delete_logo \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"

Returns 200 with {"msp": {...}}. With no uploaded logo it returns 422 with No logo to delete.