P
PAC Control REST API
Details
- URL
-
https://<snap-pac-controller>/api/v1 - Spec
- https://developer.opto22.com/static/generated/pac-rest-api/pac-rest-api.snap-pac.yaml
- Spec (json)
- https://api.apis.guru/v2/specs/opto22.com/pac/R1.0a/swagger.json
- Docs
- https://developer.opto22.com/rest/pac/
Authentication
On a SNAP PAC controller, first create the API admin as described in Getting Started with the PAC Control REST API for SNAP PAC and its linked setup pages. Then open the controller's Keys API management page as described in API Keys (example: `http://<controller-ip>/admin/keys), sign in as the API administrator, and create at least one enabled key pair: enter a key identifier in ID, a secret in Value, choose Read Only or Read-Write, and click Submit. When calling the API, send the key ID as the HTTP Basic username and the key Value` as the HTTP Basic password.