Specifications
OpenAPI specifications
The contract of each API is one OpenAPI 3.1 document, served as JSON and as YAML. Import it into a tool, generate a client from it, or diff it between releases.
info.version)1.0.0+sha.7d61644b8985info.version)1.0.0+sha.70713b6f3cefThe fingerprint
Section titled “The fingerprint”Each document’s info.version is a fingerprint of its content: it changes exactly when the contract changes, and never
otherwise. A client can pin it, and a pipeline can fail when it moves. Within v1 the contract only grows, apart from the removals the owner decided, which
versioning lists.
Importing into a tool
Section titled “Importing into a tool”Give a tool the URL rather than a downloaded copy, so it follows each release. The documents answer any origin
(Access-Control-Allow-Origin: *) and may be cached for 5 minutes, so a browser-based tool can read them too. The API
itself sends no CORS headers: a key never belongs in a web page.
The Postman collection
Section titled “The Postman collection”The whole API is also one Postman collection, generated from the two documents above by Postman’s own converter, with an environment that holds the base URLs and the three credentials. It is a Collection v2.1.0 file, which Newman runs as well.
specFingerprintV1)1.0.0+sha.7d61644b8985specFingerprintIngest)1.0.0+sha.70713b6f3cef- In Postman choose Import, and paste
https://developer.watchtower15.com/postman/watchtower15.postman_collection.json. - Choose Import again, and paste
https://developer.watchtower15.com/postman/watchtower15.postman_environment.json. - Select the WatchTower15 environment, and put your API key in
apiKey.metricsTokenandlogsTokenare needed only for the MetricsIngest and LogsIngest folders. All three are secret-typed. See Authentication and keys.
The collection’s fingerprints name the OpenAPI documents it came from, and a new version keeps the collection’s id. Postman can also import the OpenAPI links above directly.