# Gotify client URL

**URL:** https://forum.yunohost.org/t/gotify-client-url/41231
**Category:** Support apps
**Tags:** gotify, english
**Created:** [January 4, 2026, 8:34am UTC](https://forum.yunohost.org/t/gotify-client-url/41231 "2026-01-04T08:34:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![clacos](https://forum.yunohost.org/user_avatar/forum.yunohost.org/clacos/32/12377_2.png) [@clacos](https://forum.yunohost.org/u/clacos)
#### Post date: [January 4, 2026, 8:34am UTC](https://forum.yunohost.org/t/gotify-client-url/41231/1 "2026-01-04T08:34:05Z")

</div>

**What app is this about, and its version** : Gotify 2.7.3~ynh1  
**What YunoHost version are you running** : 12.1.36 (stable)  
**What type of hardware are you using** : VPS bought online

### Describe your issue

After installation, the URL to be used for clients (including `curl` test command) is not clear.

I’ve install gotify under \<mydomain.tld\>/gotify

I tried http://\<mydomain.tld\>/gotify , https://\<mydomain.tld\>/gotify, also various URL directely using port 35765 (which seems to be the internal port where nginx is redirecting the data stream…) but without any succes.

Thanks for your help !

### Share relevant logs or error messages

-

---

<div class="post-metadata">

### Author: ![djez](https://forum.yunohost.org/user_avatar/forum.yunohost.org/djez/32/736_2.png) [@djez](https://forum.yunohost.org/u/djez)
#### Post date: [January 4, 2026, 9:11am UTC](https://forum.yunohost.org/t/gotify-client-url/41231/2 "2026-01-04T09:11:43Z")

</div>

Hi @clacos  
When Gotify is installed on a subpath, the client URL must include /gotify in the API path.

1. First, create an application in the web interface:

- Log in to [https://yourdomain.tld/gotify](https://yourdomain.tld/gotify)
- Go to the “Apps” tab (top right corner)
- Create a new application
- Copy the token displayed (click the eye icon to reveal it)

1. Then, test with curl:

```bash
curl "https://yourdomain.tld/gotify/message?token=YOUR_TOKEN_HERE" \
  -F "title=Test" \
  -F "message=Hello World" \
  -F "priority=5"

```

→ [Push messages · Gotify](https://gotify.net/docs/pushmsg)

So the correct URL is: [https://yourdomain.tld/gotify/message?token=](https://yourdomain.tld/gotify/message?token=)…  
Don’t use the internal port (35765) directly — nginx handles the redirection.

---

<div class="post-metadata">

### Author: ![clacos](https://forum.yunohost.org/user_avatar/forum.yunohost.org/clacos/32/12377_2.png) [@clacos](https://forum.yunohost.org/u/clacos)
#### Post date: [January 4, 2026, 9:20am UTC](https://forum.yunohost.org/t/gotify-client-url/41231/3 "2026-01-04T09:20:12Z")

</div>

Hi,

I tried this but I’m not sure it worked, and I can’t see my message in the webUI.

```auto
$ curl -X POST "https://www.mydomain.tld/gotify/message?token=xxxxxxxxxxx" -F "title=my title" -F "message=my message"
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

```

---

<div class="post-metadata">

### Author: ![clacos](https://forum.yunohost.org/user_avatar/forum.yunohost.org/clacos/32/12377_2.png) [@clacos](https://forum.yunohost.org/u/clacos)
#### Post date: [January 4, 2026, 9:25am UTC](https://forum.yunohost.org/t/gotify-client-url/41231/4 "2026-01-04T09:25:09Z")

</div>

Oh my bad !!!

It worked with `<mydomain.tld>`, but not with `<www.mydomain.tld>`, which is of course what I set up (I have both and maybe this is not such a good idea…).

---

<div class="post-metadata">

### Author: ![djez](https://forum.yunohost.org/user_avatar/forum.yunohost.org/djez/32/736_2.png) [@djez](https://forum.yunohost.org/u/djez)
#### Post date: [January 4, 2026, 9:40am UTC](https://forum.yunohost.org/t/gotify-client-url/41231/5 "2026-01-04T09:40:46Z")

</div>

The **302 Found** response means nginx is redirecting your request, but curl doesn’t follow redirects by default.

Try adding the `-L` flag to follow redirects:

```bash
curl -L -X POST "https://www.mydomain.tld/gotify/message?token=xxxxxxxxxxx" \
  -F "title=my title" \
  -F "message=my message"

```

---

<div class="post-metadata">

### Author: ![clacos](https://forum.yunohost.org/user_avatar/forum.yunohost.org/clacos/32/12377_2.png) [@clacos](https://forum.yunohost.org/u/clacos)
#### Post date: [January 4, 2026, 9:44am UTC](https://forum.yunohost.org/t/gotify-client-url/41231/6 "2026-01-04T09:44:25Z")

</div>

You’re right, it also works with `-L` and `<www.mydomain.tld>`.

Thanks !

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [January 19, 2026, 9:44am UTC](https://forum.yunohost.org/t/gotify-client-url/41231/7 "2026-01-19T09:44:48Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
