Home
Version 3
Jobs API

Jobs API

Retrieve Job that was successful

GET /v2/jobs/:guid

Fields

Name Description Default Valid Values Example Values
guid The guid of the job.
status The status of the job.
  • failed
  • finished
  • queued
  • running

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.DkXq1OnxU3RzgtcC9FuLCy2d9MPgz47a0GIYmo0LKcA
Host: example.org
Cookie: 

Route

GET /v2/jobs/b989d662-08e6-4d04-a6a6-251bb4822b6d

cURL

curl "https://api.[your-domain.com]/v2/jobs/b989d662-08e6-4d04-a6a6-251bb4822b6d" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.DkXq1OnxU3RzgtcC9FuLCy2d9MPgz47a0GIYmo0LKcA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3ec9525d-362f-4e04-a5ba-e5a9aa24760e
Content-Length: 172
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "0",
    "created_at": "1970-01-01T00:00:00+00:00",
    "url": "/v2/jobs/0"
  },
  "entity": {
    "guid": "0",
    "status": "finished"
  }
}