FlagsSDKKeyWithSecrets

June 9, 2026 ยท View on GitHub

Representation of a Flags SDK key returned by CREATE. Includes cleartext secrets (keyValue, tokenValue, connectionString) which are only ever disclosed once, on creation.

Example Usage

import { FlagsSDKKeyWithSecrets } from "@vercel/sdk/models/flagssdkkeywithsecrets.js";

let value: FlagsSDKKeyWithSecrets = {
  hashKey: "<value>",
  projectId: "<id>",
  type: "client",
  environment: "<value>",
  createdBy: "<value>",
  createdAt: 3191.79,
  updatedAt: 1860.8,
  partialKeyValue: "<value>",
  keyValue: "<value>",
};

Fields

FieldTypeRequiredDescription
hashKeystring:heavy_check_mark:N/A
projectIdstring:heavy_check_mark:N/A
typemodels.FlagsSDKKeyWithSecretsType:heavy_check_mark:N/A
environmentstring:heavy_check_mark:N/A
createdBystring:heavy_check_mark:N/A
createdAtnumber:heavy_check_mark:N/A
updatedAtnumber:heavy_check_mark:N/A
labelstring:heavy_minus_sign:N/A
deletedAtnumber:heavy_minus_sign:N/A
partialKeyValuestring:heavy_check_mark:Partially-masked representation of the SDK key value, safe to display in UIs. The value is the vf_<type>_ prefix followed by the first 3 characters of the secret portion and a fixed 8-character * mask (e.g. vf_server_abc********).
keyValuestring:heavy_check_mark:Cleartext value of the SDK key.
tokenValuestring:heavy_minus_sign:Cleartext value of the Edge Config token, when the project has an Edge Config connection.