v1
latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KBKeys
Create a key
Create a new key.
post/projects/{project_id}/keys
Path parameters
project_idstring required
Project ID
Headers
X-PhraseApp-OTPstring
Two-Factor-Authentication token (optional)
Request body
Example request
{
"branch": "my-feature-branch",
"name": "home.index.headline",
"description": "Some description worth knowing...",
"name_plural": "home.index.headlines",
"data_type": "number",
"tags": "awesome-feature,needs-proofreading",
"max_characters_allowed": 140,
"screenshot": "/path/to/my/screenshot.png",
"default_translation_content": "Default translation content",
"custom_metadata": {
"fruit": "Apple",
"vegetable": "Tomato"
},
"excluded_in_locales": [
"de",
"fr"
],
"format_value_type": "string"
}Response
Created
Example response
{
"name_plural": "home.index.headlines",
"comments_count": 2,
"data_type": "string",
"max_characters_allowed": 140,
"screenshot_url": "http://assets.example.com/screenshot.png",
"unformatted": false,
"xml_space_preserve": false,
"original_file": "",
"format_value_type": "",
"creator": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"custom_metadata": {
"fruit": "Apple",
"vegetable": "Tomato"
}
}