OUTCOME · Create or advance
What changes
Creates or advances only the enroll workspace knowledge agent resource described by this contract after authorization, validation, policy, and idempotency gates pass.
v2Agent-native Context Mesh
/api/v2/workspaces/{workspace_id}/knowledge-agentsPURPOSE + BUSINESS CONTEXT
WHEN THIS CALL IS USEFUL
Call this when a tenant member, team administrator, account client, or workspace-aware agent needs to apply the documented enroll workspace knowledge agent transition after re-reading the current authoritative state so it can create and select isolated workspaces and govern invitations, memberships, roles, and active execution context.
OUTCOME · Create or advance
Creates or advances only the enroll workspace knowledge agent resource described by this contract after authorization, validation, policy, and idempotency gates pass.
WHY IT MATTERS
ISOLATION + AUTHORITY
Tenant, identity, workspace, invitation, membership, role, active-workspace selection, resource ownership, wallet, policy, and entitlement boundaries remain distinct. Membership or selection does not grant tenant administration, wallet signing, payment, settlement, publisher, matching, or trading authority beyond separately evaluated scopes and policy.
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 workspaces:write authority.EXAMPLEBearer hc_live_…
workspace_idpathRequiredidentifierStable workspace id selecting the exact resource addressed by this route.EXAMPLEworkspace-id-01
X-Request-IDheaderOptionalstringOptional caller correlation identifier. The gateway emits the effective value on the response.
Idempotency-KeyheaderRequiredASCII string · 1–128Caller-generated stable key reused for retries of the same logical mutation.
Content-DigestheaderRequiredstringRFC 9530 sha-256 digest of the exact transmitted request-body bytes.
Signature-InputheaderRequiredstringRFC 9421 sig1 input covering @method, @path, content-digest, content-type, and idempotency-key, with created, expires, nonce, keyid, and alg=ed25519.
SignatureheaderRequiredstringRFC 9421 sig1 Ed25519 signature made by an active key registered to the bearer client.
allowed_scopesbodyRequiredstring[]Exact least-privilege capabilities allowed for this workload; unknown or financial scopes are rejected by the knowledge-agent flow.
labelbodyRequiredstringAuthoritative label value defined by this V2 schema.
proofbodyRequiredstringBase64url Ed25519 proof of possession over the operation's published canonical statement.
public_key_jwkbodyRequiredPublicSigningJwkPublic OKP/Ed25519 JWK. Private key parameters are rejected and must never be transmitted.
step_up_tokenbodyRequiredstringFresh, one-use, purpose-bound hcsu_ authorization created by the authenticated human session.
tenant_uuidbodyRequiredstringStable tenant boundary. Omission is accepted only where the operation explicitly selects the global tenant.EXAMPLE7d44d4fbf2c14a65a7074692b2b77472
REQUEST
{
"allowed_scopes": [
"example-allowed-scope"
],
"label": "example-label",
"proof": "example-proof",
"public_key_jwk": {
"crv": "example-crv",
"kty": "example-kty",
"x": "example-x"
},
"step_up_token": "example-step-up-token",
"tenant_uuid": "7d44d4fbf2c14a65a7074692b2b77472"
}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 workload schema.invalid_security_requestThe workload identity, scope, public key, proof, or step-up request is invalid.invalid_credentialsThe human workspace-owner bearer or proof-of-possession credential is invalid.step_up_requiredCurrent workspace ownership and fresh purpose-bound approval are required.workload_client_not_foundThe requested workspace knowledge agent was not found.security_conflictThe knowledge-agent lifecycle transition conflicts with current state.identity_security_unavailableThe authoritative Identity security service is temporarily unavailable.RESPONSES
{
"algorithm": "example-algorithm",
"allowed_scopes": [
"example-allowed-scope"
],
"client_id": "hcwc_knowledge_agent_01",
"created_at": "2026-09-02T18:30:00Z",
"label": "example-label",
"public_key_jwk": {
"crv": "example-crv",
"kty": "example-kty",
"x": "example-x"
},
"request_signing_key_id": "hck_ed25519_01",
"revoked_at": "2026-09-02T18:30:00Z",
"status": "ACTIVE",
"tenant_uuid": "7d44d4fbf2c14a65a7074692b2b77472"
}{
"code": "invalid_json",
"message": "The JSON body is malformed or fails the published workload schema."
}invalid_json{
"code": "invalid_credentials",
"message": "The human workspace-owner bearer or proof-of-possession credential is invalid."
}invalid_credentials{
"code": "step_up_required",
"message": "Current workspace ownership and fresh purpose-bound approval are required."
}step_up_required{
"code": "workload_client_not_found",
"message": "The requested workspace knowledge agent was not found."
}workload_client_not_found{
"code": "identity_security_unavailable",
"message": "The authoritative Identity security service is temporarily unavailable."
}identity_security_unavailableOPERATIONAL NOTES
This 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 ↗