Content
dispatch.all.readwrite
Schedule a Message for delivery. You can read more about the message delivery process in How it works.
targetId | Required | string | The ID of the Target the Message will be delivered to Example: |
deliveryTime | Required | string ISO-8601 Date & Time | The desired delivery time for the Message Example: |
payload | Required | string 0 - 61440 | The payload to be delivered in the Message Example: |
200 | application/json | A Message |
Example response body{ "messageId": "DI-M-2c9b5021-e892-43d9-84c2-365670afa319", "nextDeliveryTime": "2020-05-01T17:36:08.555Z", "originalDeliveryTime": "2020-05-01T17:36:08.555Z", "schedulingTime": "2020-05-01T17:35:08.709Z", "targetId": "DI-T-3f409cb5d8" } | ||
400 | application/json | A bad request was made. Returns an Errors object. |
dispatch.all.readdispatch.all.readwrite
messageId | string | A Message ID Example: |
200 | application/json | A Message |
Example response body{ "messageId": "DI-M-2c9b5021-e892-43d9-84c2-365670afa319", "nextDeliveryTime": "2020-05-01T17:36:08.555Z", "originalDeliveryTime": "2020-05-01T17:36:08.555Z", "schedulingTime": "2020-05-01T17:35:08.709Z", "targetId": "DI-T-3f409cb5d8" } | ||
400 | application/json | A bad request was made. Returns an Errors object. |
404 | No Content | The Message was not found. |
dispatch.all.readdispatch.all.readwrite
messageId | string | A Message ID Example: |
dispatch.all.readwrite
Cancel the delivery of a Message. You can read more about the message delivery process in How it works.
messageId | string | A Message ID Example: |
200 | application/json | The Message was cancelled sucessfully |
Example response body{ "TODO": "Correct fields", "messageId": "DI-M-2c9b5021-e892-43d9-84c2-365670afa319", "cancellationTime": "2020-05-01T17:36:08.555Z", "originalDeliveryTime": "2020-05-01T17:36:08.555Z", "schedulingTime": "2020-05-01T17:35:08.709Z", "targetId": "DI-T-3f409cb5d8" } | ||
400 | application/json | A bad request was made. Returns an Errors object. |
dispatch.all.readwrite
Reschedule a the delivery time of a Message. You can read more about the message delivery process in How it works.
messageId | string | A Message ID Example: |
deliveryTime | Required | string ISO-8601 Date & Time | The desired delivery time for the Message Example: |
200 | application/json | The Message was rescheduled sucessfully |
Example response body{ "messageId": "DI-M-2c9b5021-e892-43d9-84c2-365670afa319", "nextDeliveryTime": "2020-05-01T17:36:08.555Z", "originalDeliveryTime": "2020-05-01T17:36:08.555Z", "schedulingTime": "2020-05-01T17:35:08.709Z", "targetId": "DI-T-3f409cb5d8" } | ||
400 | application/json | A bad request was made. Returns an Errors object. |
dispatch.all.readdispatch.all.readwrite
Find all currently scheduled messages.
Ordered by the Message NextDeliveryTime
, closest in time first.
targetId | Required | string | ID of the Target to find scheduled messages for. Example: |
minTime | Optional | string ISO-8601 Date & Time | The minimum Example: |
maxTime | Optional | string ISO-8601 Date & Time | The maximum Example: |
pageToken | Optional | string | Specifies the page to read. Use a value provided by earlier responses in Example: |
limit | Optional | integer 1 - 100 (Default: 20) | Limit the return page size to the specified count. Example: |
200 | application/json | |
Example response body{ "count": 1, "pageToken": "eyJmaXJzdCI6InBhZ2UifQ==", "nextPageToken": "eyJzZWNvbmQiOiJwYWdlIn0=", "items": [ { "messageId": "DI-M-2c9b5021-e892-43d9-84c2-365670afa319", "nextDeliveryTime": "2020-05-01T17:36:08.555Z", "originalDeliveryTime": "2020-05-01T17:36:08.555Z", "schedulingTime": "2020-05-01T17:35:08.709Z", "targetId": "DI-T-3f409cb5d8" } ] } | ||
400 | application/json | A bad request was made. Returns an Errors object. |
dispatch.all.readdispatch.all.readwrite
Find all dead letter messages.
Ordered by the Message DeadLetterTime
, oldest first.
targetId | Required | string | ID of the Target to find dead letter messages for. Example: |
minTime | Optional | string ISO-8601 Date & Time | The minimum Example: |
maxTime | Optional | string ISO-8601 Date & Time | The maximum Example: |
pageToken | Optional | string | Specifies the page to read. Use a value provided by earlier responses in Example: |
limit | Optional | integer 1 - 100 (Default: 20) | Limit the return page size to the specified count. Example: |
200 | application/json | |
Example response body{ "count": 1, "pageToken": "eyJmaXJzdCI6InBhZ2UifQ==", "nextPageToken": "eyJzZWNvbmQiOiJwYWdlIn0=", "items": [ { "messageId": "DI-M-2c9b5021-e892-43d9-84c2-365670afa319", "nextDeliveryTime": "2020-05-01T17:36:08.555Z", "originalDeliveryTime": "2020-05-01T17:36:08.555Z", "schedulingTime": "2020-05-01T17:35:08.709Z", "targetId": "DI-T-3f409cb5d8" } ] } | ||
400 | application/json | A bad request was made. Returns an Errors object. |
A paged list of items. Use the nextPageToken
in follow-up requests to step through all available items. nextPageToken
will be null
on the last page.
items | array | A list of items | |
count | integer | The number of items in the list | |
pageToken | string | The token for the current page | |
nextPageToken | string | NULL | The token for the next page |
A message
messageId | string | The Message ID | |
targetId | string | The delivery Target ID | |
schedulingTime | string ISO-8601 Date & Time | The time the Message was scheduled | |
originalDeliveryTime | string ISO-8601 Date & Time | The time the Message was originally scheduled for delivery for | |
state | string SCHEDULED DELIVERED DEAD_LETTER CANCELLED | ||
deliveryFailureCount | integer | The number of times Dispatch has been unable to deliver the Message | |
nextDeliveryTime | string | NULL ISO-8601 Date & Time | The time of the next delivery attempt | |
lastDeliveryTime | string | NULL ISO-8601 Date & Time | The time of the latest delivery attempt | |
deadLetterTime | string | NULL ISO-8601 Date & Time | The time the Message was marked as a Dead Letter | |
cancellationTime | string | NULL ISO-8601 Date & Time | The time that Message was cancelled | |
expirationTime | string | NULL ISO-8601 Date & Time | The time the Message will be removed from the system |
An error object
code | string | The Message ID | |
message | string | The delivery Target ID |
If you have any questions you can't find the answer for, please don't hesitate to contact us.