Use the Workspace API for supported project and workspace user automation.
Replace both placeholders before running this read request. For production automation, inject the key from your secret store.
curl --request POST 'https://api.diggle.com/procedure/getWorkspaceUsers' \
--header 'Authorization: Bearer <workspace-api-key>' \
--header 'Content-Type: application/json' \
--data '{"body":{"workspaceId":"<workspace-id>"}}'Check that the returned users belong to the intended workspace before making any write requests. A successful request returns HTTP 200 and a JSON array. Example showing selected fields:
[
{
"user_id": "<user-id>",
"name": "Example Trainer",
"email": "[email protected]",
"workspace_role": "creator",
"status": "registered"
}
]An empty result is []. Keep the returned user_id for operations that require the canonical Diggle user ID.
Send HTTPS POST requests to https://api.diggle.com/procedure/{procedureName} with Content-Type: application/json and a Workspace API Bearer key.
{
"body": {
"workspaceId": "<workspace-id>"
}
}Place procedure parameters inside body.
Successful calls normally return HTTP 200. The response is the procedure result directly: a JSON string identifier, an object, an array, or null. deleteProject returns no result body. There is no common data wrapper.
Create the key in the workspace you intend to manage. Workspace identifiers and project identifiers must refer to that workspace. Workspace API keys are separate from SCIM provisioning tokens and SSO credentials; they are not global Diggle account credentials.
| Identifier | Use |
|---|---|
| workspaceId | The selected workspace identifier. Ask Diggle for this value when enabling Workspace API; include your workspace name in the request. Do not use the display name as the ID. |
| projectId | Returned by createProject. |
| userId / user_id | Canonical Diggle account identifier returned by Workspace API user procedures. Use it for revokeWorkspaceUserAccess. |
| externalId | The identity provider’s reference on a SCIM User, such as Microsoft Entra objectId. It is neither a global Diggle user ID nor the SCIM resource ID, and is not by itself proof of account ownership. |
| SCIM id | A different identifier for the SCIM User resource. Never substitute it for a Workspace API user ID. |
upsertWorkspaceUser identifies users by normalized email. Repeated requests with deactivated: false perform a normal create or update without changing global account status. Requests with deactivated: true remove workspace access and can be safely repeated. revokeWorkspaceUserAccess also supports repeated calls. createProject generates a new identifier on every successful call, so avoid automatically retrying an ambiguous create. No caller-supplied idempotency key is documented.
Workspace API errors are plain text, not SCIM Error objects. Status handling varies by procedure; API & SCIM Errors describes the error formats. Do not interpret every 500 as a transient failure.
projects array replaces explicit project grants; omit it to retain them.getWorkspaceUsers or getWorkspaceUser.user_id through the Workspace API.workspaceId and userId.For compatibility with existing integrations, upsertWorkspaceUser also accepts deactivated: true to remove workspace access using the user’s email address. For new integrations, we recommend using revokeWorkspaceUserAccess with the canonical Diggle user ID.
As a workspace admin, select Rotate API key under Manage Workspace → Integrations, confirm, copy the replacement once and update your integration immediately. Verify it with the read request above. The replaced key stops working immediately.
active=true.