Receive opportunity notifications
POST /receive-notifications
To process opportunity notifications we recommend the following.
- Call to get notifications in queue (max 50 will be returned, based on provided limit value)
- if there are no notifications to process, pause
5
seconds, then try again - if notifications are present, process and acknowledge each one using
/ack-notifications
, then loop immediately back to step 1 to receive more notifications.
This will ensure that the queue is processed as quickly as possible without overwhelming either system with a constant loop of nothing to process.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”RFC3339 timestamp indicating request expiration
Dynata provided access key
Example
ADSF23ADF354GFDDS23
Signature created using the Dynata methodology
Example
dsklj435kljhfdSAFdsalk34
Request Body
Section titled “Request Body ”object
Maximum number of opportunities to return per request
25
Sharding options for concurrent consumption
object
Total number of shards; should equal number of consumers
3
Requesting consumer identifier; cannot be greater than number of shards
3
The period of time, in seconds, during which other consumers will be unable to receive a notification
300
Responses
Section titled “ Responses ”List of opportunity notifications
object
Unique identifier of opportunity
12345
Current opportunity status
OPEN
Estimated length of interview
10
Estimated incidence rate (IR) for a quota group. The IR is the percentage of respondents in the general population expected to qualify for the quota group.
80
Offer price per interview
0.55
Total fielding completes requested
100
Identifier of opportunity group
112411272
Click balancing mode
COMPLETES
Expected duration of opportunity in days
25
Localization of the opportunity
object
Lowercase two-character ISO language value
en
Uppercase two-character ISO country value
US
Devices supported by opportunity
[ "desktop", "tablet"]
Entry links of opportunity
object
Live entry link
https://respondent.qa-rex.dynata.com/start?ctx=7321f626-0de5-4d45-b138-29864ce635b4&language=en
Creation date of opportunity
Projects that prevent respondent participation in this project
[ 293847, 561112]
Categories that prevent respondent participation in this project
[ 23, 10]
RFC3339 timestamp of notification
Identifier of opportunity project — opportunities in the same project have mutual participation exclusions
1589419
Unique project identifier.
ORD-1234-5ab678
object
Requires inviting (recontacting) specific respondents to a follow up survey.
Requires respondents to provide personally identifiable information (PII) within client survey.
Requires respondents to utilize their webcam to participate.
Requires use of facial recognition technology with respondents, such as eye tracking.
Requires partner to allow Dynata to drop a cookie on respondent.
Requires partner-uploaded respondent PII to expand third-party matched data.
Requires respondents to download a software application.
Requires additional incentives to be manually awarded to respondent by partner outside of the typical online survey flow.
Categories related to opportunity
[ 123, 456, 789]
Identifier of client requesting the study. (requires permission to view)
54321
Individual target definitions
object
Cell reference tag
163a74b4-68fd-4bae-b264-03e626a20b2f
Identifier of the Dynata attribute. If the value is -1 it means it’s an ineffable cell and it should discarded
80
Negative evaluation of value(s)
Cell kind
LIST
object
Single cell value; populated when cell kind is VALUE
object
Describes the bounds of the cell value range; populated when cell kind is RANGE
object
Lower bound of cell value range
21
Upper bound of cell value range
65
object
Indicates the comparison operation to use. (applies to LIST
, COLLECTION
, and INVITE_COLLECTIONS
cell kinds)
OR
List of cell values; populated when cell kind is LIST
[ "12324", "23435", "34546"]
object
Indicates the comparison operation to use. (applies to LIST
, COLLECTION
, and INVITE_COLLECTIONS
cell kinds)
OR
Identifier of a large collection of values available for download; populated when cell kind is COLLECTION
12324
object
Indicates the comparison operation to use. (applies to LIST
, COLLECTION
, and INVITE_COLLECTIONS
cell kinds)
OR
Identifier of a large collection of respondent ids available for download; populated when cell kind is INVITE_COLLECTIONS
or STATIC_INVITE_COLLECTIONS
[ "621079", "621080"]
Target combinations without a limit or status.
Target combinations with a limit and status.
Headers
Section titled “Headers ”50
Number of returned notifications
100
Number of notifications in the account’s queue
Bad request
object
A human readable description of the error
Invalid credentials
object
A human readable description of the error
Unauthorized
object
A human readable description of the error
Internal server error
object
A human readable description of the error