Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Reposit Customer API - OpenAPI 3.0 Battery API
description: 'This is an informal description of external Reposit API provided to Reposit
customers.'
contact:
email: api@repositpower.com
version: 2023.5.1
servers:
- url: https://api.repositpower.com/
tags:
- name: battery
paths:
/v2/deployments/{userkey}/battery/capacity:
get:
tags:
- battery
summary: Get the current capacity of the battery (or batteries) of the given deployment
parameters:
- $ref: '#/components/parameters/userkeyParam'
- $ref: '#/components/parameters/repositAuthHeader'
security:
- bearerAuth: []
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/BatteryCapacity'
operationId: getV2DeploymentsByUserkeyBatteryCapacity
x-operation-id-source: derived
components:
parameters:
repositAuthHeader:
name: Reposit-Auth
in: header
description: The kind of authentication used (API or Stateless)
schema:
type: string
default: Stateless
userkeyParam:
name: userkey
in: path
description: The userkey of the deployment to get data for
required: true
schema:
type: string
schemas:
BatteryCapacity:
type: object
properties:
batteryCapacity:
description: Battery capacity from 0.0 to 1.0 (0% to 100%)
type: number
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
x-provenance:
method: harvested
publisher: Reposit Power
source: https://api.repositpower.com/spec/
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)