Get Project Meta
Projects
Get Project Meta
Retrieve basic metadata for a project including name and plan
GET
Get Project Meta
Authentication
This endpoint requires JWT authentication via theverifyJWT middleware. Include your access token in the Authorization header.
Path Parameters
The unique identifier of the project (MongoDB ObjectId)
Response
Indicates whether the request was successful
The name of the project
The subscription plan for the project
Example Request
Example Response
Error Responses
404 Not Found
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’)
500 Internal Server Error
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
nameandplanfields to minimize data transfer
Source Reference
backend/src/controllers/slices/Project/getProjectMeta.js:4