Fetch Project

Fetch Project

GET /v2/projects/{projectId}

Get the information for a specific project by passing the project id in the URL.

import type { NextApiRequest, NextApiResponse } from 'next';
export default async function handler(
req: NextApiRequest,
res: NextApiResponse<any>
) {
const projectId = "your_project_id";
const apiKey = "your_api_key";
const result = await fetch(`https://api.qubitro.com/v2/projects/${projectId}`, {
    headers: {
    "Authorization": `Bearer ${apiKey}`
    method: "GET"
const data = await result.json();
Path Parameters
Project IDstringThe ID of the project. Replace <PROJECT_ID> in the URL with your actual project ID.
  "success": "boolean indicating the success of the request",
  "action": "description of the action taken by the server",
  "status": "HTTP status code",
  "message": "message from the server describing the result of the operation",
  "data": {
    "id": "unique identifier of the project",
    "name": "name of the project",
    "description": "description of the project",
    "created_at": "timestamp indicating when the project was created"
Response codes
200OKThe request was successful.
400Bad RequestThe request could not be understood or was missing required parameters.
401UnauthorizedAuthentication failed or was not provided.
403ForbiddenAuthentication succeeded, but the authenticated user does not have access to the requested resource.
404Not FoundThe requested resource could not be found.
500Internal Server ErrorAn error occurred on the server.

Ready to accelerate>>> INNOVATIONat your organization?

We’d love to talk about how we can work together.