Skip to main content

Get current permission info

GET 

/v2/api-keys/current-permissions

Returns current PAK or PAT permissions for current user, api-key and project

Request

Query Parameters

    projectId int64

    Required when using with PAT

Responses

OK

Schema
    projectId int64required

    The API key's project id or the one provided as query param

    viewLanguageIds int64[]

    List of languages user can view. If null, all languages view is permitted.

    translateLanguageIds int64[]

    List of languages user can translate to. If null, all languages editing is permitted.

    stateChangeLanguageIds int64[]

    List of languages user can change state to. If null, changing state of all language values is permitted.

    scopes string[]required

    Possible values: [translations.view, translations.edit, keys.edit, screenshots.upload, screenshots.delete, screenshots.view, activity.view, languages.edit, admin, project.edit, members.view, members.edit, translation-comments.add, translation-comments.edit, translation-comments.set-state, translations.state-edit, keys.view, keys.delete, keys.create, batch-jobs.view, batch-jobs.cancel, translations.batch-by-tm, translations.batch-machine, content-delivery.manage, content-delivery.publish, webhooks.manage]

    Granted scopes to the user. When user has type permissions, this field contains permission scopes of the type.

    type string

    Possible values: [NONE, VIEW, TRANSLATE, REVIEW, EDIT, MANAGE]

    The user's permission type. This field is null if user has assigned granular permissions or if returning API key's permissions

    project objectrequired
    id int64required
    name stringrequired
    description string
    slug string
    avatar object
    large stringrequired
    thumbnail stringrequired
    baseLanguage object
    id int64required
    name stringrequired

    Language name in english

    tag stringrequired

    Language tag according to BCP 47 definition

    originalName string

    Language name in this language

    flagEmoji string

    Language flag emoji as UTF-8 emoji

    base booleanrequired

    Whether is base language of project

    icuPlaceholders booleanrequired
Loading...