Get Resource Job Progress

Get the current progress of resource creation jobs.

Request Format:

  • Always send an array of job UUIDs (1-50 jobs)
  • For a single job, send a single-element array: ["job-uuid"]

Response Format:

  • Always returns {jobs: [...]} array format
  • For a single job, destructure first element: const {jobs: [job]} = response.data

This endpoint replaces the previous GET /:uuid and POST /batch endpoints.

Body
required
application/json
  • jobIds
    Type: array string[] 1…50
    required

    Array of job UUIDs (1-50 jobs)

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/resource/jobs
curl https://api.gpcn.com/v1/resource/jobs \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_SECRET_TOKEN' \
  --data '{
  "jobIds": [
    ""
  ]
}'
{
  "success": true,
  "message": "string",
  "data": {
    "jobs": [
      {
        "jobId": "123e4567-e89b-12d3-a456-426614174000",
        "resourceType": "virtual_machine",
        "resourceDisplayName": "string",
        "operation": "create",
        "stage": "initializing",
        "progressPercentage": 0,
        "message": "string",
        "errorMessage": "string",
        "estimatedCompletion": "2026-05-19T14:02:02.487Z",
        "timeRemaining": "string",
        "canRetry": true,
        "isCompleted": true,
        "hasFailed": true,
        "resourceId": "123e4567-e89b-12d3-a456-426614174000",
        "resourceName": "string",
        "createdAt": "2026-05-19T14:02:02.487Z",
        "updatedAt": "2026-05-19T14:02:02.487Z"
      }
    ]
  },
  "meta": null
}