Skip to content

Security endpoints

3 endpoints at https://api.vaif.studio, generated from the API's OpenAPI document. The REST API page covers authentication, and All endpoints lists every group.

GET /security/overview/{projectId}

ParameterInTypeRequired
projectIdpathstringYes
Response 200 (application/json)
{
  overview: {
    apiKeysActive: number;
    secretsCount: number;
    ciTokensActive: number;
    envVarsCount: number;
    lastSecurityEvent: string;
    lastSecurityAction: string;
  };
}

GET /security/audit/{projectId}

ParameterInTypeRequired
projectIdpathstringYes
limitquerystringNo
offsetquerystringNo
Response 200 (application/json)
{
  logs: { [key: string]: any }[];
  total: number;
  retentionDays: number;
}

GET /security/variables/project/{projectId}

ParameterInTypeRequired
projectIdpathstringYes
envIdquerystringNo
Response 200 (application/json)
{
  envId: string;
  variables: {
    id: string;
    store: "env_var" | "function_secret";
    name: string;
    kind: "public" | "secret";
    value: null | string;
    envId: null | string;
    environment: string;
    usedBy: string[];
    updatedAt: null | string;
    createdAt: string;
  }[];
}