List of Application Webhook APIs.
The ApplicationWebhookRegistry service
| Method |
ApplicationWebhookRegistry.Get
|
|---|---|
| Request type |
GetApplicationWebhookRequest
|
| Response type |
ApplicationWebhook
|
| HTTP bindings |
|
| Method |
ApplicationWebhookRegistry.GetFormats
|
|---|---|
| Request type |
google.protobuf.Empty
|
| Response type |
ApplicationWebhookFormats
|
| HTTP bindings |
|
| Method |
ApplicationWebhookRegistry.GetTemplate
|
|---|---|
| Request type |
GetApplicationWebhookTemplateRequest
|
| Response type |
ApplicationWebhookTemplate
|
| HTTP bindings |
|
| Method |
ApplicationWebhookRegistry.Set
|
|---|---|
| Request type |
SetApplicationWebhookRequest
|
| Response type |
ApplicationWebhook
|
| HTTP bindings |
|
| Method |
ApplicationWebhookRegistry.List
|
|---|---|
| Request type |
ListApplicationWebhooksRequest
|
| Response type |
ApplicationWebhooks
|
| HTTP bindings |
|
| Method |
ApplicationWebhookRegistry.ListTemplates
|
|---|---|
| Request type |
ListApplicationWebhookTemplatesRequest
|
| Response type |
ApplicationWebhookTemplates
|
| HTTP bindings |
|
| Method |
ApplicationWebhookRegistry.Delete
|
|---|---|
| Request type |
ApplicationWebhookIdentifiers
|
| Response type |
google.protobuf.Empty
|
| HTTP bindings |
|
Messages
Message ApplicationIdentifiers
Show object example
{
"application_id": "",
}
Fields:
| Field |
application_id
|
|---|---|
| Type |
string
|
| Description |
|
Message ApplicationWebhook
Show object example
{
"ids": {},
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"base_url": "",
"headers": {},
"format": "",
"template_ids": {},
"template_fields": {},
"downlink_api_key": "",
"uplink_message": {},
"uplink_normalized": {},
"join_accept": {},
"downlink_ack": {},
"downlink_nack": {},
"downlink_sent": {},
"downlink_failed": {},
"downlink_queued": {},
"downlink_queue_invalidated": {},
"location_solved": {},
"service_data": {},
"health_status": {},
"field_mask": {},
"queue": {},
"paused": false,
"custom_ca": "",
}
Fields:
| Field |
ids
|
|---|---|
| Type |
ApplicationWebhookIdentifiers
|
| Description |
|
| Field |
created_at
|
|---|---|
| Type |
google.protobuf.
Timestamp
|
| Field |
updated_at
|
|---|---|
| Type |
google.protobuf.
Timestamp
|
| Field |
base_url
|
|---|---|
| Type |
string
|
| Description |
Base URL to which the message’s path is appended.
|
| Field |
headers
|
|---|---|
| Type |
map of
string
to
string
|
| Description |
HTTP headers to use.
|
| Field |
format
|
|---|---|
| Type |
string
|
| Description |
The format to use for the body. Supported values depend on the Application Server configuration.
|
| Field |
template_ids
|
|---|---|
| Type |
ApplicationWebhookTemplateIdentifiers
|
| Description |
The ID of the template that was used to create the Webhook. |
| Field |
template_fields
|
|---|---|
| Type |
map of
string
to
string
|
| Description |
The value of the fields used by the template. Maps field.id to the value. |
| Field |
downlink_api_key
|
|---|---|
| Type |
string
|
| Description |
The API key to be used for downlink queue operations. The field is provided for convenience reasons, and can contain API keys with additional rights (albeit this is discouraged).
|
| Field |
uplink_message
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
uplink_normalized
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
join_accept
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
downlink_ack
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
downlink_nack
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
downlink_sent
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
downlink_failed
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
downlink_queued
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
downlink_queue_invalidated
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
location_solved
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
service_data
|
|---|---|
| Type |
ApplicationWebhook.Message
|
| Field |
health_status
|
|---|---|
| Type |
ApplicationWebhookHealth
|
| Field |
field_mask
|
|---|---|
| Type |
google.protobuf.
FieldMask
|
| Field |
queue
|
|---|---|
| Type |
ApplicationWebhookQueue
|
| Field |
paused
|
|---|---|
| Type |
bool
|
| Description |
Set to temporarily pause forwarding uplink data to this end point and receiving downlinks from this end point. |
| Field |
custom_ca
|
|---|---|
| Type |
bytes
|
| Description |
Custom CA certificate for the server where the webhooks are sent to. PEM formatted.
|
Message ApplicationWebhook.Message
Show object example
{
"path": "",
}
Fields:
| Field |
path
|
|---|---|
| Type |
string
|
| Description |
Path to append to the base URL.
|
Message ApplicationWebhookFormats
Show object example
{
"formats": {},
}
Fields:
| Field |
formats
|
|---|---|
| Type |
map of
string
to
string
|
| Description |
Format and description. |
Message ApplicationWebhookHealth
Restrictions:
- Only one of
healthy,unhealthycan be set.
Show object example
{
"healthy": {},
"unhealthy": {},
}
Fields:
| Field |
healthy
|
|---|---|
| Type |
ApplicationWebhookHealth.WebhookHealthStatusHealthy
|
| Field |
unhealthy
|
|---|---|
| Type |
ApplicationWebhookHealth.WebhookHealthStatusUnhealthy
|
Message ApplicationWebhookHealth.WebhookHealthStatusUnhealthy
Show object example
{
"failed_attempts": 0,
"last_failed_attempt_at": "0001-01-01T00:00:00Z",
"last_failed_attempt_details": {},
}
Fields:
| Field |
failed_attempts
|
|---|---|
| Type |
uint64
|
| Field |
last_failed_attempt_at
|
|---|---|
| Type |
google.protobuf.
Timestamp
|
| Description |
|
| Field |
last_failed_attempt_details
|
|---|---|
| Type |
ErrorDetails
|
Message ApplicationWebhookHealth.WebhookHealthStatusHealthy
Show object example
{
}
Fields:
Message ApplicationWebhookIdentifiers
Show object example
{
"application_ids": {},
"webhook_id": "",
}
Fields:
| Field |
application_ids
|
|---|---|
| Type |
ApplicationIdentifiers
|
| Description |
|
| Field |
webhook_id
|
|---|---|
| Type |
string
|
| Description |
|
Message ApplicationWebhookQueue
Show object example
{
"enabled": null,
}
Fields:
| Field |
enabled
|
|---|---|
| Type |
google.protobuf.
BoolValue
|
Message ApplicationWebhooks
Show object example
{
"webhooks": [],
}
Fields:
| Field |
webhooks
|
|---|---|
| Type |
repeated
ApplicationWebhook
|
| Description |
Message ApplicationWebhookTemplateIdentifiers
Show object example
{
"template_id": "",
}
Fields:
| Field |
template_id
|
|---|---|
| Type |
string
|
| Description |
|
Message ErrorDetails
Error details that are communicated over gRPC (and HTTP) APIs.
The messages (for translation) are stored as “error:
Show object example
{
"namespace": "",
"name": "",
"message_format": "",
"attributes": {},
"correlation_id": "",
"cause": {},
"code": 0,
"details": [],
}
Fields:
| Field |
namespace
|
|---|---|
| Type |
string
|
| Description |
Namespace of the error (typically the package name in The Things Stack). |
| Field |
name
|
|---|---|
| Type |
string
|
| Description |
Name of the error. |
| Field |
message_format
|
|---|---|
| Type |
string
|
| Description |
The default (fallback) message format that should be used for the error. This is also used if the client does not have a translation for the error. |
| Field |
attributes
|
|---|---|
| Type |
google.protobuf.
Struct
|
| Description |
Attributes that should be filled into the message format. Any extra attributes can be displayed as error details. |
| Field |
correlation_id
|
|---|---|
| Type |
string
|
| Description |
The correlation ID of the error can be used to correlate the error to stack traces the network may (or may not) store about recent errors. |
| Field |
cause
|
|---|---|
| Type |
ErrorDetails
|
| Description |
The error that caused this error. |
| Field |
code
|
|---|---|
| Type |
uint32
|
| Description |
The status code of the error. |
| Field |
details
|
|---|---|
| Type |
repeated
google.protobuf.
Any
|
| Description |
The details of the error. |
Message GetApplicationWebhookRequest
Show object example
{
"ids": {},
"field_mask": {},
}
Fields:
| Field |
ids
|
|---|---|
| Type |
ApplicationWebhookIdentifiers
|
| Description |
|
| Field |
field_mask
|
|---|---|
| Type |
google.protobuf.
FieldMask
|
Message GetApplicationWebhookTemplateRequest
Show object example
{
"ids": {},
"field_mask": {},
}
Fields:
| Field |
ids
|
|---|---|
| Type |
ApplicationWebhookTemplateIdentifiers
|
| Description |
|
| Field |
field_mask
|
|---|---|
| Type |
google.protobuf.
FieldMask
|
Message ListApplicationWebhooksRequest
Show object example
{
"application_ids": {},
"field_mask": {},
"limit": 0,
"page": 0,
}
Fields:
| Field |
application_ids
|
|---|---|
| Type |
ApplicationIdentifiers
|
| Description |
|
| Field |
field_mask
|
|---|---|
| Type |
google.protobuf.
FieldMask
|
| Field |
limit
|
|---|---|
| Type |
uint32
|
| Description |
|
| Field |
page
|
|---|---|
| Type |
uint32
|
Message ListApplicationWebhookTemplatesRequest
Show object example
{
"field_mask": {},
}
Fields:
| Field |
field_mask
|
|---|---|
| Type |
google.protobuf.
FieldMask
|
Message SetApplicationWebhookRequest
Show object example
{
"webhook": {},
"field_mask": {},
}
Fields:
| Field |
webhook
|
|---|---|
| Type |
ApplicationWebhook
|
| Description |
|
| Field |
field_mask
|
|---|---|
| Type |
google.protobuf.
FieldMask
|