Project
Endpoint GET /projects/:id
Retrieve a user's project data by id.
Path Parameters
Required
id
- The project's id.
Example Request:
- curl
- Node.js
curl -H "Authorization: Bearer ACCESS_TOKEN" "https://api.commoninja.com/platform/api/v1/projects/894f5aed-29f5-46c5-9f26-022bfccc5292"
const axios = require('axios');
async function getData() {
const response = await axios.get('https://api.commoninja.com/platform/api/v1/projects/894f5aed-29f5-46c5-9f26-022bfccc5292', {
headers: {
'Authorization': 'Bearer ACCESS_TOKEN'
},
});
return response.data;
}
getData();
Example Response:
{
"projectId": "894f5aed-29f5-46c5-9f26-022bfccc5292",
"userId": "194f5aed-29f5-46c5-9f26-022bfccc5292",
"name": "My Project",
"slug": "my-project",
"domains": ["https://www.commoninja.com"],
"description": "",
"thumbnail": "",
"created": "2023-04-25T09:44:42.842Z",
"updated": "2023-04-25T09:44:42.842Z"
}