Skip to content
Energy & utilities

opto22.com:pac

PAC Control REST sandbox and mock API

#### Revised: 6/15/2018 ### Overview This API provides secure access to a SNAP-PAC-R or -S series controller's variable and I/O tags. Confidentiality for API transactions is provided by HTTPS. Authentication uses HTTP Basic Authentication with an API key. An API key ID is submitted in the Basic Authentication userid field and API key value in the password field. **For more information visit:** [de Writes persist, data moves on a schedule and every change can fire a signed webhook.

Operations
55
Collections
-
Event types
-
example request
curl https://your-opto22-pac.slurry.io/api/v1/device \
  -H "Authorization: Bearer slurry_sim_..."

Your simulation gets its own hostname, key and IP allow-list. Built from API version R1.0a.

What gets simulated

Collections, relationships and state machines are worked out from the spec when you start the simulation.

  • State. Creates, updates and deletes persist and show up in later reads.
  • Behaviour. Records move through their states on a schedule you control, and you can fast-forward up to 30 days.
  • Webhooks. Every change emits a signed, retried event.
  • Failure. Per-endpoint errors, latency and chaos rules, on demand.

Operations

First 12 of 55.

  • GET/device
  • GET/device/strategy
  • GET/device/strategy/ios/analogInputs
  • GET/device/strategy/ios/analogInputs/{ioName}/eu
  • GET/device/strategy/ios/analogOutputs
  • GET/device/strategy/ios/analogOutputs/{ioName}/eu
  • POST/device/strategy/ios/analogOutputs/{ioName}/eu
  • GET/device/strategy/ios/digitalInputs
  • GET/device/strategy/ios/digitalInputs/{ioName}/state
  • GET/device/strategy/ios/digitalOutputs
  • GET/device/strategy/ios/digitalOutputs/{ioName}/state
  • POST/device/strategy/ios/digitalOutputs/{ioName}/state