API Reference

A short guide to working with Projects in the Layer API

Introduction

This guide provides an overview of the API endpoints related to Layer projects. It's designed to help developers understand how to retrieve project information effectively and efficiently.

📘

Projects are limited to read only requests

At this time, project data is available through read only requests. The provided endpoints facilitate the retrieval of project details but do not allow creation or modification of projects.

Authentication

All endpoints discussed in this guide require bearer authentication. Make sure to include a valid bearer token in the Authorization header of your requests. For a deeper dive into the authentication process, please consult our Authentication guide.

Endpoints Overview

Example Project Object

{
  "project": {
    "createdAt": "2023-08-22T12:45:00Z",
    "createdBy": "John Doe",
    "company": "Layer Co.",
    "name": "Project Alpha",
    "location": "San Francisco, CA",
    "id": "12345",
    "status": "active",
    "type": "PROJECT",
    "role": "owner"
  }
}

 

Project Parameters

PropertyDescriptionPossible Values
idUnique ID of the projectString 32rb0v49ejbkjlkj
createdAtDate & time the project was createdTimestamp 2023-08-22T12:45:00Z
createdByName of the user who created the projectString John Doe
companyName of the company that owns the projectString Layer Co.
nameName of the projectString Project Alpha
locationProject locationStringSan Francisco, CA
statusProject statusactive or archived
typeProject typeTEMPLATE or PROJECT
roleThe role of the authenticated user in relation to the projectowner, editor, contributor, or viewer