/api/v1/home-assistant/link-requests (POST)
POST
/api/v1/home-assistant/link-requests
const url = 'https://example.com/api/v1/home-assistant/link-requests';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"linkSecret":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/home-assistant/link-requests \ --header 'Content-Type: application/json' \ --data '{ "linkSecret": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
linkSecret
required
string
Examplegenerated
{ "linkSecret": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
required
string format: uuid
code
required
string
claimKey
required
string
expiresAt
required
string
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "code": "example", "claimKey": "example", "expiresAt": "example"}