An MSP workspace sits under a Master workspace and holds client workspaces. Two endpoint families manage MSPs and they return different JSON:
| Family | id in the response | Use for |
|---|---|---|
| /v1/admin/msps | The MSP workspace's UUID | Create, list and read. The Master is taken from the key, so the URL has no workspace |
| /v1/workspaces/:workspace_id/msps | The 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.
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.
| Status | Body error | When |
|---|---|---|
| 401 | Master Workspace API key required | /v1/admin/msps without a valid workspace key |
| 401 | Master Workspace key must be paired with an M2M token (scm2m_...) or member JWT in X-Authorization | /v1/admin/msps without X-Authorization |
| 401 | Workspace 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 |
| 401 | Invalid or expired M2M token | The M2M token is unknown or expired |
| 403 | Endpoint requires a Master Workspace API key | The key belongs to a workspace that is not a Master |
| 403 | M2M token does not belong to the Master workspace | The token's app is outside the Master's tree |
| 403 | M2M token does not belong to the workspace identified by the workspace key | The token's app is in another workspace than the key's |
| 403 | Workspace key does not belong to this workspace | The key is not the URL workspace's |
| 403 | MSPs can only be provisioned under a Master or MSP workspace | The URL workspace is standard or a client |
| 404 | Workspace not found | The 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.
/v1/admin/mspsWorkspace key + M2M tokencurl -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"}'{ "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.
/v1/admin/mspsWorkspace key + M2M tokencurl https://api.scute.io/v1/admin/msps \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "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.
/v1/admin/msps/:idWorkspace key + M2M tokencurl 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.
/v1/workspaces/:workspace_id/mspsWorkspace key + M2M tokencurl -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"}'{ "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.
/v1/workspaces/:workspace_id/mspsWorkspace key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/msps \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "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)#
/v1/workspaces/:workspace_id/msps/:idWorkspace key + M2M tokencurl 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.
/v1/workspaces/:workspace_id/msps/:idWorkspace key + M2M tokencurl -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.
/v1/workspaces/:workspace_id/msps/:idWorkspace key + M2M tokencurl -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.
Upload an MSP logo#
Attaches a logo file to the MSP. Send it as multipart/form-data. An uploaded logo takes precedence over logo_url.
/v1/workspaces/:workspace_id/msps/:id/upload_logoWorkspace key + M2M tokencurl -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.
| Status | Body error |
|---|---|
| 422 | Logo file is required |
| 422 | Invalid file type. Allowed: JPEG, PNG, GIF, WebP, SVG |
| 422 | File too large. Maximum size is 5MB |
| 422 | Failed to upload logo |
Delete an MSP logo#
Removes the uploaded logo. logo_url falls back to the stored URL or the parent workspace's logo.
/v1/workspaces/:workspace_id/msps/:id/delete_logoWorkspace key + M2M tokencurl -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.