WattTime Authentication API
Register for an account and obtain access tokens.
WattTime Authentication API is one of 6 APIs that WattTime publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
This API exposes 6 JSON Schema definitions.
Tagged areas include Authentication. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 6 JSON Schemas.
This API exposes 2 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 3.0.
Requests are made against 2 base URLs: https://api.watttime.org/v3, https://api2.watttime.org/v2.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 2
WattTime Authentication API declares
2 security schemes
for authenticating requests.
It accepts HTTP basic authentication (basicAuth).
It accepts HTTP bearer tokens (JWT) (bearerAuth).
basicAuth— HTTP Basic Authentication used only for the /login endpoint. Provide username and password to obtain a bearer token.bearerAuth— JWT bearer token obtained from the /login endpoint. Token expires after 30 minutes. Include as Authorization: Bearer {token} header.
Paths & Operations 2
Across 2 paths, the API surfaces 2 operations — 1 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.
Register for an account and obtain access tokens.
Schemas 4
The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are RegisterRequest (4 properties), ErrorResponse (3 properties), RegisterResponse (2 properties), LoginResponse (1 property). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from WattTime 5
Other APIs WattTime publishes across the network.