Smartling

App · 25 actions

Run translation jobs, upload files and strings, follow progress and handle issues in Smartling.

Actions

ActionWhat it does
Add file to jobAdd a file's unpublished strings to a job, for all of the job's languages or only some.
Add stringsAdd up to 100 pieces of text to a project for translation, without a file.
Add strings to jobAdd strings to a job by their hashcodes, from Add strings or List source strings.
Authorize jobSend a job's content to translation.
Cancel jobCancel a draft, awaiting or in-progress job.
Comment on issueAdd a comment to an issue.
Create issueRaise an issue on a string, such as a question about the source text or a problem with a translation.
Create jobCreate a translation job in a project.
Delete fileDelete a source file from a project.
Delete jobDelete a canceled job.
Get file statusGet a file's string and word counts and, for each language, how many are authorized and published.
Get jobGet a translation job with its status, languages, dates and issue counts.
Get job progressGet how far a job's translation has got, overall and for each language and workflow step.
Get projectGet a project with its source language and the languages it translates into.
List filesList the source files recently uploaded to a project, up to 100.
List glossariesList your account's glossaries and the languages each covers.
List issuesList a project's issues, newest first, optionally only open or resolved ones of some types.
List jobsList translation jobs across your account, newest first, optionally for one project or status.
List projectsList the projects in your Smartling account, with their source language.
List source stringsList the source strings of a file, or of strings given by hashcode, with their hashcodes and keys.
List translationsList the translations of a file's strings, or of strings given by hashcode, in one language.
Resolve or reopen issueMark an issue resolved, or open it again.
Search glossary entriesFind terms in a glossary, with their translations in the languages you choose.
Update jobChange a job's name, description, due date or reference number.
Upload fileUpload a source file to a project, so Smartling picks out its text for translation.

Add file to job

Add a file's unpublished strings to a job, for all of the job's languages or only some.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.
Filefile_uritextRequired
The file, by the URI it was uploaded with, such as /content/en/home.json.
Languagestarget_localeslist
Languages to translate into. Leave empty for all of the job's languages.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "code": "example",
    "failCount": 1,
    "message": "example",
    "processUid": "example",
    "successCount": 1,
    "url": "example"
  }
}

Add strings

Add up to 100 pieces of text to a project for translation, without a file. Returns each string's hashcode.

Inputs

Projectproject_idtextRequired
The Smartling project.
TextstextslistRequired
The text of each string, up to 10,000 characters each.
Instruction for translatorsinstructiontext
A note shown to translators for these strings.
Maximum lengthmax_lengthnumber
The longest a translation should be, in characters.At least 1.
File URIfile_uritext
Group the strings under this virtual file URI. Smartling uses /Strings when empty.
Placeholder formatplaceholder_formattext
How placeholders such as %s or {name} are written in the text.One of: none, c (C (printf)), ios, python, java, yaml, qt, resx (.NET RESX).

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "hashcode": "example",
        "overWritten": "example",
        "parsedStringText": "example",
        "stringText": "example",
        "variant": "example"
      }
    ],
    "processUid": "example",
    "stringCount": 1,
    "totalCount": 1,
    "wordCount": 1
  }
}

Add strings to job

Add strings to a job by their hashcodes, from Add strings or List source strings.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.
HashcodeshashcodeslistRequired
The strings' hashcodes.
Languagestarget_localeslist
Languages to translate into. Leave empty for all of the job's languages.
Move from other jobsmove_from_other_jobstrue/false
Move strings that are already in another job into this one. Otherwise they are skipped.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "code": "example",
    "failCount": 1,
    "message": "example",
    "processUid": "example",
    "successCount": 1,
    "url": "example"
  }
}

Authorize job

Send a job's content to translation. The job must have content and be awaiting authorization; this can incur translation costs.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "code": "example"
  }
}

Cancel job

Cancel a draft, awaiting or in-progress job. Its content is removed from the job and unauthorized.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.
Reasonreasontext
Why the job is canceled.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "code": "example",
    "message": "example",
    "processUid": "example",
    "url": "example"
  }
}

Comment on issue

Add a comment to an issue.

Inputs

Projectproject_idtextRequired
The Smartling project.
Issueissue_idtextRequired
The issue.
CommentcommenttextRequired
The comment.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "commentText": "example",
    "commentTextModifiedDate": "example",
    "createdByUserUid": "example",
    "createdDate": "example",
    "issueCommentUid": "example"
  }
}

Create issue

Raise an issue on a string, such as a question about the source text or a problem with a translation.

Inputs

Projectproject_idtextRequired
The Smartling project.
Issue typeissue_typetextRequired
What kind of issue it is.One of: CLARIFICATION (Source text needs clarification), MISSPELLING (Source text is misspelled), POOR_TRANSLATION (Poor translation), DOES_NOT_FIT_SPACE (Translation doesn't fit the space), PLACEHOLDER_ISSUE (Placeholder problem in the translation), REVIEW_TRANSLATION (Translation needs review), MT_ERROR (Machine translation error).
Issueissue_texttextRequired
What the issue is, up to 4,000 characters.
String hashcodehashcodetextRequired
The string's hashcode, from Add strings or List source strings.
LanguagelocaletextRequired
The language the issue is about.
Severityseveritytext
How serious the issue is.One of: LOW, MEDIUM, HIGH.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "accountUid": "example",
    "answered": true,
    "assigneeUserUid": "example",
    "createdDate": "example",
    "issueCommentsCount": 1,
    "issueNumber": 1,
    "issueSeverityLevelCode": "example",
    "issueStateCode": "example",
    "issueSubTypeCode": "example",
    "issueText": "example",
    "issueTypeCode": "example",
    "issueUid": "example",
    "lastCommentDate": "example",
    "projectId": "example",
    "reopened": true,
    "reportedByUserUid": "example",
    "resolvedDate": "example",
    "string": {
      "hashcode": "example",
      "localeId": "example"
    }
  }
}

Create job

Create a translation job in a project. Add files or strings to it afterwards, then authorize it.

Inputs

Projectproject_idtextRequired
The Smartling project.
Job namejob_nametextRequired
The job's name. It must be unique within the project.
Languagestarget_localeslist
Languages to translate into. You can also add them later with Add language to job.
Descriptiondescriptiontext
What the job is for. Up to 8,000 characters.
Due datedue_datedate and time
When the translations are needed.
Reference numberreference_numbertext
Your own reference for the job, such as an order or ticket number.
Completion callback URLcallback_urltext
A web address Smartling calls when the job is completed.
Callback methodcallback_methodtext
How Smartling calls the completion callback URL.One of: GET, POST.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "callbackMethod": "example",
    "callbackUrl": "example",
    "createdByUserUid": "example",
    "createdDate": "example",
    "customFields": [
      {
        "fieldName": "example",
        "fieldUid": "example",
        "fieldValue": "example"
      }
    ],
    "description": "example",
    "dueDate": "example",
    "firstAuthorizedDate": "example",
    "firstCompletedDate": "example",
    "issues": {
      "sourceIssuesCount": 1,
      "translationIssuesCount": 1
    },
    "jobName": "example",
    "jobNumber": "example",
    "jobStatus": "example",
    "lastAuthorizedDate": "example",
    "lastCompletedDate": "example",
    "modifiedByUserUid": "example",
    "modifiedDate": "example",
    "referenceNumber": "example",
    "targetLocaleIds": [
      "example"
    ],
    "translationJobUid": "example"
  }
}

Delete file

Delete a source file from a project. Finished translations stay available in Smartling.

Inputs

Projectproject_idtextRequired
The Smartling project.
Filefile_uritextRequired
The file, by the URI it was uploaded with, such as /content/en/home.json.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "code": "example"
  }
}

Delete job

Delete a canceled job.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "code": "example"
  }
}

Get file status

Get a file's string and word counts and, for each language, how many are authorized and published.

Inputs

Projectproject_idtextRequired
The Smartling project.
Filefile_uritextRequired
The file, by the URI it was uploaded with, such as /content/en/home.json.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "created": "example",
    "fileType": "example",
    "fileUri": "example",
    "hasInstructions": true,
    "items": [
      {
        "authorizedStringCount": 1,
        "authorizedWordCount": 1,
        "completedStringCount": 1,
        "completedWordCount": 1,
        "excludedStringCount": 1,
        "excludedWordCount": 1,
        "localeId": "example"
      }
    ],
    "lastUploaded": "example",
    "parserVersion": 1,
    "totalCount": 1,
    "totalStringCount": 1,
    "totalWordCount": 1
  }
}

Get job

Get a translation job with its status, languages, dates and issue counts.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "callbackMethod": "example",
    "callbackUrl": "example",
    "createdByUserUid": "example",
    "createdDate": "example",
    "customFields": [
      {
        "fieldName": "example",
        "fieldUid": "example",
        "fieldValue": "example"
      }
    ],
    "description": "example",
    "dueDate": "example",
    "firstAuthorizedDate": "example",
    "firstCompletedDate": "example",
    "issues": {
      "sourceIssuesCount": 1,
      "translationIssuesCount": 1
    },
    "jobName": "example",
    "jobNumber": "example",
    "jobStatus": "example",
    "lastAuthorizedDate": "example",
    "lastCompletedDate": "example",
    "modifiedByUserUid": "example",
    "modifiedDate": "example",
    "referenceNumber": "example",
    "targetLocaleIds": [
      "example"
    ],
    "translationJobUid": "example"
  }
}

Get job progress

Get how far a job's translation has got, overall and for each language and workflow step.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.
Languagelocaletext
Only this language. Leave empty for every language.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "contentProgressReport": [
      {
        "targetLocaleDescription": "example",
        "targetLocaleId": "example",
        "unuathorizedProgressReport": {
          "stringCount": 1,
          "wordCount": 1
        },
        "workflowProgressReportList": [
          {
            "workflowName": "example",
            "workflowStepSummaryReportItemList": [
              {
                "stringCount": 1,
                "wordCount": 1,
                "workflowStepName": "example",
                "workflowStepType": "example",
                "workflowStepUid": "example"
              }
            ],
            "workflowUid": "example"
          }
        ]
      }
    ],
    "progress": {
      "percentComplete": 1,
      "totalWordCount": 1
    },
    "summaryReport": [
      {
        "stringCount": 1,
        "wordCount": 1,
        "workflowStepType": "example"
      }
    ]
  }
}

Get project

Get a project with its source language and the languages it translates into.

Inputs

Projectproject_idtextRequired
The Smartling project.
Include disabled languagesinclude_disabled_localestrue/false
Also list languages that are switched off for the project.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "accountUid": "example",
    "archived": true,
    "projectId": "example",
    "projectName": "example",
    "projectTypeCode": "example",
    "sourceLocaleDescription": "example",
    "sourceLocaleId": "example",
    "targetLocales": [
      {
        "description": "example",
        "enabled": true,
        "localeId": "example"
      }
    ]
  }
}

List files

List the source files recently uploaded to a project, up to 100.

Inputs

Projectproject_idtextRequired
The Smartling project.
URI containsuri_containstext
Only files whose URI contains this text, such as .json.
File typesfile_typeslist
Only files of these formats.One or more of: android (Android XML), arb (Flutter ARB), asciidoc, csv, dita, ditaZip (DITA (ZIP)), doc (Word 97-2003 (.doc)), docm (Word with macros (.docm)), docx (Word (.docx)), flare (MadCap Flare), and 37 more.
Uploaded afteruploaded_afterdate and time
Only files last uploaded after this time.
Uploaded beforeuploaded_beforedate and time
Only files last uploaded before this time.
Orderordertext
How to sort the files.One of: lastUploaded_desc (Last uploaded, newest first), lastUploaded_asc (Last uploaded, oldest first), created_desc (Created, newest first), created_asc (Created, oldest first), fileUri_asc (File URI, A to Z), fileUri_desc (File URI, Z to A).
Limitlimitnumber
How many files to return, up to 100.From 1 to 100.
Offsetoffsetnumber
How many files to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "created": "example",
        "fileType": "example",
        "fileUri": "example",
        "hasInstructions": true,
        "lastUploaded": "example"
      }
    ],
    "totalCount": 1
  }
}

List glossaries

List your account's glossaries and the languages each covers.

Inputs

Searchquerytext
Only glossaries whose name or description contains this text.
Count entriesinclude_entry_countstrue/false
Also count each glossary's entries.
Limitlimitnumber
How many glossaries to return, up to 500.From 1 to 500.
Offsetoffsetnumber
How many glossaries to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "archived": true,
        "createdDate": "example",
        "description": "example",
        "entriesCount": 1,
        "glossaryName": "example",
        "glossaryUid": "example",
        "localeIds": [
          "example"
        ],
        "modifiedDate": "example",
        "verificationMode": true
      }
    ],
    "totalCount": 1
  }
}

List issues

List a project's issues, newest first, optionally only open or resolved ones of some types.

Inputs

Projectproject_idtextRequired
The Smartling project.
Statesstateslist
Only issues in these states.One or more of: OPENED (Open), RESOLVED.
Aboutissue_typeslist
Only issues about the source text or about translations.One or more of: SOURCE (Source text), TRANSLATION.
Created aftercreated_afterdate and time
Only issues created after this time.
Created beforecreated_beforedate and time
Only issues created before this time.
Limitlimitnumber
How many issues to return, up to 30.From 1 to 30.
Offsetoffsetnumber
How many issues to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "accountUid": "example",
        "answered": true,
        "assigneeUserUid": "example",
        "createdDate": "example",
        "issueCommentsCount": 1,
        "issueNumber": 1,
        "issueSeverityLevelCode": "example",
        "issueStateCode": "example",
        "issueSubTypeCode": "example",
        "issueText": "example",
        "issueTypeCode": "example",
        "issueUid": "example",
        "lastCommentDate": "example",
        "projectId": "example",
        "reopened": true,
        "reportedByUserUid": "example",
        "resolvedDate": "example",
        "string": {
          "hashcode": "example",
          "localeId": "example"
        }
      }
    ],
    "totalCount": 1
  }
}

List jobs

List translation jobs across your account, newest first, optionally for one project or status.

Inputs

Projectproject_idtext
Only jobs in this project. Leave empty for every project.
Name containsname_containstext
Only jobs whose name contains this text.
Statusesstatuseslist
Only jobs in these statuses.One or more of: DRAFT, AWAITING_AUTHORIZATION (Awaiting authorization), IN_PROGRESS (In progress), COMPLETED, CANCELLED, CLOSED, DELETED.
Limitlimitnumber
How many jobs to return, up to 1000.From 1 to 1000.
Offsetoffsetnumber
How many jobs to skip, to read the next page.At least 0.
Ordersort_directiontext
Newest first (the default) or oldest first, by creation date.One of: DESC (Newest first), ASC (Oldest first).

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "createdDate": "example",
        "description": "example",
        "dueDate": "example",
        "jobName": "example",
        "jobNumber": "example",
        "jobStatus": "example",
        "priority": 1,
        "projectId": "example",
        "referenceNumber": "example",
        "targetLocaleIds": [
          "example"
        ],
        "translationJobUid": "example"
      }
    ],
    "totalCount": 1
  }
}

List projects

List the projects in your Smartling account, with their source language.

Inputs

Name containsname_containstext
Only projects whose name contains this text.
Include archivedinclude_archivedtrue/false
Also list archived projects.
Limitlimitnumber
How many projects to return, up to 500.From 1 to 500.
Offsetoffsetnumber
How many projects to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "accountUid": "example",
        "archived": true,
        "projectId": "example",
        "projectName": "example",
        "projectTypeCode": "example",
        "sourceLocaleDescription": "example",
        "sourceLocaleId": "example"
      }
    ],
    "totalCount": 1
  }
}

List source strings

List the source strings of a file, or of strings given by hashcode, with their hashcodes and keys.

Inputs

Projectproject_idtextRequired
The Smartling project.
Filefile_uritext
The file, by the URI it was uploaded with, such as /content/en/home.json.
Hashcodeshashcodeslist
Only these strings, by hashcode.
Limitlimitnumber
How many strings to return, up to 500.From 1 to 500.
Offsetoffsetnumber
How many strings to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "hashcode": "example",
        "keys": [
          {
            "fileUri": "example",
            "key": "example"
          }
        ],
        "maxLength": 1,
        "parsedStringText": "example",
        "stringInstructions": [
          "example"
        ],
        "stringText": "example",
        "stringVariant": "example"
      }
    ],
    "totalCount": 1
  }
}

List translations

List the translations of a file's strings, or of strings given by hashcode, in one language.

Inputs

Projectproject_idtextRequired
The Smartling project.
LanguagelocaletextRequired
The language of the translations.
Filefile_uritext
The file, by the URI it was uploaded with, such as /content/en/home.json.
Hashcodeshashcodeslist
Only these strings, by hashcode.
Translationstranslation_statetext
Any saved translation (the default), or only published ones.One of: pending (Any saved translation), published (Published translations only).
Limitlimitnumber
How many strings to return, up to 10000.From 1 to 10000.
Offsetoffsetnumber
How many strings to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "hashcode": "example",
        "keys": [
          {
            "fileUri": "example",
            "key": "example"
          }
        ],
        "parsedStringText": "example",
        "stringText": "example",
        "stringVariant": "example",
        "targetLocaleId": "example",
        "translations": [
          {
            "modifiedDate": "example",
            "pluralForm": "example",
            "translation": "example"
          }
        ],
        "workflowStepUid": "example"
      }
    ],
    "totalCount": 1
  }
}

Resolve or reopen issue

Mark an issue resolved, or open it again.

Inputs

Projectproject_idtextRequired
The Smartling project.
Issueissue_idtextRequired
The issue.
StatestatetextRequired
Resolved, or open again.One of: RESOLVED, OPENED (Open).

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "issueStateCode": "example",
    "reopened": true
  }
}

Search glossary entries

Find terms in a glossary, with their translations in the languages you choose.

Inputs

Glossaryglossary_idtextRequired
The glossary.
LanguageslocaleslistRequired
The languages to show translations in. Each must be one of the glossary's languages.
Searchquerytext
Only entries with a term containing this text.
Limitlimitnumber
How many entries to return, up to 500.From 1 to 500.
Offsetoffsetnumber
How many entries to skip, to read the next page.At least 0.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "items": [
      {
        "archived": true,
        "createdDate": "example",
        "definition": "example",
        "entryUid": "example",
        "glossaryUid": "example",
        "labelUids": [
          "example"
        ],
        "modifiedDate": "example",
        "partOfSpeech": "example",
        "translations": [
          {
            "caseSensitive": true,
            "disabled": true,
            "doNotTranslate": true,
            "exactMatch": true,
            "localeId": "example",
            "notes": "example",
            "term": "example",
            "variants": [
              "example"
            ]
          }
        ]
      }
    ],
    "totalCount": 1
  }
}

Update job

Change a job's name, description, due date or reference number. Details you leave empty stay as they are.

Inputs

Projectproject_idtextRequired
The Smartling project.
Jobjob_idtextRequired
The translation job.
Job namejob_nametext
A new name for the job.
Descriptiondescriptiontext
A new description, up to 8,000 characters.
Due datedue_datedate and time
A new due date.
Reference numberreference_numbertext
A new reference number.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "callbackMethod": "example",
    "callbackUrl": "example",
    "createdByUserUid": "example",
    "createdDate": "example",
    "customFields": [
      {
        "fieldName": "example",
        "fieldUid": "example",
        "fieldValue": "example"
      }
    ],
    "description": "example",
    "dueDate": "example",
    "firstAuthorizedDate": "example",
    "firstCompletedDate": "example",
    "issues": {
      "sourceIssuesCount": 1,
      "translationIssuesCount": 1
    },
    "jobName": "example",
    "jobNumber": "example",
    "jobStatus": "example",
    "lastAuthorizedDate": "example",
    "lastCompletedDate": "example",
    "modifiedByUserUid": "example",
    "modifiedDate": "example",
    "referenceNumber": "example",
    "targetLocaleIds": [
      "example"
    ],
    "translationJobUid": "example"
  }
}

Upload file

Upload a source file to a project, so Smartling picks out its text for translation. Uploading to an existing file URI replaces that file.

Inputs

Projectproject_idtextRequired
The Smartling project.
FilefiletextRequired
Upload a file, choose one from an earlier step, or enter a link to one.
File URIfile_uritextRequired
A unique name for the file in Smartling, such as /content/en/home.json. Use it to find the file later.
File typefile_typetextRequired
The file's format.One of: android (Android XML), arb (Flutter ARB), asciidoc, csv, dita, ditaZip (DITA (ZIP)), doc (Word 97-2003 (.doc)), docm (Word with macros (.docm)), docx (Word (.docx)), flare (MadCap Flare), and 37 more.
Completion callback URLcallback_urltext
A web address Smartling calls when a language's translation of the file is fully published.

Outputs

dataobject
The response from Smartling.
Example output
{
  "data": {
    "overWritten": true,
    "stringCount": 1,
    "wordCount": 1
  }
}

On this page