GET
/
access-control
/
signing-key
/
{keyId}
import { Livepeer } from "livepeer";

const livepeer = new Livepeer({
  apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await livepeer.accessControl.get("<id>");

  // Handle the result
  console.log(result);
}

run();
{
  "id": "78df0075-b5f3-4683-a618-1086faca35dc",
  "name": "key1",
  "userId": "78df0075-b5f3-4683-a618-1086faca35dc",
  "createdAt": 1587667174725,
  "lastSeen": 1587667174725,
  "publicKey": "<string>",
  "disabled": false,
  "projectId": "aac12556-4d65-4d34-9fb"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

keyId
string
required

ID of the signing key

Response

200
application/json
Success
publicKey
string
required
id
string
name
string

Name of the signing key

userId
string
deprecated
createdAt
number

Timestamp (in milliseconds) at which the signing-key was created

lastSeen
number

Timestamp (in milliseconds) at which the signing-key was last used

disabled
boolean

Disable the signing key to allow rotation safely

projectId
string

The ID of the project