Create 1 or more new source language phrases for a project
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
NOTES:
- When you create a new phrase, its state is set to
activeby default.- You can change this by setting the
statefield.
- You can change this by setting the
- If the phrase already exists in your Localize dashboard, the endpoint will return
successand theexistingPhrasefield will be set to1. - For new phrases, the internal phrase IDs will be returned in a successful call.
Using VariablesIf your phrases include variables, you are required to provide a
nameattribute for the variable, or the phrase won't work properly in your Localize dashboard.Correct:
Welcome back, <var username>theC00lkid</var>.Incorrect:
Welcome back, <var>theC00lkid</var>.
You can create and view your private API Key here.
Try it
⚠️ This uses your production account
The Try It feature sends real API requests directly to your production Localize account. There is no sandbox, demo, or test environment. Requests are authenticated using your Localize API Key and operate directly on your production data.
To use the Try It feature:
- Enter your production Localize API Key in the Header field in the AUTHENTICATION section on the right.
- Fill in all required fields below, and any optional fields as needed.
- Click the Try it button to send the request.
- View the API response and any errors on the right side of the screen.
🚨 Changes are applied to production
Any changes made by the API request will affect your production Localize account. Use this feature with the same care as you would when making the request from your own application.
You can also copy the sample code provided on the right side of the screen and use it as a starting point for making requests from your own application.