Use this endpoint to list deployment records for a project in the current month. It helps audit changes, confirm whether an image update created history, and build simple activity dashboards.
GET /project/:id/historic/deployments
Header Required Description x-api-keyYes Project API Key x-organization-idYes Active project organization
Parameter Type Description idstring Project ID (ObjectId)
The API returns deployments created between the beginning and the end of the current month, based on the server clock. This route does not expose public parameters to change that window.
{
"status" : "success" ,
"message" : "get deployments with success" ,
"data" : [
{
"id" : "665f1f77bcf86cd799439011" ,
"project_id" : "507f1f77bcf86cd799439011" ,
"updated_image" : true ,
"created_at" : "2026-05-23T14:10:00.000Z"
}
]
}
Field Description idDeployment record identifier project_idProject related to the event updated_imageIndicates whether the event involved an image update created_atEvent creation date
curl -X GET "https://api.zenifra.com/v1/project/507f1f77bcf86cd799439011/historic/deployments" \
-H "x-api-key: your-api-key" \
-H "x-organization-id: your-organization-id"
import requests
API_KEY = "your-api-key"
ORGANIZATION_ID = "your-organization-id"
PROJECT_ID = "507f1f77bcf86cd799439011"
headers = { "x-api-key" : API_KEY , "x-organization-id" : ORGANIZATION_ID }
deployments = requests.get(
f "https://api.zenifra.com/v1/project/ {PROJECT_ID} /historic/deployments" ,
headers = headers
).json()
print (deployments)
const axios = require ( 'axios' );
const API_KEY = 'your-api-key' ;
const ORGANIZATION_ID = 'your-organization-id' ;
const PROJECT_ID = '507f1f77bcf86cd799439011' ;
axios. get (
`https://api.zenifra.com/v1/project/${ PROJECT_ID }/historic/deployments` ,
{ headers: { 'x-api-key' : API_KEY , 'x-organization-id' : ORGANIZATION_ID } }
). then (( response ) => console. log (response.data));
Code Likely reason How to fix 401Authentication header is missing Send x-api-key 403Invalid organization or permission Confirm x-organization-id and project access 404Project not found Check Project ID, API Key, and organization 500Failed to fetch history Retry or contact support