Create invitation(s)
documentedTrigger invitation emails for service or product reviews.
POST /v1/private/business-units/{businessUnitId}/email-invitationsInvitationsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://invitations-api.trustpilot.com/v1/private/business-units/{{$businessUnitId}}/email-invitations" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{"replyTo": "{{$replyTo}}", "locale": "{{$locale}}", "senderName": "{{$senderName}}", "senderEmail": "{{$senderEmail}}", "locationId": "{{$locationId}}", "referenceNumber": "{{$referenceNumber}}", "consumerName": "{{$consumerName}}", "consumerEmail": "{{$consumerEmail}}", "type": "{{$type}}", "serviceReviewInvitation": {"templateId": "{{$serviceTemplateId}}", "preferredSendTime": "{{$servicePreferredSendTime}}", "redirectUri": "{{$serviceRedirectUri}}", "tags": {{$serviceTags}} } }'