Skip to main content
GET
Get Project Meta

Authentication

This endpoint requires JWT authentication via the verifyJWT middleware. Include your access token in the Authorization header.

Path Parameters

string
required
The unique identifier of the project (MongoDB ObjectId)

Response

boolean
required
Indicates whether the request was successful
string
required
The name of the project
string
required
The subscription plan for the project

Example Request

Example Response

Error Responses

Returned when:
  • Project with the specified ID doesn’t exist
  • Project doesn’t belong to the authenticated user
  • Project has been deleted (status is ‘deleted’)
Returned when a server error occurs during processing

Implementation Notes

  • Only returns projects owned by the authenticated user (verified via req.user._id)
  • Excludes projects with status deleted
  • Uses .lean() for optimized read-only query performance
  • Only selects name and plan fields to minimize data transfer

Source Reference

backend/src/controllers/slices/Project/getProjectMeta.js:4