/api/v1/home-assistant/link-requests/{id}/claim
POST
/api/v1/home-assistant/link-requests/{id}/claim
const url = 'https://example.com/api/v1/home-assistant/link-requests/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/claim';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"claimKey":"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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/claim \ --header 'Content-Type: application/json' \ --data '{ "claimKey": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
claimKey
required
string
Examplegenerated
{ "claimKey": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
state
required
string
token
string
Example
{ "state": "pending"}