Skip to main content
GET
/
api
/
v1
/
management
/
responses
/
{responseId}
Get Response by ID
curl --request GET \
  --url https://{baseurl}/api/v1/management/responses/{responseId} \
  --header 'x-api-key: <x-api-key>'
import requests

url = "https://{baseurl}/api/v1/management/responses/{responseId}"

headers = {"x-api-key": "<x-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};

fetch('https://{baseurl}/api/v1/management/responses/{responseId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://{baseurl}/api/v1/management/responses/{responseId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-api-key: <x-api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{baseurl}/api/v1/management/responses/{responseId}"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<x-api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://{baseurl}/api/v1/management/responses/{responseId}")
  .header("x-api-key", "<x-api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://{baseurl}/api/v1/management/responses/{responseId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "createdAt": "2024-04-23T08:03:32.901Z",
    "data": {
      "1": "clicked",
      "hs8yd14l9h8u353tjmv6rzaw": "clicked",
      "hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
      "tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?",
      "tcgls012312312063n8ri7dtrbnepcmz": "Who? Who? Who?"
    },
    "finished": true,
    "id": "clvc3n6hy000u494jn2ypw30r",
    "language": null,
    "meta": {
      "action": "test action",
      "source": "Postman API",
      "url": "https://postman.com",
      "userAgent": {}
    },
    "person": {
      "attributes": {
        "Created From": "API",
        "created_from": "API"
      },
      "createdAt": "2024-04-23T07:39:22.696Z",
      "id": "clvc2s3ig000k494jltkqkm2u",
      "updatedAt": "2024-04-23T07:39:22.696Z",
      "userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING",
      "workspaceId": "clurwouax000azffxt7n5unn3"
    },
    "personAttributes": {
      "Created From": "API",
      "created_from": "API"
    },
    "singleUseId": null,
    "surveyId": "clusgqpml0000135cxet3y8vh",
    "tags": [],
    "ttc": {},
    "updatedAt": "2024-04-23T08:14:12.343Z"
  }
}
{
  "code": "unauthorized",
  "details": {},
  "message": "You are not authorized to access this resource"
}

Headers

x-api-key
string
required

Path Parameters

responseId
string
required

Response

OK

The response is of type object.