1. Home
  2. Docs
  3. Server API
  4. Retrieving results information

Retrieving results information

Retrieving results information

To retrieve a list of all results, send an HTTP GET request to this endpoint:

https://app.prompty.io/api/[SITE_ID]/results?api_token=[API_TOKEN]

CURL example

curl "https://app.prompty.io/api/[SITE_ID]/results?api_token=[API_TOKEN]"

Example response

{"status":"success","code":"OK","message":"Results information retrieved.","data":{"items":{"1":{"id":1,"type":"manual","recipient_count":3,"created":"2020-02-26 09:59:26"},"2":{"id":2,"type":"api","recipient_count":4,"created":"2020-02-26 11:01:26"}}}}


For data about a specific send, use this endpoint instead:

https://app.prompty.io/api/[SITE_ID]/results?id=[SEND_ID]&api_token=[API_TOKEN]

Replace [SEND_ID] with the actual Send ID.


CURL example

curl "https://app.prompty.io/api/[SITE_ID]/results?id=2&api_token=[API_TOKEN]"

Example response

{"status":"success","code":"OK","message":"Results information retrieved.","data":{"results":{"2":{"id":"2","recipient_count":4,"failed":0,"failed_pct":"0.00","sent":4,"sent_pct":"100.00","received":2,"received_pct":"50.00","clicked":1,"clicked_pct":"25.00"}}}}

Was this article helpful to you? Yes No

How can we help?