OUTCOME · Discover
What changes
Returns active memberships only. It does not select a workspace or change access.
v2Workspace Management
/api/v2/workspacesPURPOSE + BUSINESS CONTEXT
WHEN THIS CALL IS USEFUL
Call this before showing a workspace picker, restoring a saved workspace choice, or starting any workflow that must be scoped to a team, treasury, trading desk, or personal context.
OUTCOME · Discover
Returns active memberships only. It does not select a workspace or change access.
WHY IT MATTERS
ISOLATION + AUTHORITY
Identity derives the subject and tenant from the bearer. The collection cannot enumerate another user, tenant, or inactive membership, and it contains no invitation tokens or wallet secrets.
BEFORE YOU CALL
WHAT TO DO NEXT
AGENT GUIDANCE
The exact deployed parameters, schemas, responses, security requirements, and Hybrid-Chain agent metadata are authoritative at this operation's production OpenAPI JSON Pointer. The readable tables below add integration guidance; the deployed OpenAPI controls if guidance and the machine contract ever differ.
Open the authoritative production contract ↗EXTENDED INTEGRATION GUIDANCE
Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.
PARAMETERS
AuthorizationheaderRequiredBearer tokenCredential containing the workspaces:read scope.EXAMPLEBearer hc_live_…
STABLE ERROR CODES
These codes are published by the authoritative gateway contract for this endpoint. Treat message as safe diagnostic text; integrations should branch on code and HTTP status.
invalid_jsonThe JSON body is malformed or fails the published identity schema.invalid_security_requestThe identity, workspace, permission, or key request is invalid.missing_idempotency_keyA nonempty Idempotency-Key is required for this mutation.invalid_credentialsThe bearer or proof-of-possession credential is invalid.step_up_requiredThe caller lacks role authority or fresh purpose-bound approval.workspace_resource_not_foundThe requested workspace, membership, or invitation was not found.security_conflictThe requested permission or identity transition conflicts with current state.identity_security_unavailableThe authoritative Identity security service is temporarily unavailable.RESPONSES
{
"items": [
{
"workspace_id": "b00dc220da8f480d86cdc11341372746",
"tenant_uuid": "b00dc220da8f480d86cdc11341372746",
"name": "Treasury Operations",
"purpose": "TREASURY",
"isolation_policy": "MPC",
"status": "ACTIVE",
"version": 1,
"created_by": "d2f46f7e234c40a4a54e54208368d8d5",
"created_at": "2026-08-12T21:00:00Z",
"updated_at": "2026-08-12T21:00:00Z",
"membership_id": "7bb755ad325c48e5a4f4cc7f5711fa62",
"role": "OWNER",
"membership_version": 1,
"idempotent_replay": false,
"preference_version": null
}
],
"next_cursor": null
}{
"code": "invalid_json",
"message": "The JSON body or required signed headers are malformed."
}invalid_json{
"code": "invalid_credentials",
"message": "The bearer credential or HTTP Message Signature is missing, expired, replayed, or invalid."
}invalid_credentials{
"code": "workspace_forbidden",
"message": "The principal lacks the required scope, workspace role, or tenant authority."
}workspace_forbidden{
"code": "identity_security_unavailable",
"message": "The authoritative Identity workspace service is unavailable."
}identity_security_unavailableOPERATIONAL NOTES
UPGRADING FROM V1
If you maintain an older integration, use this map to find the V2 replacement. Do not translate the old request field-for-field: rebuild it from the V2 parameters and schemas above because identity, authorization, replay protection, and response semantics may have changed.
/api/v1/workspaces/allWORKSPACE: Get Available WorkspacesThis route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-09-11T06:35:11.572Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation ↗Return to the V2 directory ↗