Receive invite notifications
POST /receive-invites
Static Invite Collections
If only consuming
static invite collections
it’s not necessary to process invite notifications. Using thedownload-invite-collection
endpoint will return a complete list of invites. Additional updates tostatic invite collections
will result in an entirely new collection being generated and available through a new opportunity.
To process invite notifications we recommend the following.
- Call to get a set of invites from the queue, ordered by message creation ascending.
- If there no invites to process, pause
5
seconds, then try again. - If invites are available, process and acknowledge each one using
/ack-invites
, then loop immediately back to step 1 to receive more.
This ensures 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 invites to return per request
25
The period of time, in seconds, during which other consumers will be unable to receive a notification
300
Responses
Section titled “ Responses ”List of invite notifications
object
The invite message
object
Unique identifier of invite and static invite (Used for acknowledging invite notifications)
234
Identifier of invite collection or static invite collection
618400
Identifier of respondent exposed to the invite
respondent12345
Invite expiration date
Invite creation date
Invite modified date
Message created date
Headers
Section titled “Headers ”50
Number of returned invites
100
Number of invites in the account’s queue
100
Number of invites retrieved that are in the visibility timeout window, not yet acknowledged/deleted from 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