---
updatedAt: 2026-09-30T13:47:59.000Z
agentTools:
  projectIndex: https://developers.localizejs.com/llms.txt
---

# Create Phrases with a Custom Label

```node Node
var phrases = JSON.stringify({phrases: 
    [{labels: ['contact-form'], phrase: "Email Address", type: 'phrase'},
    {labels: ['contact-form'], phrase: "First Name", type: 'phrase'},
    {labels: ['contact-form'], phrase: "Last Name", type: 'phrase'},
    {labels: ['contact-form'], phrase: "Phone", type: 'phrase'},
    {labels: ['contact-form'], phrase: "Address", type: 'phrase'},
    {labels: ['contact-form'], phrase: "City", type: 'phrase'},
		{labels: ['contact-form'], phrase: "State", type: 'phrase'},
		{labels: ['contact-form'], phrase: "Zipcode", type: 'phrase'}]
});

const projectKey = 'YOUR_PROJECT_KEY';
const apiKey = 'YOUR_API_KEY';

const fetch = require('node-fetch');

const url = 'https://api.localizejs.com/v2.0/projects/' + projectKey + '/phrases';
const options = {
  method: 'POST',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + apiKey
  },
  body: phrases
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
```

# Define Phrases

<!-- node@1-10 -->

Define the list of phrases that you are creating.

Add a custom label to each phrase.

# Define Auth Tokens

<!-- node@12-13 -->

Enter the Project Key and API Key from your Localize dashboard.

# Create Phrases

<!-- node@15-31 -->

Call the Create Phrase(s) endpoint.