POST
/
v1.0.0
/
connections
/
vehicles
curl --request POST \
  --url https://api.energy-hub.io/v1.0.0/connections/vehicles \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "redirectUrl": "https://www.redirectable-partners-website.com/v1.0.0/endpoint/bea09c5f-9d37-4562-b54a-dedb48d7aaf4",
  "vendor": "TESLA",
  "userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9"
}'
{
  "url": "https://svc-connect.energy-hub.io/bea09c5f-9d37-4562-b54a-dedb48d7aaf4/redirect"
}

Authorizations

X-API-KEY
string
header
required

API key used for authorization and authentication.

Query Parameters

theme
enum<string>
Available options:
DARK,
LIGHT
language
enum<string>
Available options:
ENGLISH,
GERMAN,
FRENCH

Body

application/json

An object containing relevant information to link vehicle vendor accounts.

Response

201
application/json

Created

An object containing the URL which is used to redirect the user to the connect page or vendor login.