Use the Workspace API for supported project and workspace user automation.
workspaceId. Include your workspace name in the request; the name itself is not the ID.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>"}}'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. |
| SCIM id | A different identifier for the SCIM User resource. Never substitute it for a Workspace API user ID. |
upsertWorkspaceUser reconciles a user by workspace and normalized email. Repeating revokeWorkspaceUserAccess returns the same revoked result if the relationship is already absent. createProject creates a new identifier on every successful call; do not automatically retry 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.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.