Callbacks
Callbacks
Section titled “Callbacks”The gateway supports a survey callback mechanism that requires a URL configuration.
Security
Section titled “Security”All callback requests are signed using the Dynata signing algorithm. The expiration, access key, and signature will be passed via the dynata-expiration, dynata-access-key and dynata-signature header fields, having a signing string that is a SHA-256 hash digest of the request body as a lowercase hexadecimal string. The access key and secret key used to generate the request signature will be the same key pair used to sign redirects back to the partner.
Response
Section titled “Response”The partner’s endpoint should return a 200 HTTP status code upon successful receipt of the callback request.
Survey Callback
Section titled “Survey Callback”Partners have the option to register a callback URL to receive the disposition information for a respondent prior to handling the respondent’s redirect. The registered URL will receive a POST request that contains the respondent_id, disposition, status, and parameters (any extraneous query string parameter).
Survey Properties
Section titled “Survey Properties”| Field | Type | Description |
|---|---|---|
disposition |
Integer |
Disposition outcome code |
status |
Integer |
Status describing the disposition’s reason |
parameters |
Object |
Extraneous query string parameters passed in inbound (see note below) |
respondent_id |
String |
Partner’s respondent ID |
Example: Survey Callback
Section titled “Example: Survey Callback”POST /custom/path HTTP/1.1host: partner-domain.comdynata-expiration: 2021-12-31T01:01:01.001Zdynata-access-key: abc123dynata-signature: f99d5a123561442a13e009e7041ad864294ff7fcd227ba57de6a36e3e0fa9b75
{ "disposition": 1, "status": 0, "parameters": { "ctx": "abc123", "partner-session-token": "98765-xyz", "reward_tier": "gold" }, "respondent_id": "respondent-123"}