Skip to content

Logs 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 /logs/project/{projectId}

List logs for a project

ParameterInTypeRequired
limitquerynumberNo
levelquery"debug" | "info" | "warn" | "error"No
projectIdpathstring (uuid)Yes
Response 200 (application/json)
{
  id: string;
  projectId: string | null;
  level?: string | null;
  message?: string | null;
  createdAt?: string | string (date-time);
}[]

Errors: 400, 401, 403, with the error body.

GET /logs/project/{projectId}/feed

Read a project's log feed (data API requests, platform requests, function lines) with server filters and cursors

ParameterInTypeRequired
envIdquerystringNo
sincequerystring (date-time)No
untilquerystring (date-time)No
levelquerystringNo
sourcequerystringNo
qquerystringNo
requestquerystringNo
beforequerystringNo
afterquerystringNo
limitquerynumberNo
projectIdpathstring (uuid)Yes
Response 200 (application/json)
{
  entries: {
    id: string;
    time: string;
    level: string;
    source: "api" | "platform" | "functions";
    message: string;
    requestId: string | null;
    envId: string | null;
    functionName: string | null;
    meta: { [key: string]: any };
  }[];
  hasMore: boolean;
  cursor: {
    before: string | null;
    after: string | null;
  };
  window?: {
    since: string;
  };
}

Errors: 400, 401, 403, 404, 429, with the error body.

GET /logs/project/{projectId}/stream

Stream live logs for a project (SSE)

ParameterInTypeRequired
projectIdpathstring (uuid)Yes
Response 200

No body.