get_file_versions
curl --request GET \
--url https://ndi-api.nace.ai/v1/workspaces/{workspace_id}/files/{file_id}/versions \
--header 'X-API-Key: <api-key>'{
"items": [
{
"created_at": "2023-11-07T05:31:56Z",
"is_current": true,
"size_bytes": 123,
"version": 123,
"ingested_at": "2023-11-07T05:31:56Z",
"ingested_hash": "<string>",
"observed_hash": "<string>",
"replaced_at": "2023-11-07T05:31:56Z"
}
],
"total_count": 123,
"next_cursor": "<string>"
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}get_file_versions
Return a newest-first page of version history for a file. Cost class: fast.
Metadata only — bytes from superseded versions are not retained by
default (customer opt-in). is_current is true only on the latest
version.
GET
/
v1
/
workspaces
/
{workspace_id}
/
files
/
{file_id}
/
versions
get_file_versions
curl --request GET \
--url https://ndi-api.nace.ai/v1/workspaces/{workspace_id}/files/{file_id}/versions \
--header 'X-API-Key: <api-key>'{
"items": [
{
"created_at": "2023-11-07T05:31:56Z",
"is_current": true,
"size_bytes": 123,
"version": 123,
"ingested_at": "2023-11-07T05:31:56Z",
"ingested_hash": "<string>",
"observed_hash": "<string>",
"replaced_at": "2023-11-07T05:31:56Z"
}
],
"total_count": 123,
"next_cursor": "<string>"
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}Authorizations
Query Parameters
Opaque cursor from a previous page's next_cursor. Omit for the first page.
Rows per page.
Required range:
1 <= x <= 200