Skip to main content
GET
/
files
/
{id}
Get file metadata
curl --request GET \
  --url https://api.demo.cula.earth/tracking/v1/files/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Cula-Organisation-Id: <cula-organisation-id>'
{
  "id": "fil_01kqzcjrpyf27tgeaqk8twgw91",
  "file_name": "puro_LCA_RCCS_Q4.xlsm",
  "file_size_bytes": 2451230,
  "mime_type": "application/vnd.ms-excel.sheet.macroEnabled.12",
  "site": {
    "id": "<string>",
    "external_id": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

OAuth2 client credentials flow. Exchange your client_id and client_secret for a short-lived access token, then pass it as a Bearer token in the Authorization header.

Headers

Cula-Organisation-Id
string
required

Organisation ID that scopes this request. The authenticated consumer must be authorized for this organisation. Omitting this header returns 400; passing an unauthorised org returns 403.

Path Parameters

id
string
required

Cula-assigned resource ID in TypeID format (e.g. stp_01kqzcjrpxf27tge33jwvjhkff). Alternatively, pass your external ID prefixed with ext- (e.g. ext-MY-STEP-001). The ext- prefix is unambiguous because TypeIDs use _ separators and never start with ext-.

Response

File metadata.

id
string
required
Example:

"fil_01kqzcjrpyf27tgeaqk8twgw91"

file_name
string
required
Example:

"puro_LCA_RCCS_Q4.xlsm"

file_size_bytes
integer
required
Example:

2451230

mime_type
string
required
Example:

"application/vnd.ms-excel.sheet.macroEnabled.12"

site
object
required

The site this file belongs to.

created_at
string<date-time>
required