Documents

List documents of a project

OAuth: This endpoint requires one of the following scopes: project:manage, project:write or project:read.

List Documents

get
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

Query parameters
pageintegerOptional

Search results are limited to 100 items. Specify page number to read more than the first page.

Responses
200

Lists Documents

application/json
get
/v1/clients/projects/{project_id}/documents

Code samples

Filter documents of a project

OAuth: This endpoint requires one of the following scopes: project:manage, project:write or project:read.

Filter Documents

get
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

Query parameters
pageintegerOptional

Search results are limited to 100 items. Specify page number to read more than the first page.

wherestringOptional

URL encoded JSON selector composed of one or several criteria.

orderstringOptional

Comma separated order list

Responses
200

Filters Documents

application/json
get
/v1/clients/projects/{project_id}/documents/filter

Parameters

You can use the Filter API to filter documents on a collection of criteria.

Name
Type
Description

id

string

The unique identifier of the document.

ref

string

The reference identifying the document.

title

string

The title of the document.

activity_name

string

The activity of the document.

status

string

The status of the document. See the Workflow section.

created_at

string

Describes the time the document was created. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

updated_at

string

Describes the time the document was last updated. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

completed_at

string

Describes the time the document was completed. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

started_at

string

Describes the time the assigned author started working on the document. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

submitted_at

string

Describes the time the assigned author submitted its work on the document. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

language_from_code

string

The source language code of the document. One of the language code returned by the Language endpoint.

language_to_code

string

The target language code of the document. One of the language code returned by the Language endpoint.

word_count

integer

The number of words in the document.

category

string

The category identifier for the document. One of the category returned by the Category endpoint.

deliver_work_as_file

boolean

Whether the author has to submit its work as a file or not. Default to false.

Code samples

Get a document

OAuth: This endpoint requires one of the following scopes: project:manage, project:write or project:read.

Get a Document

get
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

document_idstringRequired

The Document ID.

Responses
200

Gets a Document

application/json
get
/v1/clients/projects/{project_id}/documents/{document_id}

Code samples

Create a document

TextMaster supports automated word-counting for translation and proofreading documents. An automated count can be scheduled by setting the perform_word_count to true. In this case word_count can be omitted and will be ignored if provided.

In case of an error, the API response will contain a word_count_error: true node. The two most common failure reasons are:

  • Unsupported file format for file attachments, in this case a new file must be uploaded

  • For key/value and plain text documents, the only possible reason is a temporary service issue

For translation documents, the automated word-counting can be configured to count translatable content in HTML/XML documents, using the markup_in_content option.

Original Content

For translation or proofreading documents, the content can be provided directly or by using the Upload API. For standard documents, the original content is a sentence in a readable format (txt, html, …). For key/value documents, the original content has to be an object with a unique key associated to a value.

Markup in content

The markup_in_content option indicates whether the original content contains markup (HTML, XML, …) or not. Always set it to true for HTML/XML files. Failing to doing so could result in tag names being counted as words and translated, and you being charged for that work. For files with a .html or .xml extension, this parameter is assumed to be true. It defaults to false otherwise.

Tips: Always set markup_in_content to true for content which contains HTML or XML.

Providing content as a file

You can choose to provide the original content as a file instead of providing as raw data. To do so, provide the URL of the file as remote_file_url. To learn more about uploading files, see:

File uploads

Callbacks

You can specify callbacks using the callback property. It's an object listing URLs to call for each document status. See the list of supported events.

OAuth: This endpoint requires one of the following scopes: project:manage or project:write.

Create a Document

post
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

Body
Responses
200

Document Created

application/json
post
/v1/clients/projects/{project_id}/documents

Code samples

Create batch of documents

Creates several documents at once. Accepts the same document parameters as singular version, but there can be several of them and they must be placed into a documents array.

OAuth: This endpoint requires one of the following scopes: project:manage or project:write.

Create multiple Documents

post
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

Body
Responses
200

Documents Created

application/json
post
/v1/clients/projects/{project_id}/batch/documents

Code samples

Get a document review URL

Generates the document's review URL which points to the work that requires author review. You can for example, copy this URL into the message sent to the assigned author when completed the document.

OAuth: This endpoint requires one of the following scopes: project:manage, project:write or project:read.

Generate a Review URL

post
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

document_idstringRequired

The Document ID.

Body
keysstring[]Required

The document keys to be reviewed

Responses
200

Gets a Review URL

application/json
post
/v1/clients/projects/{project_id}/documents/{document_id}/review_url

Code samples

Update a document

The update document endpoint takes the same parameters as the create endpoint. Note that you can't update a document once its project has been launched.

OAuth: This endpoint requires one of the following scopes: project:manage or project:write.

Update a Document

put
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

document_idstringRequired

The Document ID.

Body
Responses
200

Document Updated

application/json
put
/v1/clients/projects/{project_id}/documents/{document_id}

Code samples

Complete a document

Approve the work done by the assigned author and mark the document as completed. Note that when all documents in a project are completed, the project is considered completed too.

OAuth: This endpoint requires one of the following scopes: project:manage or project:write.

Complete a Document

put
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

document_idstringRequired

The Document ID.

Body
satisfactionstring · enumOptional

Satisfaction level. * positive * neutral (default) * negative

Possible values:
messagestringOptional

Message addressed to the Author.

Responses
200

Document Completed

application/json
put
/v1/clients/projects/{project_id}/documents/{document_id}/complete

Code samples

Complete batch of documents

OAuth: This endpoint requires one of the following scopes: project:manage or project:write.

Complete multiple Documents

post
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

Body
documentsstring[]Required
satisfactionstring · enumOptional

Satisfaction level. * positive * neutral (default) * negative

Possible values:
messagestringOptional

Message addressed to the Author.

Responses
200

Documents Completed

application/json
post
/v1/clients/projects/{project_id}/batch/documents/complete

Code samples

Delete a document

Note that you can't delete a document once its project has been launched.

OAuth: This endpoint requires one of the following scopes: project:manage or project:write.

Delete a Document

delete
Authorizations
OAuth2authorizationCodeRequired

OAuth2 Bearer token authentication

Authorization URL: Token URL: Refresh URL:
Available scopes:
  • : Allow read & write access to My Authors
  • : Allow read access to My Authors
  • : Allow write access to My Authors
Path parameters
project_idstringRequired

The Project ID.

document_idstringRequired

The Document ID.

Responses
200

Document Deleted

application/json
delete
/v1/clients/projects/{project_id}/documents/{document_id}

Code samples

Last updated

Was this helpful?