Skip to content

Foot Scan Measurements

A common use case for Structure Cloud is to generate foot measurements. Users can upload a scan and request a job be performed to generate the measurements using the /jobs endpoint.

Create a Job

Referencing previously uploaded scan, create a new job by sending a POST request to the /jobs endpoint, specifying foot measurements.

curl -X "POST" \
    "https://cloud.structure.io/api/v0.1/jobs" \
    -H "accept: application/json" \
    -H "Authorization: Bearer $SCP_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
    "input": "scan_id",
    "kind": "foot_measurements"
    }'
response = session.post(
    "https://cloud.structure.io/api/v0.1/jobs",
    json={
        "kind": "foot_measurements",
        "input": "scan_id"
    }
)

Check the Job Status

Periodically ping the /jobs endpoint using a GET request, referencing the job ID, to find the job status.

curl -X "GET" \
    "https://cloud.structure.io/api/v0.1/jobs/{job_id}" \
    -H "accept: application/json" \
    -H "Authorization: Bearer $SCP_TOKEN" \
    -H "Content-Type: application/json" \
response = session.get(
    "https://cloud.structure.io/api/v0.1/jobs/{job_id}",
)

Get Your Measurements

Once the job status is complete, send a GET request to the /results endpoint referencing the results ID. The foot measurements will be delivered in the response.

curl -X "GET" \
    "https://cloud.structure.io/api/v0.1/results/{result_id}" \
    -H "accept: application/json" \
    -H "Authorization: Bearer $SCP_TOKEN" \
    -H "Content-Type: application/json" \
response = session.get(
    "https://cloud.structure.io/api/v0.1/results/{result_id}",
)