# Yext

> Manage locations and other entities in Yext's Knowledge Graph, respond to reviews, send review invitations, handle publisher suggestions and posts, and follow new reviews, questions and listing changes.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/yext

## Actions

### Accept or reject publisher suggestion

Accept a publisher's suggested change, which updates the entity, or reject it.

**Inputs**

- Suggestion (`suggestion_id`, text, required): The suggestion's ID.
- Answer (`status`, text, required): Accept or reject the change. One of: `ACCEPTED`, `REJECTED`.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {}
}
```

### Create entity

Add an entity, such as a location, to the Knowledge Graph.

**Inputs**

- Type (`entity_type`, text, required): What kind of entity it is. One of: `location`, `restaurant`, `healthcareProfessional` (Healthcare professional), `healthcareFacility` (Healthcare facility), `financialProfessional` (Financial professional), `hotel`, `hotelRoomType` (Hotel room type), `atm`, `event`, `faq`, and 3 more.
- Name (`name`, text, required): The entity's name.
- Entity ID (`new_entity_id`, text): Your own ID for the entity, such as a store number. Leave empty and Yext makes one.
- Address (`address_line1`, text): The street address.
- Address line 2 (`address_line2`, text): The second line of the address, such as a suite.
- City (`city`, text): The city.
- State or region (`region`, text): The state, province or region, such as NY.
- Postal code (`postal_code`, text): The ZIP or postal code.
- Country (`country_code`, text): The two-letter country code, such as US.
- Main phone (`main_phone`, text): The main phone number, such as +12125551234.
- Description (`description`, text): A description of the business.
- Website (`website`, text): The website address.
- Emails (`emails`, list): Email addresses.
- Folder (`folder_id`, text): The folder to keep the entity in.
- Other fields (`other_fields`, object): Any other fields, by their API name, such as {"c_storeCode": "12"} for a custom field.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "meta": {
      "entityType": "example",
      "id": "example",
      "uid": "example"
    },
    "name": "example"
  }
}
```

### Create post

Publish a post for one or more entities on Google Business Profile, Facebook, Instagram, LinkedIn or TikTok.

**Inputs**

- Entities (`entity_ids`, list, required): The entities to post for.
- Publisher (`publisher`, text, required): Where to publish. One of: `GOOGLEMYBUSINESS` (Google Business Profile), `FACEBOOK`, `INSTAGRAM`, `LINKEDIN`, `TIKTOK`, `FIRSTPARTY` (Your own pages (first party)).
- Text (`text`, text): The post's text.
- Title (`title`, text): A title, where the publisher shows one.
- Photo URLs (`photo_urls`, list): Links to photos to attach.
- Link (`clickthrough_url`, text): A link people can follow from the post.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "clickthroughUrl": "example",
    "createdDate": "example",
    "entityId": [
      "example"
    ],
    "entityPosts": [
      {}
    ],
    "photoUrls": [
      "example"
    ],
    "postDate": "example",
    "postFormat": "example",
    "postId": "example",
    "postTitle": "example",
    "publishers": [
      "example"
    ],
    "text": "example"
  }
}
```

### Delete entity

Delete an entity from the Knowledge Graph. Its listings are taken down.

**Inputs**

- Entity (`entity_id`, text, required): The entity: a location, professional, product or other record in the Knowledge Graph.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Delete post

Delete a post from every publisher it was published to.

**Inputs**

- Post ID (`post_id`, text, required): The post's ID, which Create post returns.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {}
}
```

### Delete review invitation

Delete a review invitation.

**Inputs**

- Invitation ID (`invitation_id`, text, required): The invitation's ID (invitationUid), which Send review invitation returns.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {}
}
```

### Delete review response

Delete a response you posted to a review.

**Inputs**

- Review ID (`review_id`, number, required): The review's ID. At least 1.
- Comment ID (`comment_id`, text, required): The comment's ID, which Respond to review returns.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {}
}
```

### Get entity

Get an entity's details: name, address, phone, hours, website and its other fields.

**Inputs**

- Entity (`entity_id`, text, required): The entity: a location, professional, product or other record in the Knowledge Graph.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "countryCode": "example",
      "line1": "example",
      "line2": "example",
      "postalCode": "example",
      "region": "example"
    },
    "answer": "example",
    "categoryIds": [
      "example"
    ],
    "closed": true,
    "description": "example",
    "emails": [
      "example"
    ],
    "hours": {},
    "mainPhone": "example",
    "meta": {
      "countryCode": "example",
      "createdTimestamp": "example",
      "entityType": "example",
      "folderId": "example",
      "id": "example",
      "labels": [
        "example"
      ],
      "language": "example",
      "timestamp": "example",
      "uid": "example"
    },
    "name": "example",
    "websiteUrl": {
      "displayUrl": "example",
      "url": "example"
    }
  }
}
```

### Get question

Get a question and its answers.

**Inputs**

- Question ID (`question_id`, text, required): The question's ID.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "answerCount": 1,
    "answers": [
      {
        "authorName": "example",
        "authorType": "example",
        "content": "example",
        "createTime": 1,
        "id": 1
      }
    ],
    "authorName": "example",
    "authorType": "example",
    "content": "example",
    "createTime": 1,
    "entityIds": [
      "example"
    ],
    "id": "example",
    "language": "example",
    "publisherId": "example",
    "updateTime": 1,
    "upvoteCount": 1
  }
}
```

### Get review

Get a review with its rating, text, author and comments.

**Inputs**

- Review ID (`review_id`, number, required): The review's ID. At least 1.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "authorEmail": "example",
    "authorName": "example",
    "comments": [
      {
        "authorName": "example",
        "authorRole": "example",
        "content": "example",
        "id": 1,
        "parentId": 1,
        "publisherDate": 1,
        "visibility": "example"
      }
    ],
    "content": "example",
    "flagStatus": "example",
    "id": 1,
    "labelIds": [
      1
    ],
    "lastYextUpdateTime": 1,
    "locationId": "example",
    "publisherDate": 1,
    "publisherId": "example",
    "rating": 1,
    "recommendation": "example",
    "reviewLanguage": "example",
    "reviewType": "example",
    "status": "example",
    "title": "example",
    "url": "example"
  }
}
```

### List custom fields

List the account's custom fields with their API names (c_...), types and options.

**Inputs**

- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Page token (`page_token`, text): The next page token from the last page, to read the next page.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "count": 1,
    "customFields": [
      {
        "group": "example",
        "id": "example",
        "name": "example",
        "options": [
          {}
        ],
        "type": "example"
      }
    ],
    "pageToken": "example"
  }
}
```

### List entities

List the Knowledge Graph's entities (locations, professionals, products and more), optionally of some types, in a folder or by name.

**Inputs**

- Entity types (`entity_types`, list): Only entities of these types. One or more of: `location`, `restaurant`, `healthcareProfessional` (Healthcare professional), `healthcareFacility` (Healthcare facility), `financialProfessional` (Financial professional), `hotel`, `hotelRoomType` (Hotel room type), `atm`, `event`, `faq`, and 3 more.
- Name contains (`name_contains`, text): Only entities whose name contains this text.
- Folder (`folder_id`, text): Only entities in this folder.
- How many (`limit`, number): How many to return, up to 50. Leave empty for 10. From 1 to 50.
- Page token (`page_token`, text): The next page token from the last page, to read the next page.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "count": 1,
    "entities": [
      {
        "address": {
          "city": "example",
          "countryCode": "example",
          "line1": "example",
          "line2": "example",
          "postalCode": "example",
          "region": "example"
        },
        "answer": "example",
        "categoryIds": [
          "example"
        ],
        "closed": true,
        "description": "example",
        "emails": [
          "example"
        ],
        "hours": {},
        "mainPhone": "example",
        "meta": {
          "countryCode": "example",
          "createdTimestamp": "example",
          "entityType": "example",
          "folderId": "example",
          "id": "example",
          "labels": [
            "example"
          ],
          "language": "example",
          "timestamp": "example",
          "uid": "example"
        },
        "name": "example",
        "websiteUrl": {
          "displayUrl": "example",
          "url": "example"
        }
      }
    ],
    "pageToken": "example"
  }
}
```

### List folders

List the account's entity folders.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "count": 1,
    "folders": [
      {
        "id": "example",
        "name": "example",
        "parentId": "example"
      }
    ]
  }
}
```

### List listings

List your entities' listings on publishers, with each one's sync status and URL.

**Inputs**

- Entities (`entity_ids`, list): Only these entities. Leave empty for all.
- Publishers (`publisher_ids`, list): Only listings on these publishers, such as GOOGLEMYBUSINESS.
- Statuses (`statuses`, list): Only listings with these statuses. Leave empty for all but deleted and stopped ones. One or more of: `LIVE`, `NOT_SYNCED` (Not synced), `SYNC_IN_PROGRESS` (Sync in progress), `UPDATE_IN_PROGRESS` (Update in progress), `CANCELING_SYNC` (Cancelling sync), `NOT_APPLICABLE` (Not applicable), `DELETE_PENDING` (Delete pending), `DELETE_FAILED` (Delete failed), `DELETED`, `SYNC_STOPPED` (Sync stopped).
- How many (`limit`, number): How many to return, up to 100. Leave empty for 100. From 1 to 100.
- Page token (`page_token`, text): The next page token from the last page, to read the next page.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "count": 1,
    "listings": [
      {
        "entityId": "example",
        "id": "example",
        "listingUrl": "example",
        "publisherId": "example",
        "status": "example",
        "statusDetails": [
          {}
        ]
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List posts

List social and Google posts published through Yext.

**Inputs**

- Entities (`entity_ids`, list): Only these entities. Leave empty for all.
- Contains (`text`, text): Only posts containing this text.
- Page token (`page_token`, text): The next page token from the last page, to read the next page.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "posts": [
      {
        "clickthroughUrl": "example",
        "createdDate": "example",
        "entityId": [
          "example"
        ],
        "entityPosts": [
          {}
        ],
        "photoUrls": [
          "example"
        ],
        "postDate": "example",
        "postFormat": "example",
        "postId": "example",
        "postTitle": "example",
        "publishers": [
          "example"
        ],
        "text": "example"
      }
    ]
  }
}
```

### List publisher suggestions

List changes publishers suggested to your listings, such as new hours from Google users.

**Inputs**

- Entities (`entity_ids`, list): Only these entities. Leave empty for all.
- Statuses (`statuses`, list): Only suggestions with these statuses. One or more of: `WAITING_ON_CUSTOMER` (Waiting for you), `ACCEPTED`, `REJECTED`, `EXPIRED`.
- How many (`limit`, number): How many to return, up to 50. Leave empty for 10. From 1 to 50.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "count": 1,
    "suggestions": [
      {
        "dateCreated": "example",
        "dateResolved": "example",
        "fieldName": "example",
        "id": "example",
        "locationId": "example",
        "originalContent": "example",
        "publisherId": "example",
        "resolvedBy": "example",
        "status": "example",
        "suggestedContent": "example"
      }
    ]
  }
}
```

### List publishers

List the publishers (Google, Apple, Facebook and others) your listings can appear on.

**Inputs**

- Show (`subset`, text): Which publishers to list. Leave empty for the ones your subscription covers. One of: `RELEVANT_ONLY` (Only publishers your subscription and countries cover), `ALL` (Every publisher).

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "publishers": [
      {
        "id": "example",
        "name": "example",
        "supportedCountries": [
          "example"
        ],
        "url": "example"
      }
    ]
  }
}
```

### List questions

List questions customers asked on publishers such as Google, with their answers.

**Inputs**

- How many (`limit`, number): How many to return, up to 50. Leave empty for 10. From 1 to 50.
- Page token (`page_token`, text): The next page token from the last page, to read the next page.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "count": 1,
    "pageToken": "example",
    "questions": [
      {
        "answerCount": 1,
        "answers": [
          {
            "authorName": "example",
            "authorType": "example",
            "content": "example",
            "createTime": 1,
            "id": 1
          }
        ],
        "authorName": "example",
        "authorType": "example",
        "content": "example",
        "createTime": 1,
        "entityIds": [
          "example"
        ],
        "id": "example",
        "language": "example",
        "publisherId": "example",
        "updateTime": 1,
        "upvoteCount": 1
      }
    ]
  }
}
```

### List review invitations

List review requests sent by email or text, with whether each was opened, clicked and reviewed.

**Inputs**

- Entities (`entity_ids`, list): Only these entities. Leave empty for all.
- Status (`status`, text): Only invitations with this status. One of: `PENDING`, `ACCEPTED`, `REJECTED`.
- Sent by (`type`, text): Only email or only text invitations. One of: `EMAIL`, `SMS` (Text message).
- How many (`limit`, number): How many to return, up to 100. Leave empty for 10. From 1 to 100.
- Page token (`page_token`, text): The next page token from the last page, to read the next page.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "clicked": 1,
    "countEmail": 1,
    "countSMS": 1,
    "invitations": [
      {
        "clicked": "example",
        "contact": "example",
        "entity": {
          "id": "example"
        },
        "firstName": "example",
        "invitationUid": "example",
        "language": "example",
        "lastName": "example",
        "opened": "example",
        "reviewId": 1,
        "reviewed": "example",
        "sent": "example",
        "status": "example",
        "templateId": "example",
        "transactionId": "example",
        "type": "example"
      }
    ],
    "nextPageToken": "example",
    "opened": 1,
    "responded": 1,
    "sent": 1
  }
}
```

### List reviews

List reviews from every publisher, filtered by entity, rating, date, status or whether they need a response.

**Inputs**

- Entities (`entity_ids`, list): Only these entities. Leave empty for all.
- Publishers (`publisher_ids`, list): Only reviews from these publishers, such as GOOGLEMYBUSINESS or FACEBOOK.
- Lowest rating (`min_rating`, number): Only reviews rated at least this. From 1 to 5.
- Highest rating (`max_rating`, number): Only reviews rated at most this. From 1 to 5.
- Posted since (`published_since`, date): Only reviews posted on or after this day.
- Updated since (`updated_since`, date): Only reviews changed in Yext on or after this day.
- Waiting for a response (`awaiting_response`, text): Only reviews still waiting for your response. One of: `REVIEW` (Reviews with no response), `COMMENT` (Reviews whose latest comment has no response), `REVIEW_OR_COMMENT` (Either).
- Status (`status`, text): Only reviews with this status. One of: `LIVE`, `QUARANTINED`, `REMOVED`.
- Contains (`text`, text): Only reviews containing this text.
- How many (`limit`, number): How many to return, up to 100. Leave empty for 10. From 1 to 100.
- Page token (`page_token`, text): The next page token from the last page, to read the next page.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "averageRating": 1,
    "count": 1,
    "nextPageToken": "example",
    "reviews": [
      {
        "authorEmail": "example",
        "authorName": "example",
        "comments": [
          {
            "authorName": "example",
            "authorRole": "example",
            "content": "example",
            "id": 1,
            "parentId": 1,
            "publisherDate": 1,
            "visibility": "example"
          }
        ],
        "content": "example",
        "flagStatus": "example",
        "id": 1,
        "labelIds": [
          1
        ],
        "lastYextUpdateTime": 1,
        "locationId": "example",
        "publisherDate": 1,
        "publisherId": "example",
        "rating": 1,
        "recommendation": "example",
        "reviewLanguage": "example",
        "reviewType": "example",
        "status": "example",
        "title": "example",
        "url": "example"
      }
    ]
  }
}
```

### Respond to review

Post your response to a review, publicly or as a private message, on the publisher where it was left.

**Inputs**

- Review ID (`review_id`, number, required): The review's ID. At least 1.
- Response (`content`, text, required): Your response.
- Visibility (`visibility`, text): Public replies show under the review; private ones go only to the reviewer, where the publisher allows it. Leave empty for public. One of: `PUBLIC` (Public reply), `PRIVATE` (Private message to the reviewer).
- Reply to comment (`parent_id`, number): To reply to a comment on the review rather than the review itself, that comment's ID. At least 1.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Send review invitation

Ask a customer to review one of your entities, by email or text message.

**Inputs**

- Entity (`entity_id`, text, required): The entity the customer is asked to review.
- First name (`first_name`, text, required): The customer's first name.
- Last name (`last_name`, text, required): The customer's last name.
- Email or mobile number (`contact`, text, required): The customer's email address, or mobile number (such as +12125551234) to text them.
- Template ID (`template_id`, text): The review invitation template to use. Leave empty for the default.
- Transaction ID (`transaction_id`, text): Your own reference for the visit or order, kept with the review.
- Language (`language`, text): The invitation's language code, such as en or fr.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "clicked": "example",
    "contact": "example",
    "entity": {
      "id": "example"
    },
    "firstName": "example",
    "invitationUid": "example",
    "language": "example",
    "lastName": "example",
    "opened": "example",
    "reviewId": 1,
    "reviewed": "example",
    "sent": "example",
    "status": "example",
    "templateId": "example",
    "transactionId": "example",
    "type": "example"
  }
}
```

### Update entity

Change an entity's fields. Fields left empty stay as they are.

**Inputs**

- Entity (`entity_id`, text, required): The entity: a location, professional, product or other record in the Knowledge Graph.
- Name (`name`, text): The entity's name.
- Address (`address_line1`, text): The street address.
- Address line 2 (`address_line2`, text): The second line of the address, such as a suite.
- City (`city`, text): The city.
- State or region (`region`, text): The state, province or region, such as NY.
- Postal code (`postal_code`, text): The ZIP or postal code.
- Country (`country_code`, text): The two-letter country code, such as US.
- Main phone (`main_phone`, text): The main phone number, such as +12125551234.
- Description (`description`, text): A description of the business.
- Website (`website`, text): The website address.
- Emails (`emails`, list): Email addresses.
- Folder (`folder_id`, text): The folder to keep the entity in.
- Other fields (`other_fields`, object): Any other fields, by their API name, such as {"c_storeCode": "12"} for a custom field.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "meta": {
      "entityType": "example",
      "id": "example",
      "uid": "example"
    },
    "name": "example"
  }
}
```

### Update first-party review

Change a review collected through Yext (a first-party review): its status, rating, text or author.

**Inputs**

- Review ID (`review_id`, number, required): The review's ID. At least 1.
- Status (`status`, text): Live shows it; quarantined and removed hide it. One of: `LIVE`, `QUARANTINED`, `REMOVED`.
- Rating (`rating`, number): The rating. From 1 to 5.
- Text (`content`, text): The review's text.
- Author name (`author_name`, text): The reviewer's name.

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Update review response

Change the text or visibility of a response you posted.

**Inputs**

- Review ID (`review_id`, number, required): The review's ID. At least 1.
- Comment ID (`comment_id`, text, required): The comment's ID, which Respond to review returns.
- Response (`content`, text, required): The new response.
- Visibility (`visibility`, text): Public or private. One of: `PUBLIC` (Public reply), `PRIVATE` (Private message to the reviewer).

**Outputs**

- `data` (object): The response from Yext.

**Example output**

```json
{
  "data": {}
}
```
