Skip to content
Suomi

One export job

GET
/v1/projects/{projectId}/export-jobs/{jobId}
Code sample: Shell / cURL
curl --request GET \
--url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/export-jobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
projectId
required
string format: uuid
jobId
required
string format: uuid

The job’s id

The job

Media typeapplication/json

An export job.

object
id
required
string format: uuid
project_id
required
string format: uuid
kind
required

What a job exports.

string
Allowed values: csv_topics csv_assets csv_inspections as_built_csv report_md report_pdf handover
status
required

Poll while queued or running. done: download each file. refused: message says why (too large, too slow). failed: start it again with a new Idempotency-Key; a job cut off before it ends reads failed a minute after it started. expired: the files are gone. New statuses may come.

string
Allowed values: queued running done refused failed cancelled expired
params
required

The parameters of an export job.

object
language

fi or en.

string
Allowed values: fi en
stages
object
key
additional properties
string
counts
required

What the files hold, by kind: rows, findings, photos

object | null
truncated
required

Files that stop at their row limit

Array<string>
omitted
required

Files a handover package left out because they could not be built in time

Array<string>
code
required

EXPORT_REFUSED or EXPORT_FAILED

string | null
message
required
string | null
created_at
required
string
started_at
required
string
finished_at
required
string | null
expires_at
required

When the files go; 24 hours after the job is done

string | null
files
required

Download file n with getExportJobFile and file=n

Array<object>

A file of an export job.

object
name
required
string
sha256
required

Hex SHA-256 of the file

string
size_bytes
required
integer format: int64
content_type
required
string

Example

{
"kind": "csv_topics",
"status": "queued",
"params": {
"language": "fi"
}
}

VALIDATION_ERROR for a malformed id or parameter

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

Missing, malformed, expired or revoked token

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE below the role the kind needs; FEATURE_OFF for report_pdf where the organisation lacks the PDF report; PUBLIC_API_DISABLED

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

No such project or job

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

RATE_LIMITED; wait for Retry-After seconds

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}