| POST | /subscription/{EventType} | Subscribe to an event with a url we should post to | |
|---|---|---|---|
| POST | /subscription | Subscribe to an event with a url we should post to |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| EventType | path | WebhookSubscriptionEventType | Yes | The event type being subscribed toAllowable Values
|
| SubscriptionUrl | body | string | Yes | The URL we should post the event data to |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ApiKey | form | string | Yes | The API Key required for authentication |
| Name | Value | |
|---|---|---|
| MessageReceived | 1 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Description | form | string | No | |
| Heading | form | string | No | |
| WasSuccessful | form | bool | No | |
| ModelState | form | Object | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /subscription/{EventType} HTTP/1.1
Host: galaxymobile.api.client.prod.86degrees.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"EventType":1,"SubscriptionUrl":"String","ApiKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}