Projects API
Download OpenAPI DocumentProjects with their files, filed jobs, workflow and fields, batch runs, tasks, checklists and people.
List projects
Create a project
Get a project
Update a project
Move a project
List project members
Add project members
Update a project member
Workflow
- PUT/v1/project/{id}/workflow
- GET/v1/project/{id}/workflow/changes
- POST/v1/project/{id}/workflow/sync
- PUT/v1/project/{id}/step-owners
- PUT/v1/project/{id}/workflow/default
- PUT/v1/project/{id}/run-outcomes
- PUT/v1/project/{id}/step-checklists
- PUT/v1/project/{id}/step-modes
- PUT/v1/project/{id}/assignment-rules
- PUT/v1/project/{id}/language-links
- PUT/v1/project/{id}/workflow-languages
Attach a workflow
Preview workflow changes
Sync the workflow
Set step owners
Set the default workflow
Set run outcome statuses
Set step checklists
Set step modes
Set assignment rules
Set language mapping
Set workflow languages
Get project fields
Set project field values
Override field values on a task
Replace custom fields
Batches
- POST/v1/project/{id}/batches/preview
- POST/v1/project/{id}/batches
- GET/v1/project/{id}/batches
- GET/v1/project/{id}/batches/{batchId}
- GET/v1/task/{id}/run
- POST/v1/task/{id}/run
- POST/v1/project/{id}/tasks/run
- GET/v1/project-runs/mine
- POST/v1/task/{id}/run/deliverables
- GET/v1/task/{id}/step-assignment
- GET/v1/project-runs/summary
- PUT/v1/task/{id}/step-assignment
- POST/v1/task/{id}/step-assignment/auto
- GET/v1/project/{projectId}/pickable-people
- POST/v1/task/{id}/step-assignment/pass
- POST/v1/project/{projectId}/tasks/assign/preview
- POST/v1/project/{projectId}/tasks/assign
- GET/v1/task-pool
- POST/v1/task-pool/{id}/claim
Preview a batch
What running the project’s workflow on a folder would do: the files it takes (in path order, flagging the ones that already ran), the files it skips and why, the credits the balance must cover to start, and anything that stops it from starting (blocked). Creates nothing.
Permission: project:update and task:create and cosmos:execute. An API key acts with the role of the member who created it.
Path Parameters
Project id.
Bodyrequiredapplication/json
The Drive folder to run on: the project’s own folder, or any folder inside it.
Also run the files in the folder’s subfolders. By default only the files directly in the folder run.
Run only these files (asset ids of files directly in folderId) instead of the whole folder. includeSubfolders is then ignored; an id that is not a file in the folder is left out.
Which of the project’s attached workflows to run. Left out: the default one.
Target languages for this run only (BCP-47 codes from the language catalog). Left out: the project’s targetLanguages. With a workflow that maps the target language and makes one task per language (the default), each file gets one task per language, each with its own run, assignee, status and deliverable; otherwise one task per file carries them all.
Source language for this run only (a BCP-47 code). Left out: the project’s sourceLanguage.
Responses
200OK
Show child attributes
Folder names from the project folder down to this one.
Whether this is the project folder itself.
Files the workflow can take, in path order — with targetLanguages, one row per file and language, the languages in the order asked.
Show child attributes
Path inside the picked folder.
The file already ran in this project. It only runs again with rerun.
The file’s task has a run that is still going (or queued in another batch). It doesn’t start again until that run ends.
The file’s task in this project, if it has one.
The target language of this row when the batch runs each file per language (one row per file and language; taskId, alreadyRan and running are that language’s task). null for one task per file.
Show child attributes
wrong-type: the workflow doesn’t take this kind of file. empty: the file has no content. duplicate: another file here holds the same content, and only that one runs.
Runs that will start: the files (per language, with targetLanguages) that never ran here and aren’t running now. One task and one run each.
Files (per language, with targetLanguages) that already ran and aren’t running now; rerun adds them.
Credits the balance must cover to start the runs: one per paid step per run (paidSteps × runCount, so files × languages with targetLanguages). With rerun, the ones that already ran count too.
Required fields the project hasn’t filled yet.
Show child attributes
The run input each file fills.
Steps that charge credits. Every run needs at least one credit per paid step to start; each step charges its own work when it runs.
File extensions the per-file input takes; null when it takes any file.
Why the batch can’t start as it is, or null when it can. Starting returns the same reason as an error.
Who would take each step a person acts on (approvals always; other steps when someone is named for them), per target language, if the runs started now. An approval with mode none would go to nobody.
Show child attributes
The workflow step.
Its name.
The target language (BCP-47) this answer is for.
fixed named owners, rule the project’s rules, pool offered to claim, manual a lead assigns it, auto matched (deal proofreader or preferred linguist), none nobody.
Org member ids who would take it.
Nobody matched, so the project’s managers would take it.
400`That folder isn’t in this project`, or the folder holds too many files and folders to scan.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
404`Project not found`: no such project in your organization, or it is hidden from you.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/project/3ad094a0-4b21-4cf3-a789-dd9bad5fa27e/batches/preview' \
--request POST \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"folderId": "8b1e2c3d-4f5a-4b6c-9d7e-0f1a2b3c4d5e",
"includeSubfolders": false,
"assetIds": [
"2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f"
],
"flowId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"targetLanguages": [
"de-DE",
"fr-FR"
],
"sourceLanguage": "en-US"
}'{
"folder": {
"id": "8b1e2c3d-4f5a-4b6c-9d7e-0f1a2b3c4d5e",
"name": "Wave 1",
"path": [
"Brochure DE",
"Source",
"Wave 1"
],
"isProjectRoot": true
},
"workflow": {
"flowId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Translate PDF + sign-off",
"version": 3,
"perFileKey": "translate__source",
"perFileLabel": "Source PDF",
"accepts": [
".pdf"
],
"paidSteps": 1
},
"files": [
{
"assetId": "2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f",
"path": "brochure_spring.pdf",
"name": "brochure_spring.pdf",
"size": 482133,
"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"alreadyRan": true,
"running": true,
"targetLanguage": "de-DE"
}
],
"skipped": [
{
"assetId": "2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f",
"path": "order_form.docx",
"reason": "wrong-type"
}
],
"runCount": 12,
"rerunCount": 1,
"minimumCredits": 12,
"missing": [
"Translation memory"
],
"blocked": null,
"owners": [
{
"nodeId": "n_signoff",
"label": "Linguist sign-off",
"targetLanguage": "fr-FR",
"mode": "rule",
"ownerIds": [
"4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
],
"fellBack": false
}
]
}Start a batch
List batches
Get a batch
Get a task’s run
Run a task again
Run several tasks again
List runs that need me
File a run’s results again
Get a task’s step assignment
Summarize runs
Reassign a task’s step
Assign a task’s step automatically again
List who can take work
Pass a task’s step on
Preview a bulk assignment
Assign tasks in bulk
List work to claim
Claim a task from the pool
Get project file totals
List linked directories
Link an Assets directory or file
List a linked directory’s files
Processes
List processes in a project
Find a process in any project
Tasks
- GET/v1/project/{projectId}/tasks
- POST/v1/project/{projectId}/tasks
- GET/v1/task/mine
- GET/v1/task/search
- GET/v1/project/{projectId}/schedule
- GET/v1/task/{id}
- GET/v1/project/{projectId}/workload
- PATCH/v1/task/{id}
- GET/v1/task/{id}/file
- PUT/v1/task/{id}/file
- POST/v1/task/{id}/move
- GET/v1/task/{id}/process
- GET/v1/project/{projectId}/tasks/by-file
- PUT/v1/task/{id}/process