Delete a Connected Account

Delete a Connected Account by ID

Deleting a connected account triggers a connected_account.deleted event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.

For example, if you delete a connected account with a device that has an access code, Seam sends a connected_account.deleted event, a device.deleted event, and an access_code.deleted event, but Seam does not remove the access code from the device.

/connected_accounts/delete

POSThttps://connect.getseam.com/connected_accounts/delete
Authorization
Body
connected_account_id*string (uuid)
syncboolean
Response

OK

Body
ok*boolean
Request
const response = await fetch('https://connect.getseam.com/connected_accounts/delete', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer API Key",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "connected_account_id": "123e4567-e89b-12d3-a456-426614174000"
    }),
});
const data = await response.json();
Response
{
  "ok": false
}

Code Example

seam.connected_accounts.delete("f891acfd-d228-4bb2-8399-c0f7e24e6b16")

Parameters

connected_account_id

type: string

ID of the Connected Account

Response

This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from what’s written here.

JSON format

{
  "ok": true
}

Last updated

Logo

© Seam Labs, Inc. All rights reserved.