Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Set the content type to application/json

Acho Arnold1a32fa83fd5a
diff --git a/api/pkg/services/webhook_service.go b/api/pkg/services/webhook_service.go
index 5845c730..e691936f 100644
--- a/api/pkg/services/webhook_service.go
+++ b/api/pkg/services/webhook_service.go
@@ -246,6 +246,7 @@ func (service *WebhookService) createRequest(ctx context.Context, event cloudeve
}
request.Header.Add("X-Event-Type", event.Type())
+ request.Header.Set("Content-Type", "application/json")
if strings.TrimSpace(webhook.SigningKey) != "" {
token, err := service.getAuthToken(webhook)