API DETAILS
https://app.retently.comAUTHENTICATION
Header Authentication
RecommendedThis is the default and most secure method. Send your API key in the request header.
Query Parameter Authentication
Not RecommendedThis method sends the API key as a query parameter. Use it only when header-based authentication is not possible. For example, some tools like Microsoft Power Automate may strip or sanitize custom headers before the request reaches our API.
- API keys in URLs can be logged by browsers, proxies, and servers.
- URLs may be cached or stored in browser history.
- Only use this method if your tool does not support custom headers.
GET CUSTOMERS
/api/v2/customers{?page,limit,sort}Retrieves a paginated list of customers, allowing you to filter, sort, and search by email, or sort the data by creation date.
EXAMPLE URI
https://app.retently.com/api/v2/customers?page=1&limit=20&sort=createdDateURI Parameters
string(optional)Example: [email protected]Find a customer by the email address;
- page
integer(optional)Example: 1The current page number. Default 1;
- limit
integer(optional)Example: 20The items limit. Default 20. Maximum 1,000;
- sort
string(optional)Example: 'createdDate'The sort option. Use ‘-’ for DESC. Default ‘-createdDate’;
- startDate
string(optional)Example: '2022-01-01T00:00:00Z' or '1514764800'ISO format or UNIX timestamp;
- endDate
string(optional)Example: '2018-05-17T17:36:11Z' or '1526556971'ISO format or UNIX timestamp;
Request
200GET CUSTOMER BY ID
/api/v2/customers/{customerId}Retrieves detailed information about a specific customer by their unique customer ID.
EXAMPLE URI
https://app.retently.com/api/v2/customers/5a9d595701c85b38114b5a1Request
200400401404GET COMPANIES
/api/v2/companies{?page,limit,sort}Retrieves a paginated list of companies, including details like industry, tags, NPS, CSAT or CES metrics, and customer counts per company.
EXAMPLE URI
https://app.retently.com/api/v2/companies?page=1&limit=20&sort=-createdDateURI Parameters
- page
integer(optional)Example: 1The current page number. Default 1;
- limit
integer(optional)Example: 20The items limit. Default 20. Maximum 1,000;
- sort
string(optional)Example: 'createdDate'Use “-” to pull results in descending order. Example: sort=-companyName
Request
Sort Options
200400401GET COMPANY BY ID
/api/v2/companies/{companyId|domain}Retrieves detailed information about a specific company using its unique ID or domain name.
EXAMPLE URIS
https://app.retently.com/api/v2/companies/60444db01eeeb6bf89799999https://app.retently.com/api/v2/companies/acme.comRequest
200401404GET REPORTS
/api/v2/reports/Retrieves reports for one or all survey campaigns, including trend data, delivery stats, and additional rating questions stats.
EXAMPLE URI
https://app.retently.com/api/v2/reports/5f1ec45y27b8313876299999URI Parameters
- Campaign ID
string(optional)Pass the campaign ID to get the reports for a specific campaign. If no campaign ID is passed, then the Response will return data for all campaigns in the account.
- Date range
string(optional)Data is returned in account's timezone.
Request
200GET LATEST SCORE
/api/v2/{metric}/scoreRetrieves the most recent score for a specific survey metric (NPS, CSAT, CES, or STAR) along with rating distribution and response counts.
EXAMPLE URIS
https://app.retently.com/api/v2/nps/scorehttps://app.retently.com/api/v2/star/scorehttps://app.retently.com/api/v2/csat/scorehttps://app.retently.com/api/v2/ces/scoreRequest
200401GET FEEDBACK
/api/v2/feedback{?page,limit,sort,startDate,endDate}Retrieves customer survey responses, allowing you to filter by customer (email or ID), campaign, date range, or other attributes and view detailed response data.
EXAMPLE URI
https://app.retently.com/api/v2/feedback?page=1&limit=20&sort=-createdDate&startDate=1514764800&endDate=1526556971URI Parameters
string(optional)Example: [email protected]Search responses by a customer’s email address;
- customerId
string(optional)Example: customerId=5f1faaa4b4e2e4963e41893bSearch responses by a customer’s Retently ID;
- campaignId
string(optional)Example: campaignId=663a4c44ce3cceb3d50c2793Filter responses by a specific campaign ID;
- page
string(optional)Example: 1The current page number. Default 1;
- limit
string(optional)Example: 20The items limit. Default 20. Maximum 1,000;
- sort
string(optional)Example: 'createdDate'- startDate
string(optional)Example: '1514764800'UNIX timestamp;
- endDate
string(optional)Example: '1526556971'UNIX timestamp;
Request
200GET FEEDBACK BY ID
/api/v2/feedback/{feedbackId}Retrieves detailed information about a specific survey response using its unique feedback ID.
EXAMPLE URI
https://app.retently.com/api/v2/feedback/5a9d595701c85b37224ab2d0Request
200400401404GET OUTBOX
/api/v2/outbox{?page, limit}Retrieves a paginated list of sent surveys with delivery status and recipient details.
EXAMPLE URI
https://app.retently.com/api/v2/outbox?page=1&limit=20URI Parameters
string(optional)Example: [email protected]Find a customer’s outbox records by email address;
- page
string(optional)Example: 1The current page number. Default 1;
- limit
string(optional)Example: 20The items limit. Default 20. Maximum 1,000;
- sort
string(optional)Example: 'surveyCreatedDate'The sort option. Use ‘-surveyCreatedDate’ for results in descending order; Default ‘-surveyCreatedDate’;
Request
200GET TEMPLATES
/api/v2/templatesRetrieves a list of survey templates with their names, channels, and associated metrics.
EXAMPLE URI
https://app.retently.com/api/v2/templatesRequest
200401GET CAMPAIGNS
/api/v2/campaignsRetrieves a list of survey campaigns with details such as name, metric type, channel, associated survey template, and status (active or deactivated).
EXAMPLE URI
https://app.retently.com/api/v2/campaignsRequest
Notes
200401GET TREND GROUPS
/api/v2/trendsRetrieves a list of trend groups with details such as metric type, default status, and creation date.
EXAMPLE URI
https://app.retently.com/api/v2/trendsRequest
200401403500GET TRENDS OF A GROUP
/api/v2/trends/:groupIdRetrieves a list of trends of a group, including current vs baseline scores with deltas, trend lines, and respondent distributions, allowing you to filter results for a specific date range.
EXAMPLE URI
https://app.retently.com/api/v2/trends/629505b15f6e06c05ca8a582URI Parameters
- groupId
string(required)Example: 629505b15f6e06c05ca8a582Trend group ID or 'default' to get the group marked as isDefault: true
- date
string(optional)Example: past-3-monthsDate range preset supporting the following ptions: today, yesterday, past-week, past-month, past-3-months, past-6-months, past-year, this-month-to-date, this-quarter-to-date, this-year-to-date, custom.
- custom
string(optional)Example: date=custom&startDate=2025-10-01&endDate=2025-10-20Is an attribute of the `date` parameter, accepting a `startDate` and an `endDate` in order to set a custom date range for the trend.
- └─ startDate
string(optional)Example: 2024-01-01T00:00:00Z or 1704067200Custom start date in ISO format or UNIX timestamp. When provided with endDate, overrides the date preset.
- └─ endDate
string(optional)Example: 2024-10-07T23:59:59Z or 1728335999Custom end date in ISO format or UNIX timestamp. When provided with startDate, overrides the date preset.
Request
200400401403404500CREATE OR UPDATE CUSTOMERS
/api/v2/customersCreates or updates customers in bulk (up to 1,000 per request), including customer attributes.
EXAMPLE URI
https://app.retently.com/api/v2/customersRequest Body Parameters
- subscribers:arrayrequired- An array of customers
- email:[email protected]stringrequired- Email address
- first_name:Johnstringoptional- First name
- last_name:Smithstringoptional- Last name
- company:ACMEstringoptional- Company name
- tags:arrayoptional- An array of tags. Example: [“foo”, “bar”, “baz”]
Request
Manage customer properties
200SEND TRANSACTIONAL SURVEY
/api/v2/surveyQueues for sending a transactional email or in-app survey via the specified campaign to one or more customers, with the possibility to condifure a survey delay.
EXAMPLE URI
https://app.retently.com/api/v2/surveyRequest Body Parameters
- campaign:stringrequired- The campaign ID where your customers will be surveyed
- delay:integeroptional- Send the survey at a later day from the triggered event. The delay is counted in days (e.g., “delay“: 7);
- subscribers:arrayrequired- An array of objects that may contain 1 or up to 100 customers per request. Each customer object may include the following parameters:
- email:stringrequired- A variable with the email address of the customer
- first_name:stringoptional- A variable with the first name of the customer
- last_name:stringoptional- A variable with the last name of the customer
- company:stringoptional- A variable with the company name of the customer
- tags:arrayoptional- Any data passed in the array, will be imported as tags along with the customer. Example: [“foo”, “bar”, “baz”]
Request
Manage customer properties
For transactional in-app survey
Note
200400401403404ADD FEEDBACK TOPICS
/api/v2/response/topicsAdds or updates feedback topics for a specific survey response, allowing you to classify it by theme and sentiment.
EXAMPLE URI
https://app.retently.com/api/v2/response/topicsRequest Body Parameters
- id:5a9d595701c85b37224ab2d0stringrequired- Response ID;
- topics:array of objectsoptional- An array of topic objects
- name:Usabilitystringrequired- The topic name
- sentiment:positivestringoptional- The sentiment of the topic (if not provided, defaults to 'neutral')
- op:overridestringoptional- Use the flag “append” in order to append the topics to the response, or leave it empty in order to override existing topics assigned to the response;
Request
200ADD FEEDBACK TAGS
/api/v2/response/tagsAdds or updates feedback tags for a specific survey response, with the option to append new tags or replace existing ones.
EXAMPLE URI
https://app.retently.com/api/v2/response/tagsRequest Body Parameters
- id:5a9d595701c85b37224ab2d0stringrequired- Response ID;
- tags:arrayoptional- An array of tags;
- op:overridestringoptional- Use the flag “append” in order to append the tags to the response, or leave it empty in order to override existing tags;
Request
200UNSUBSCRIBE CUSTOMERS
/api/v2/customers/unsubscribeUnsubscribes one or more customers from receiving future surveys, optionally including a custom opt-out message.
EXAMPLE URI
https://app.retently.com/api/v2/customers/unsubscribeRequest Body Parameters
- message:arrayoptional- Opt out message
- subscribers:arrayrequired- An array of subscriber emails
- email:[email protected]stringrequired- Email address
Request
200DELETE CUSTOMERS
/api/v2/customersDeletes one or more customers and all their associated data using their email addresses for identification.
EXAMPLE URI
https://app.retently.com/api/v2/customersRequest Body Parameters
- subscribers:arrayrequired- An array of subscriber emails
- email:[email protected]stringrequired- Email address
Request
200GET RESPONSES (DEPRECATED)
/api/v2/nps/customers/response{?page,limit,sort,startDate,endDate}EXAMPLE URI
https://app.retently.com/api/v2/nps/customers/response?page=1&limit=20&sort=createdDate&startDate='1514764800'&endDate='1526556971'URI Parameters
- page
string(optional)Example: 1The current page number. Default 1;
- limit
string(optional)Example: 20The items limit. Default 20. Maximum 1,000;
- sort
string(optional)Example: 'createdDate'The sort option. Use ‘-’ for DESC. Default ‘-createdDate’;
- startDate
string(optional)Example: '1514764800'UNIX timestamp;
- endDate
string(optional)Example: '1526556971'UNIX timestamp;
Request
200GET TEMPLATES (DEPRECATED)
/api/v2/nps/templatesEXAMPLE URI
https://app.retently.com/api/v2/nps/templatesRequest
Notes
200GET CAMPAIGNS (DEPRECATED)
/api/v2/nps/campaignsEXAMPLE URI
https://app.retently.com/api/v2/nps/campaignsRequest
Notes
200404SEND SURVEY (REMOVED)
/api/v2/nps/customers/survey/api/v2/nps/customers/survey endpoint has been removed, and all requests to this endpoint will now return an error. If you are currently using this endpoint or planning to use our API to trigger surveys, please switch to the /api/v2/survey endpoint here.EXAMPLE URI
https://app.retently.com/api/v2/nps/customers/surveyRequest Body Parameters
- campaign:stringrequired- The campaign identifier from ‘Get campaigns’ request
- subscribers:arrayrequired- An array of subscriber emails
- email:[email protected]stringrequired- Email address
- first_name:johnstringoptional- First name
- last_name:smithstringoptional- Last name
- company:ACMEstringoptional- Company name
- tags:arrayoptional- An array of tags. Example: [“foo”, “bar”, “baz”]
Request
200403404UPDATE FEEDBACK TAGS (DEPRECATED)
/api/v2/nps/customers/response/tagsEXAMPLE URI
https://app.retently.com/api/v2/nps/customers/response/tagsRequest Body Parameters
- id:5a9d595701c85b37224ab2d0stringrequired- Response ID;
- tags:arrayoptional- An array of tags. Example: [“foo”, “bar”, “baz”];
- op:overridestringoptional- Use the flag “append” in order to append the tags to the response, or leave empty in order to override existing tags;
Request
200