Skip to main content
DELETE
/
devices
/
{deviceID}
SDK (@phosra/sdk)
import { PhosraClient } from "@phosra/sdk";

const phosra = new PhosraClient({
  baseUrl: "https://phosra-api-sandbox-production.up.railway.app/api/v1",
  accessToken: process.env.PHOSRA_API_KEY,
});

await phosra.devices.revoke("d1e2f3a4-5b6c-4d7e-8f90-a1b2c3d4e5f6");
{
  "error": "Bad Request",
  "message": "child_name is required",
  "code": 400
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

deviceID
string<uuid>
required

Response

Device revoked