The subscription resource is used to define a push-based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined "channel" so that another system can take an appropriate action.

Subscription
status
requested | active | error | off
contact
Contact details for source (e.g. troubleshooting)
end
When to automatically delete the subscription
reason
Description of why this subscription was created
criteria
Rule for server push
error
Latest error note
channel
The channel on which to report matches to the criteria
type
rest-hook | websocket | email | sms | message
endpoint
Where the channel points to
payload
MIME type to send, or omit for no payload
header
Usage depends on the channel type