{"id":"1b27377f-8128-4e3d-afe5-0b1a683c64e9","task":"Authenticate and create/retrieve Activity records (incidents, near misses, audits) via the Cority Enviance EMS REST API","domain":"api.enviance.com","steps":["Note that use of the API requires an express Cority Enviance Connectors license from Enviance/Cority; the Swagger spec at `https://api.enviance.com/Swagger.svc/swagger.json` is publicly viewable, but calls will fail authentication without a contracted license.","Obtain a session with `POST /ver2/AuthenticationService.svc/sessions`, sending a JSON body `{\"userName\": \"...\", \"password\": \"...\"}`; the response returns a SessionId.","Send that SessionId on every subsequent call as `Authorization: Enviance <SessionId>` (an OAuth-token flow is also available via `POST /ver2/AuthenticationService.svc/oauthtoken` using a refresh token).","Create an Activity (e.g., a near-miss or incident record) with `POST /ver2/ActivityService.svc/activities`, supplying `name`, `templateIdOrName`, and a `fields` array of `{name, values}` pairs matching the target template's configured fields.","Retrieve, update, or delete a specific activity with `GET`/`PUT`/`DELETE /ver2/ActivityService.svc/activities/{activityIdOrName}`, addressing it by its ID or unique name.","Call `DELETE /ver2/AuthenticationService.svc/currentsession` to explicitly end the session when finished."],"gotchas":["The optional `EnvApi-Systemid` header lets a login target a specific sub-system instead of the account's default (\"Home\") system — confirm which system should receive the call before omitting it.","Field values in `fields[].values` must match the names/options actually configured in the target template in your Enviance instance — this is a template-driven platform, not a fixed global schema.","This is the legacy \"Enviance\" product's REST API (api.enviance.com), now marketed under Cority Enviance/CorityOne; it is a distinct host/product from Cority's other EHSQ platform APIs."],"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/1b27377f-8128-4e3d-afe5-0b1a683c64e9"}