Get embed code for a distributor
GET
/distributors/{id}/embed-code
const url = 'https://app.surveyrock.com/api/v1/distributors/example/embed-code?mode=inline&width=100%25&height=600px';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.surveyrock.com/api/v1/distributors/example/embed-code?mode=inline&width=100%25&height=600px' \ --header 'Authorization: Bearer <token>'GET /api/v1/distributors/{id}/embed-code
Requirements: 10.1–10.4
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”mode
string
width
string
height
string
Responses
Section titled “Responses”Embed code HTML snippet
Distributor not found