PgBeam Docs
Projects

getProject

Get a project

Returns a single project by ID.

Usage

const result = await api.projects.getProject({
  pathParams: { project_id: "prj_xxx" },
});

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).

Response

Promise<Project> — project found.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.projects.getProject({
  pathParams: { project_id: "prj_xxx" },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.
429Rate limited. Try again later.

On this page