Get Job
Endpoint
GET https://europe-west1-gepettoai.cloudfunctions.net/v1/job/{id}
Path Parameters
Name
Type
Description
id*
String
JOB ID received in /redesign /furnish or /upscale when setting the webhook parameter.
Headers
Name
Type
Description
Authorization*
String
Bearer {{API_KEY}}
{
"status": "success",
"output": "<Image URL>",
"mode": "furnish",
"createdAt": "2023-09-29T13:17:21.774Z"
}Code Examples
curl --location 'https://europe-west1-gepettoai.cloudfunctions.net/v1/job/{id}' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json'var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer {{API_KEY}}");
myHeaders.append("Content-Type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders
};
const response = await fetch("https://europe-west1-gepettoai.cloudfunctions.net/v1/job/{id}", requestOptions)
const body = await reponse.json();
console.log(body)import requests
import json
url = "https://europe-west1-gepettoai.cloudfunctions.net/v1/job/{id}"
payload = {}
headers = {
'Authorization': 'Bearer {{API_KEY}}',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)Last updated
Was this helpful?