Skip to content

Poll status

GET
/api/v1/tasks/{id}/status

Checks if a task is completed, if so, it redirects to the task's resource, otherwise returns 200.

Parameters

Path Parameters

id*

Task ID

Typeinteger
Required
Example1234567890

Responses

OK

Samples

cURL
curl -X GET https://openfish.appspot.com/api/v1/tasks/{id}/status
JavaScript
fetch("https://openfish.appspot.com/api/v1/tasks/{id}/status")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/tasks/{id}/status");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/tasks/{id}/status")
print(response.json())