πŸ–‡οΈZapier API documentation

SEA Survey provides a Zapier integration that allows you to automate workflows based on survey responses. When a customer submits a survey response, Zapier can automatically trigger actions in hundreds of other apps.


Quick Start

1

Open the Zapier app from the SEA Survey

Connect the Zapier app from the Integrations section in the sidebar

2

Connect your account

Connect your account using your API key from the SEA Survey dashboard.

3

Create a Zap

Create a Zap using the "New Response" trigger.

4

Map response fields

Map response fields to your desired action app (e.g., Google Sheets, Slack, Email).

5

Turn on your Zap

Turn on your Zap β€” it will fire automatically whenever a new survey response is submitted.

For detailed instructions

🌊Working with Zapierchevron-right

Example Use Cases

  • Google Sheets: Log every survey response to a spreadsheet for analysis

  • Slack: Send a notification to a channel when a negative response is received

  • Email: Send a follow-up email to customers who gave low satisfaction scores

  • CRM: Create or update customer records with survey feedback

  • Help Desk: Create a support ticket when a customer reports an issue


Authentication

All API requests require an API Key passed via the X-API-Key header.

Generating an API Key

1

Open admin dashboard

Open your AG Survey admin dashboard.

2

Go to Settings > Integrations > Zapier.

3

Generate key

Click Generate API Key.

4

Copy key

Copy the generated key β€” it will only be shown once.

Using the API Key

Include the API key in every request header:

Test Connection

Verify your API key is valid.

Endpoint:

Headers:

Header
Type
Required
Description

X-API-Key

string

Yes

Your API key

Response (200 OK):

Error Responses:

Status
Body
Description

401

{"success": false, "error": "API Key is required"}

Missing API key header

401

{"success": false, "error": "Invalid API Key"}

API key not found or deactivated

500

{"success": false, "error": "Authentication error"}

Internal server error


Triggers

New Response

Fires when a new survey response is submitted by a customer.

Type: REST Hook (real-time webhook)

When a Zap is turned on, Zapier subscribes a webhook URL. AG Survey sends a POST request to that URL every time a new response is received.

Trigger Output Fields

Field
Type
Description

id

string

Unique response ID

surveyId

string

Survey ID that the response belongs to

surveyTitle

string

Name of the survey

customerId

string

Shopify customer ID

customerEmail

string

Customer email address

customerName

string

Customer display name

answers

array

List of question-answer pairs

answers[].question

string

The question text

answers[].answer

string or array

The customer's answer. String for single-value answers, array for multi-select

answers[].answerType

string

Answer type (see Answer Types)

createdAt

string

ISO 8601 timestamp of when the response was submitted

channelType

string

How the survey was delivered (e.g., email, popup, embedded)

Example Trigger Payload

Answer Types

Type
Description
Answer Format

single

Single-choice question

string β€” selected option

multiple

Multi-select question

array β€” list of selected options

star_rating

Star rating (1-5)

string β€” numeric value (e.g., "4")

number_scale

Numeric scale (e.g., 1-10)

string β€” numeric value (e.g., "7")

satisfaction

Satisfaction level

string β€” e.g., "satisfied", "neutral", "dissatisfied"

short_answer

Free-text response

string β€” user's text input

date

Date picker

string β€” date value

consent_email

Email consent checkbox

string β€” "true" or "false"


Webhook API

These endpoints are used internally by Zapier to manage webhook subscriptions. They are documented here for reference and advanced use cases.

Subscribe to Webhook

Register a webhook URL to receive new response events.

Endpoint:

Headers:

Header
Type
Required
Description

X-API-Key

string

Yes

Your API key

Content-Type

string

Yes

application/json

Request Body:

Field
Type
Required
Default
Description

targetUrl

string

Yes

β€”

The URL to receive webhook POST requests

event

string

No

response.created

Event type to subscribe to

Response (200 OK):

Error Responses:

Status
Body
Description

400

{"success": false, "error": "Target URL is required"}

Missing targetUrl

401

{"success": false, "error": "Shop not identified"}

Invalid or missing API key

Note: If a subscription already exists for the same shop and target URL, it will be reactivated and the existing ID returned.


Unsubscribe from Webhook

Remove a webhook subscription.

Endpoint:

Headers:

Header
Type
Required
Description

X-API-Key

string

Yes

Your API key

Content-Type

string

Yes

application/json

Request Body:

Field
Type
Required
Description

targetUrl

string

Yes

The webhook URL to unsubscribe

Response (200 OK):


Test Webhook

Send a sample payload to a webhook URL for testing.

Endpoint:

Headers:

Header
Type
Required
Description

X-API-Key

string

Yes

Your API key

Content-Type

string

Yes

application/json

Request Body:

Response (200 OK):

The test will send a sample response payload to the specified URL with dummy data.


List Surveys (Polling Fallback)

Returns a list of surveys with sample response data. Used by Zapier as a polling fallback when webhooks are not available.

Endpoint:

Headers:

Header
Type
Required
Description

X-API-Key

string

Yes

Your API key

Query Parameters:

Parameter
Type
Default
Description

page

integer

1

Page number

limit

integer

10

Items per page

Response (200 OK):


Supported Events

Event
Description

response.created

Triggered when a customer submits a new survey response


Rate Limits

  • Webhook delivery timeout: 10 seconds per request

  • Failed webhook deliveries are logged but not retried automatically

  • API requests are subject to Firebase Cloud Functions quotas


Error Handling

All error responses follow a consistent format:

Common HTTP Status Codes

Status
Meaning

200

Success

400

Bad request β€” missing or invalid parameters

401

Unauthorized β€” invalid or missing API key

500

Internal server error


Base URL

All endpoint paths in this documentation are relative to this base URL.


With the Zapier integration, SEA Survey enables you to turn customer feedback into automated actions across your existing tools. Whether you’re syncing responses to spreadsheets, notifying teams in real time, or creating records in your CRM, this integration helps you act faster on customer insights.

If you need more advanced workflows or custom integrations, feel free to reach out to our support team for further assistance.

Last updated

Was this helpful?