Manual
CLI
API
Log in Get started free

Get project settings

Returns the workflow flags, file format and message format of a project.

Returns the workflow flags, file format and message format of a project.

HTTP
GET /projects/{projectId}/settings

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Any role in the project.

Path parameters #

ParameterDescription
projectIdThe id of the project.

Response 200 #

The settings.

JSON
{
  "flags": {
    "requireReview": true,
    "selfReview": false,
    "notifyReviewers": true,
    "mtSuggestions": true,
    "mtAutofill": false,
    "mtFlag": true,
    "freeze": false,
    "importCreate": true,
    "importOverwrite": false,
    "importReview": true,
    "gitTags": false
  },
  "format": "json",
  "messageFormat": "ICU (recommended)",
  "mtProvider": null,
  "mtConnected": ["deepl"],
  "machineTranslation": { "providers": ["deepl"], "default": "deepl" }
}

Response fields #

FieldTypeDescription
flags.requireReviewbooleanTranslations must be approved before they are published.
flags.selfReviewbooleanReviewers may approve their own translations.
flags.notifyReviewersbooleanEmail reviewers when a translation is submitted.
flags.mtSuggestionsbooleanMachine translation suggestions.
flags.mtAutofillbooleanTranslate new strings automatically after a push, see mtProvider.
flags.mtFlagbooleanFlag machine translated text.
flags.freezebooleanFreeze the project: push and key changes are refused.
flags.importCreatebooleanImports may create keys.
flags.importOverwritebooleanImports may overwrite existing translations.
flags.importReviewbooleanImported translations go to review.
flags.gitTagsbooleanA tag pushed to the linked GitHub or GitLab repository makes a tag of main with the same name.
formatstringjson, yaml, po or xliff.
messageFormatstringICU (recommended), i18next, Fluent or None.
mtProviderstring|nullThe service that translates automatically for this project, one of the services in Machine translation. null means the organisation’s default.
mtConnectedstring[]The services the organisation set up and that have not refused their key, the default first, whether or not flags.mtSuggestions is on. These are the ones mtProvider can use.
machineTranslation.providersstring[]The machine translation services the organisation set up and that have not refused their key, the default first. Empty when none, and also when flags.mtSuggestions is off. The editor only shows the suggestion panel when it is not empty.
machineTranslation.defaultstring|nullThe service a suggestion uses when none is asked for.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe project does not exist in your organisation, you have no access to it, or projectId is not a UUID.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.