# API.COM.02 Event Subscription

The subscriber APIS facilitates defining endpoints that facilitate to subscribe/unsubscribing events from the registry. The notify endpoint is to be implemented at the SP system end to receive event data.

API definition link:

* [/subscribe](https://api.spdci.org/release/html/crvs_api_v1.0.0.html#tag/Async/operation/post_reg_subscribe)
  * The SP system needs to subscribe to events with expected search criteria so events with expected criteria are only received on the SP system end.
* [/unsubscribe](https://api.spdci.org/release/html/crvs_api_v1.0.0.html#tag/Async/operation/post_reg_unsubscribe)
  * The SP system can unsubscribe to events using this endpoint.

Please refer to GitHub for YAML object definitions:

* [YAML definitions](https://api.spdci.org/release/yaml/crvs_api_v1.0.0.yaml)

Note: Above YAML is consolidated, for any changes kindly raise pull request on [github](https://github.com/spdci/standards).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://standards.spdci.org/standards/dci-standards/employment-support-systems/employment-support-systems-and-sp-system-interface/1.-crvs/api/methods/api.com.02-event-subscription.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
