Check Status

Check the status of a task submitted to the API.

Check the status of a task submitted to the API.

post
Authorizations
Body
subscription_keystringRequired
Responses
201Success
application/json
post
POST /api/v2/status HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 27

{
  "subscription_key": "text"
}
201Success
{
  "error": "OK",
  "jobs": [
    {
      "uuid": "text",
      "status": "Waiting"
    }
  ]
}

The Generation APIs are time and resource consuming, so we designed them to be asynchronous. This means that you submit a task without getting the result immediately.

Instead, your program can then periodically check the status of the task you submitted by supplying the API endpoint the task subscription key you got from your Generation API call. Once this API tell you that your task has finished, you can safely use the Download API to get a list of URLs from where you can download the result models of your task submitted.

The following table lists the possible values from the API call in the status field and the semantics of them.

Status
Meaning

Waiting

Your task has entered our task queue waiting to be scheduled for execution.

Generating

Our worker is working on generating models for your task.

Done

The task is done. In this case, you can head to the Download API to download the result.

Failed

The task has failed during execution. In this case, you may need to contact our support for details.

Pricing

We do not charge any addtional credits for calling this API to check the status of your task.

Request

Authentication

This API uses bearer key for authentication. You need to include a valid token in the Authorization header for all requests. Refer to the Quickstart section for how to generate an API key for your account.

Authorization: Bearer RODIN_API_KEY

Body

The API takes one parameter in the POST request body.

Parameter
Type
Description

subscription_key

string

Required. The subscription key of the task you want to query the status of. Typically you will get it in the response from the Generation API.

Response

The JSON response has the following fields.

Property
Type
Description

error

string

Optional. Error message, if any.

jobs

array of objects

The jobs of the task, containing details of individual jobs executed as part of the generation process.

jobs.uuid

string

The uuid of the job.

jobs.status

string

The status of the job. The possible values are summarized in the table above.

Examples

export RODIN_API_KEY="your api key"
curl -X 'POST' \
  'https://api.hyper3d.com/api/v2/status' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "subscription_key": "your-subscription-key"
}'
unset RODIN_API_KEY

Last updated

Was this helpful?