---
schema_version: "1"
id: 88d8f6b4bb2598ead9d6a52ba744d4d779792355b27adf069f282f4acc32e62e
title: Send Survey Invitation Actions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-feedback-management-dev-guide/guides/api-action/objects/actions-obj-send-survey-invitation.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-feedback-management-dev-guide/guide/actions-obj-send-survey-invitation.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f6a486c5710a794cfef97fe9f2230fe94aace7c4695cc88b3b025a9652b1ae41
products:
  - Salesforce Feedback Management Developer Guide
  - Service Cloud Developer Content
---

# Send Survey Invitation Actions

Send email survey invitations to leads, contacts, and users in your org based on an action. For example, send a survey invitation when a customer support case closes.

This action is available in API version 47.0 and later.

## Special Access Rules

To access the Send Survey Invitation action, you must have the Feedback Management Survey Response Pack and the Salesforce org enabled with Surveys.

## Supported REST HTTP Methods

**URI:** `/services/data/vXX.X/actions/standard/sendSurveyInvitation`

Where `XX.X` is the latest API version.

**Formats:** JSON, XML

**HTTP Methods:** GET, HEAD, POST

**Authentication:** `Authorization: Bearer TOKEN`

Where `TOKEN` is a variable.

## Inputs

|Input|Type|Description|
|-----|----|-----------|
|`anonymousResponse`|boolean|Indicates whether the participant's name is recorded in the response record (`true`) or not (`false`).|
|`autoExpiryDays`|integer|Number of days remaining for the survey invitation to expire.|
|`emailTemplateName`|string|Developer name of the template that contains either the question or the survey link.|
|`isUnauthenticatedResponse`|boolean|Indicates whether the participant is required to authenticate before starting the survey (`true`) or not (`false`).|
|`personalInvitation`|boolean|Indicates whether the invitation is specific to the recipient (`true`) or not (`false`).|
|`recipient`|reference|Required. Salesforce ID of the record that the survey invitation is sent to. The record can be a user (internal invitation) or a contact or a lead (external invitation via community).|
|`surveyName`|string|Required. Developer name of the survey that the invitation is sent for.|
|`surveyQuestionName`|string|Developer name of the question that's sent using the invitation.|
|`surveySubjectEntity`|reference|ID of the record that associates the invitation record with another record.|

## Outputs

None.

## Example

**GET**

This example shows how to get information about the Send Survey Invitation action type.

```nolang
curl --include --request GET \
--header "Authorization: Authorization: Bearer 00DR...xyz" \
--header "Content-Type: application/json" \
"https://instance.salesforce.com/services/data/v47.0/actions/standard/sendSurveyInvitation"
```

**POST**

Here's a request for the send survey invitation action.

```nolang
{
   "inputs":[{
      "surveyName" : "FlowActionSend",
      "recipient"  : "003RO0000037IRvYAM",
      "autoExpiryDays" : 6
   }]
}
```

Here's a response for the send survey invitation action.

```nolang
[
   {
      "actionName" : "sendSurveyInvitation",
      "errors" : null,
      "isSuccess" : true,
      "outputValues" : null
   }
]
```

