API
Follow these quick steps to setup your environment for working with the Scanerr API
API structure
TIP
All of the API endpoints follow the same basic structure.
Path | Allowed methods | Usage |
---|---|---|
/<object> | POST | object creation |
/<object>s/delete | POST | delete many objects |
/<object>/<object:id> | GET , DELETE | retrieve or delete single object |
/<object>?limit=10&offset=0 | GET | retrieve paginated object list |
/<object>/<object:id>/lean | GET | retrieve abbreviated object |
API Setup
- Set an env variable,
SCANERR_API_BASE_URL
tohttps://api.scanerr.io/v1/ops
. - Retrieve your API token located in your account page.
- Set another env variable,
SCANERR_API_TOKEN
toToken <your_super_secret_api_token>
. - Be sure to export / import these variables into your working directory when using.