SmartDocumentor
  • Overview
    • SmartDocumentor
  • GETTING STARTED
    • About SmartDocumentor
    • How SmartDocumentor Works
    • Main concepts
      • Workspaces
      • Organization
    • Quickstart 101
    • Licenses
      • How to Buy?
      • Support
    • Privacy
    • Security
  • Technical
    • Initial Setup
    • Mappings
    • API Reference
      • [POST] Client Credentials Access Token
      • [GET] Task Status
      • [GET] Task Status List
      • [GET] Task Status List Paginated
      • [GET] Get Workspaces
      • [PATCH] Reprocess Task
      • [POST] Create Task
      • [POST] Create Batch
      • [GET] Get Batch
      • [GET] Get Batch Paginated
      • Transcripts
        • Speakers
          • Workspaces
            • [GET] Workspace Speakers
            • [PUT] Workspace Speakers
          • Tasks
            • [GET] Task Speakers
            • [POST] Task Speaker
            • [PUT] Task Speaker
            • [DELETE] Task Speaker
      • Invite Users
        • [GET] List Available Roles
        • Tenants
          • [GET] List All Tenant Users
          • [POST] Invite Users
        • Workspaces
          • [GET] List All Workspace Users
          • [POST] Invite Users
    • Folder Worker
    • Export
      • Webhooks
        • Webhook (Text Documents)
        • Webhook (Transcripts)
        • Webhook Url To File (Transcripts)
        • Webhook Url to File (Anonymization)
    • Changelog
  • FAQs
    • FAQs
Powered by GitBook
On this page
  • Task Status and Integration Status
  • Task Status
  • Integration Status
  • Task Type
  • Task Assignment Order Type
  • Workspace Type
  • Template Type
  • Speaker Source
  • Known Metadata Keys
  1. Technical

Mappings

PreviousInitial SetupNextAPI Reference

Last updated 5 days ago

Our API uses enums to describe the multiple statuses a task can be in during processing and various other type-like values.

We also return textual representations of these enums for ease of use where appropriate.

Below you can find these various enums and their respective mappings.

Task Status and Integration Status

There are two distinct types of task statuses:

  • TaskStatus: this status identifies the processing state of the task. It shows if the task is queued, pre-processing, recognizing, processed or deleted, among others, with a high degree of granularity.

  • IntegrationStatus: this status identifies the integration state of the task. It shows if the task has been queued for integration, if it was successful or if it failed.

You can use both TaskStatus and IntegrationStatus to control and understand the lifecycle of your tasks. Common use cases include:

  • Creating detailed task listings, such as the page, with detailed information about the processing state of the task, and conditional access to the Task Viewer if the task is in the To Review state.

  • Understanding when the task needs manual (or automatic) re-processing, for example if it is stuck in Pre-Processing in Progress for long periods of time.

  • Creating batch logic in your application, by understanding if all tasks in your batch are already in the Processed state.

  • Understanding if a Task needs to be reviewed again, if the integration status is Failed.

Below you can find two tables mapping these values, with a small description for each one.

Task Status

Task Status
Value
Description

Deleting

19

Task was queued for deletion

Deleted

20

Task was deleted and moved to history

QueuedForPreProcessing

30

Task was queued for pre-processing

PreProcessingInProgress

31

Task is currently in pre-processing

PreProcessingFailed

32

Task has failed pre-processing

PreProcessingDownloadFailed

33

Task has failed download at the pre-processing step

PreProcessingSuccessful

34

Task has completed pre-processing

PreProcessingGetPagesFailed

35

Task has failed due to not being able to obtain total pages

PreProcessingInsufficientVolume

36

Task has failed due to insufficient licensing volume

PreProcessingLicenseExpired

37

Task has failed due to an expired license

PreProcessingSplittingInProgress

38

Task is currently being split into multiple, smaller tasks

PreProcessingSplittingFailed

39

Task failed split

QueuedForRecognizing

40

Task was queued for recognizing

RecognizingInProgress

41

Task is currently being recognized

RecognizingFailed

42

Task has failed at the recognizing step

RecognizingSuccessful

43

Task has completed recognizing

QueuedForPostProcessing

50

Task was queued for post-processed

PostProcessingInProgress

51

Task is currently being post-processed

PostProcessingFailed

52

Task has failed post-processing

PostProcessingSuccessful

53

Task has completed post-processing successfully

ToReview

60

Task is ready for review

InReview

70

Task is currently being reviewed

QueuedForExport

90

Task was queued for integration with the external system

ExportInProgress

91

Task is currently being exported

ExportFailed

92

Task failed export

ExportSuccessful

93

Task has completed export

Processed

100

Task was successfully exported and has been fully processed

ProcessedAfterPeriodAndDeletedFiles

110

Task was processed after the time period and its additional files have been deleted

Integration Status

Integration Status
Value
Description

Never

1

No integration attempt was ever issued for this task

Queued

2

Task is currently queued for integration

Successful

3

Last integration attempt was successful. All detected entities were added to the external system

Failed

4

Last integration attempt failed. One or more detected entities were not added to the external system

Task Type

The TaskType enum describes the type of a given task in our system.

We can use this type not only to identify what kind of file is being processed, but also to write conditional logic and pages specific to each type of task.

TaskType and Workspaces

Each Workspace processes one - and only one - Task type at a time. The value of TaskType changes depending on the template you chose when creating a Workspace, which means it is also related to TemplateType.

Task Type
Value
Description

Invoice

10

For general invoices and portuguese invoices tasks which may include supported QR Codes.

Receipt

20

For receipt tasks.

LegalDocument

30

For legal document tasks. Only available to certain Organizations.

Transcript

40

For transcription tasks of audio and video files.

Labelling

50

For labeling tasks, used to label documents to create custom templates.

Custom

60

For tasks using custom templates for recognition.

Subtitles

70

For subtitling tasks of video files.

Task Assignment Order Type

The TaskAssignmentOrderType enum defines the sequence in which a task assignment must be reviewed.

Order Type
Value
Description

AnyUser

10

Any assigned user can conduct the review, and once one completes it, the task will be finished.

AnyOrder

20

Any assigned user can review it, but the task will only be finished once all assignees have finished their revisions.

Sequence

30

The task can only be reviewed by the assigned users in the specified sequence. The task will be finished only after all assignees have completed their revisions.

Workspace Type

The WorkspaceType enum describes the type of workspace you are working with.

Workspace Type
Value
Description

Standard

10

For standard workspaces focused on processing Tasks and exporting them to some external system.

LabelingAndTraining

20

For workspaces focused on loading files for labeling, and then using that information to train new custom templates

Template Type

The TemplateType enum helps identify what kind of template was used to create a given workspace.

This enum is predominantly used for display purposes, or as a fallback when the actual template used cannot be identified.

Template Type
Value
Description

BuiltIn

10

The default built-in templates created by the SmartDocumentor team - the default template selections when you create a new workspace.

Template

20

A custom template, created by an user of your Organization, of the Template type. This type excels at detecting fields in documents with very similar layouts and structure.

TrainTemplate

30

A special built-in template type used to create workspaces to train custom Template models. This is the template type used when you create a new custom template and select the Template type.

Neural

40

A custom template, created by an user of your Organization, of the Neural type. This type can use AI to detect fields in documents with irregular layouts and structures.

TrainNeural

50

A special built-in template type used to create workspaces to train custom Neural models. This is the template type used when you create a new custom template and select the Neural type.

Speaker Source

The SpeakerSource enum helps identify which source the speaker was retrieved from.

Speaker Source
Value
Description

Task

10

Speaker belongs only to Task locally.

Batch

20

The Speaker belongs to a Batch

Workspace

30

The Speaker belongs to a workspace

Known Metadata Keys

These are case sensitive text values that can be matched to trigger specific behavior. However any text values can be considered for metadata key or metadata values.

Metadata Key
Type
Description
Supported Values

SentByEmail

string(optional, available in all Workspaces)

Email address of the user that has inserted the document/task in the system

Any valid email address

Similarly to the enum, this enum allows us to completely change the UI/UX of a given workspace if necessary, providing custom logic depending on its value.

Tasks Inbox
TaskType