Skip to main content

Spark OpenADR API - Partner Endpoints (v1)

Download OpenAPI specification:Download

Events

/events

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/events/{eventId}

Authorizations:
Bearer
path Parameters
eventId
required
string

Responses

Response samples

Content type
application/json
{
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "ID": "string",
  • "modificationDateTime": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "priority": 0,
  • "programID": "string",
  • "reportDescriptors": [
    ],
  • "targets": [
    ],
  • "intervalPeriod": {
    },
  • "payload": {
    }
}

Reports

/reports

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/reports

Authorizations:
Bearer
Request Body schema: application/json
clientID
string or null
createdDateTime
string <date-time>
eventID
string or null
ID
string or null
modificationDateTime
string <date-time>
name
string or null
programID
string or null
Array of VehicleChargeActionPayload (object) or null

Responses

Request samples

Content type
application/json
{
  • "clientID": "string",
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "eventID": "string",
  • "ID": "string",
  • "modificationDateTime": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "programID": "string",
  • "payloads": [
    ]
}

Response samples

Content type
application/json
{
  • "clientID": "string",
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "eventID": "string",
  • "ID": "string",
  • "modificationDateTime": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "programID": "string",
  • "payloads": [
    ]
}

/reports/{reportId}

Authorizations:
Bearer
path Parameters
reportId
required
string

Responses

Response samples

Content type
application/json
{
  • "clientID": "string",
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "eventID": "string",
  • "ID": "string",
  • "modificationDateTime": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "programID": "string",
  • "payloads": [
    ]
}

/reports/{reportId}

Authorizations:
Bearer
path Parameters
reportId
required
string
Request Body schema: application/json
clientID
string or null
createdDateTime
string <date-time>
eventID
string or null
ID
string or null
modificationDateTime
string <date-time>
name
string or null
programID
string or null
Array of VehicleChargeActionPayload (object) or null

Responses

Request samples

Content type
application/json
{
  • "clientID": "string",
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "eventID": "string",
  • "ID": "string",
  • "modificationDateTime": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "programID": "string",
  • "payloads": [
    ]
}

Response samples

Content type
application/json
{
  • "clientID": "string",
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "eventID": "string",
  • "ID": "string",
  • "modificationDateTime": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "programID": "string",
  • "payloads": [
    ]
}

/reports/{reportId}

Authorizations:
Bearer
path Parameters
reportId
required
string

Responses

/reports/{reportId}/test

Authorizations:
Bearer
path Parameters
reportId
required
string

Responses

Resources

/resources

Authorizations:
Bearer
query Parameters
skip
integer <int32>
Default: 0
take
integer <int32>
Default: 100

Responses

/resources

Authorizations:
Bearer
Request Body schema: application/json
id
string or null
name
string or null
object (Point)
currentAmperage
number <double>

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "location": {
    },
  • "currentAmperage": 0
}

/resources

Authorizations:
Bearer

Responses

/resources

Authorizations:
Bearer

Responses

/resources/{eventId}

Authorizations:
Bearer
query Parameters
id
required
string

Responses

Subscriptions

/subscriptions

Authorizations:
Bearer
query Parameters
programId
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

/subscriptions

Authorizations:
Bearer
Request Body schema: application/json
programId
string or null
webhookUrl
string or null

Responses

Request samples

Content type
application/json
{
  • "programId": "string",
  • "webhookUrl": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "programId": "string",
  • "webhookUrl": "string"
}

/subscriptions/{subscriptionId}

Authorizations:
Bearer
path Parameters
subscriptionId
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "programId": "string",
  • "webhookUrl": "string"
}

/subscriptions/{subscriptionId}

Authorizations:
Bearer

Responses

/subscriptions/{subscriptionId}

Authorizations:
Bearer

Responses

/subscriptions/{subscriptionId}/test

Authorizations:
Bearer

Responses