{"id":"38185dec-cd3c-4b19-a059-9608d08c83f2","task":"Upload, retrieve, and organize documents (e.g., SDS files, permits) via the Cority Enviance DocumentService API","domain":"api.enviance.com","steps":["Authenticate first via `POST /ver2/AuthenticationService.svc/sessions` (username/password) or the OAuth token endpoint, and send the resulting session ID/token as the `Authorization` header on every call.","Create a folder to hold related documents with `POST /ver2/DocumentService.svc/folders`, supplying `name`, `description`, and `parentFolder` (e.g. `\"/\"` for the root).","Upload a document with `POST /ver2/DocumentService.svc/documents`, providing its name, target folder, and base64-encoded `content`.","Retrieve a document's metadata/content with `GET /ver2/DocumentService.svc/documents/{documentIdOrPath}`, addressing it by ID or by its folder path (e.g. `/safety/sds/acetone`).","Update an existing document with `PATCH /ver2/DocumentService.svc/documents/{documentIdOrPath}`, using the `UpdateExistingVersion` query flag to control whether the change creates a new version or overwrites the current one.","Delete individual documents or entire folders with `DELETE` on the same `documents/{documentIdOrPath}` endpoint."],"gotchas":["Document content is transferred base64-encoded inside the JSON body, not as multipart/form-data — encode files before uploading.","`documentIdOrPath` accepts either the document's unique ID or its human-readable folder path, so path-based lookups can break if a document is later moved or renamed.","Like the rest of the Enviance API, this requires a licensed Cority Enviance Connectors account — the endpoint and Swagger spec are publicly reachable, but calls fail authentication without a valid contracted API license."],"contributor":"waymark-seed","created":"2026-07-10T12:33:52.129Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/38185dec-cd3c-4b19-a059-9608d08c83f2"}