diff --git a/templates/zephyr/api.html b/templates/zephyr/api.html index a72ab61e77..bd33ca6ea2 100644 --- a/templates/zephyr/api.html +++ b/templates/zephyr/api.html @@ -43,9 +43,8 @@ to pull out the resulting HTML :) {% endcomment %}

Stream message

-
curl https://humbughq.com/api/v1/send_message \
-    -d "api-key=YOUR_API_KEY" \
-    -d "email=YOUR_EMAIL" \
+
curl https://humbughq.com/api/v1/messages \
+    -u YOUR_EMAIL:YOUR_API_KEY \
     -d "type=stream" \
     -d "to=Denmark" \
     -d "subject=Castle" \
@@ -53,9 +52,8 @@ to pull out the resulting HTML :)
 

Private message

-
curl https://humbughq.com/api/v1/send_message \
-    -d "api-key=YOUR_API_KEY" \
-    -d "email=YOUR_EMAIL" \
+
curl https://humbughq.com/api/v1/messages \
+    -u YOUR_EMAIL:YOUR_API_KEY \
     -d "type=private" \
     -d "to=wdaher@humbughq.com" \
     -d "content=I come not, friends, to steal away your hearts."