Skip to the page

API reference

Workspaces and members

The workspace, its members, data retention, the export and the deletion status.

GET How deleting this workspace works

/api/clist/v1/workspaces/{workspaceId}/deletion

API key scope: workspace.delete

timer is true where one of the workspace’s Jornada packs keeps an ARP and it holds Jornada records. Such a workspace is deleted only after a full Jornada export made at most export_max_age_hours before and its ZIP (bundle_url) downloaded completely; deleting it removes all access at once and erases its data erasure_days later; the encrypted backup copies expire within backup_days more; the employer must keep the export for keep_years. Otherwise the workspace is erased at once. full_export is the latest full Jornada export when timer is true (fresh: still recent enough; bundle_downloaded: its ZIP, or every one of its yearly parts (parts), was downloaded completely), else null. Owners only.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • timer boolean required
    • erasure_days integer required
    • backup_days integer required
    • export_max_age_hours integer required
    • keep_years integer or null required
    • full_export object or null
      • id string (uuid) required
      • read_at string (date-time) required UTC instant (ISO 8601, ending in Z). Nothing in the API is a local time.
      • fresh boolean required
      • bundle_url string required
      • bundle_downloaded boolean required
      • parts array of object
        • year integer required
        • bundle_url string required
        • downloaded boolean required

Errors come in the error format.

POST Export all of the workspace’s data

/api/clist/v1/workspaces/{workspaceId}/export

API key scope: workspace.delete

A ZIP with manifest.json, data.json (every table of the workspace, including the audit log), provenance.json (the code, schema and format that made it, docs/provenance.md) and the attachment files. It carries nothing of any other workspace and no secrets (API keys, invitations, guest invitations, link PIN hashes, sessions, visitor IDs). Owners only; counts against the plan’s exports per hour; payload_too_large past 256 MB of attachments.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/zip The ZIP archive.

Errors come in the error format.

GET Members of a workspace

/api/clist/v1/workspaces/{workspaceId}/members

API key scope: workspace.view

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • members array of object required
      • user_id string (uuid) required
      • email string required
      • display_name string required
      • role one of: "owner", "admin", "member" required
      • app_profile_key string or null The A7reports app employee profile assigned to the member; null when they get the workspace default. On the workspace member routes (not on a Group’s members).
      • personal_owner boolean True for the person a personal workspace was created for at signup, whose role cannot change and who cannot be removed (personal_workspace_owner); false for everyone else. On the workspace member routes (not on a Group’s members).

Errors come in the error format.

GET The workspace retention setting

/api/clist/v1/workspaces/{workspaceId}/retention

API key scope: workspace.view

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Responses

  • 200 application/json
    • retention_days null or integer (1 to 3650) required Days a run is kept after its last activity; null keeps runs until the workspace is deleted.

Errors come in the error format.

PUT Set how long run data is kept

/api/clist/v1/workspaces/{workspaceId}/retention

API key scope: workspace.update

Runs (their answers, submissions and attachments) whose last activity is older than retention_days are purged by a daily job, and anonymous IDs left with no data are purged with them. The audit log has separate retention. null keeps everything.

Parameters

NameInTypeRequiredDescription
workspaceIdpathstring (uuid)yes

Request

Request body application/json (required): object

  • retention_days null or integer (1 to 3650) required Days a run is kept after its last activity; null keeps runs until the workspace is deleted.

Responses

  • 200 application/json
    • retention_days null or integer (1 to 3650) required Days a run is kept after its last activity; null keeps runs until the workspace is deleted.

Errors come in the error format.