diff --git a/interweb-client/pom.xml b/interweb-client/pom.xml
index 7cb9cd13..58f7ebf6 100644
--- a/interweb-client/pom.xml
+++ b/interweb-client/pom.xml
@@ -12,7 +12,7 @@
interweb-client
- 4.0.12
+ 4.1.0
jar
Interweb Client
diff --git a/interweb-client/src/main/java/de/l3s/interweb/client/Interweb.java b/interweb-client/src/main/java/de/l3s/interweb/client/Interweb.java
index 2fd36218..199e106c 100644
--- a/interweb-client/src/main/java/de/l3s/interweb/client/Interweb.java
+++ b/interweb-client/src/main/java/de/l3s/interweb/client/Interweb.java
@@ -1,6 +1,7 @@
package de.l3s.interweb.client;
import java.io.IOException;
+import java.io.Serial;
import java.io.Serializable;
import java.net.URI;
import java.net.http.HttpClient;
@@ -28,6 +29,7 @@
import de.l3s.interweb.core.util.StringUtils;
public class Interweb implements Serializable {
+ @Serial
private static final long serialVersionUID = 7231324400348062196L;
private final ObjectMapper mapper;
@@ -155,7 +157,7 @@ public T sendPostRequest(final String apiPath, final Object query, Class
public HttpResponse sendRequest(final HttpRequest.Builder builder) throws InterwebException {
try {
- builder.header("Api-Key", apikey);
+ builder.header("Authorization", "Bearer " + apikey);
builder.header("Accept", "application/json");
HttpClient client = HttpClient.newHttpClient();
diff --git a/interweb-client/src/main/java/de/l3s/interweb/client/InterwebException.java b/interweb-client/src/main/java/de/l3s/interweb/client/InterwebException.java
index 17899281..429e97f8 100644
--- a/interweb-client/src/main/java/de/l3s/interweb/client/InterwebException.java
+++ b/interweb-client/src/main/java/de/l3s/interweb/client/InterwebException.java
@@ -1,6 +1,9 @@
package de.l3s.interweb.client;
+import java.io.Serial;
+
public class InterwebException extends Exception {
+ @Serial
private static final long serialVersionUID = 1648272342540671760L;
public InterwebException(String message) {