Skip to content
FeedbackDashboard

Retrieve project

client.projects.retrieve(ProjectRetrieveParams { project } params?, RequestOptionsoptions?): Project { config_repo, display_name, object, 3 more }
get/v0/projects/{project}

Retrieve a project by name.

ParametersExpand Collapse
params: ProjectRetrieveParams { project }
project?: string
ReturnsExpand Collapse
Project { config_repo, display_name, object, 3 more }

A project is a collection of SDKs generated from the same set of config files.

config_repo: string
display_name: string | null
object: "project"
org: string
slug: string
targets: Array<Target>
Accepts one of the following:
"node"
"typescript"
"python"
"go"
"java"
"kotlin"
"ruby"
"terraform"
"cli"
"php"
"csharp"
"openapi"
Retrieve project
import Stainless from '@stainless-api/sdk';

const client = new Stainless({
  apiKey: process.env['STAINLESS_API_KEY'], // This is the default and can be omitted
});

const project = await client.projects.retrieve({ project: 'project' });

console.log(project.config_repo);
{
  "config_repo": "config_repo",
  "display_name": "display_name",
  "object": "project",
  "org": "org",
  "slug": "slug",
  "targets": [
    "node"
  ]
}
Returns Examples
{
  "config_repo": "config_repo",
  "display_name": "display_name",
  "object": "project",
  "org": "org",
  "slug": "slug",
  "targets": [
    "node"
  ]
}