TeamGriddeveloper
TeamGrid Developer

exports SDK client

4 typed @teamgrid/api-client methods for Search and Exports, plus 1 convenience helper.

Client propertyclient.exports
Mapped operations4
API groupsSearch and Exports

Operation methods

Parameter declarations below are taken from the pinned TypeScript source. Request fields and responses are summarized from the matching OpenAPI operation; follow the API link for every field, constraint, example, and error description.

POST/exports
Full API operation →

exports.create

Creates a credential-owned asynchronous CSV export in the owning cell. Resource permissions, sharing filters and a 10,000-row bound are applied again by the export worker.

client.exports.create(data: ExportCreate, options: MutationOptions = {})
Return form
Promise
Operation ID
createExport
Required scopes
exports:write
Conditional scopes
contacts:readprojects:readtasks:readtime-entries:read
SDK parameters
data: ExportCreateoptions: MutationOptions
Header request fields
Idempotency-Key: string
Request body
ExportCreateapplication/json
Success
201 ExportCreation envelope
Declared API errors
400401403409429502503
GET/exports/{id}
Full API operation →

exports.get

Returns only credential-owned job status; storage coordinates and signed URLs remain private.

client.exports.get(id: string, options?: RequestOptions)
Return form
Promise
Operation ID
getExport
Required scopes
exports:read
Conditional scopes
contacts:readprojects:readtasks:readtime-entries:read
SDK parameters
id: stringoptions: RequestOptions
Path request fields
id: string
Success
200 Export envelope
Declared API errors
400401403404429502503
POST/exports/{id}/download-intent
Full API operation →

exports.createDownloadIntent

Creates a short-lived single-export capability only after the job succeeded and credential ownership, workspace and resource-domain permissions are revalidated.

client.exports.createDownloadIntent(id: string, options: RequestOptions = {})
Return form
Promise
Operation ID
createExportDownloadIntent
Required scopes
exports:read
Conditional scopes
contacts:readprojects:readtasks:readtime-entries:read
SDK parameters
id: stringoptions: RequestOptions
Path request fields
id: string
Success
201 ExportDownloadIntent envelope
Declared API errors
400401403404409429502503
GET/exports/{id}/download
Full API operation →

exports.download

Consumes the header-only opaque intent, resolves a private cell-local storage target internally, rejects redirects and streams at most 50 MiB. The storage URL never appears in the public response.

client.exports.download(id: string, options: ExportDownloadOptions)
Return form
Promise
Operation ID
downloadExport
Required scopes
exports:read
Conditional scopes
contacts:readprojects:readtasks:readtime-entries:read
SDK parameters
id: stringoptions: ExportDownloadOptions
Path request fields
id: string
Header request fields
X-TeamGrid-Export-Download-Intent: string
Success
200 string
Declared API errors
400401403404409429502503

Convenience helpers

These typed helpers compose mapped operations. They do not grant scopes or bypass API limits.

exports.downloadStream

SDK convenience helper without a one-to-one public API operation.

client.exports.downloadStream(id: string, options: ExportDownloadOptions)
Returns Promise

Errors and transport metadata

HTTP failures reject with TeamGridApiError, including the status, stable error documents, request ID, optional retry delay, and transport metadata. Local validation, routing, timeout, response-size, and pagination failures reject withTeamGridClientError and a stable client error code. Successful envelopes expose non-enumerable transport metadata.

See pagination and errors andclient configuration for handling guidance.

Stable documentation · Developer Platform · Reviewed 2026-08-10Edit this page ↗
Documentation feedbackWas this page useful?
Esc

Search TeamGrid Developer

Find guides, concepts and every API operation.