Gotify REST-API.

v2.0.2
Base URLs
http://localhost
https://localhost

This is the documentation of the Gotify REST-API.

Authentication

In Gotify there are two token types: clientToken: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) appToken: an application is something that sends messages (f.ex. this token should be used for a shell script)

The token can be transmitted in a header named X-Gotify-Key, in a query parameter named token or through a header named Authorization with the value prefixed with Bearer (Ex. Bearer randomtoken). There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken.

---

Found a bug or have some questions? Create an issue on GitHub

Authentication

appTokenAuthorizationHeaderapiKey

Enter an application token with the Bearer prefix, e.g. Bearer Axxxxxxxxxx.

API Key: Authorization in header

appTokenHeaderapiKey

API Key: X-Gotify-Key in header

appTokenQueryapiKey

API Key: token in query

basicAuthhttp

Scheme: basic

clientTokenAuthorizationHeaderapiKey

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

API Key: Authorization in header

clientTokenHeaderapiKey

API Key: X-Gotify-Key in header

clientTokenQueryapiKey

API Key: token in query

application

Return all applications.

GET
http://localhost/application

Response

Ok

Response fields application/json
Show child attributes

The Application holds information about an app which can send notifications.

descriptionstringrequired

The description of the application.

Example
Backup server for the interwebs
idinteger<int64>requiredread only

The application id.

Example
5
imagestringrequiredread only

The image of the application.

Example
image/image.jpeg
internalbooleanrequiredread only

Whether the application is an internal application. Internal applications should not be deleted.

Example
false
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server
tokenstringrequiredread only

The application token. Can be used as appToken. See Authentication.

Example
AWH0wZ5r0Mbac.r
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Create an application.

POST
http://localhost/application

Body

application/json

the application to add

Params allowed to create or update Applications

descriptionstring

The description of the application.

Example
Backup server for the interwebs
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server

Response

Ok

Response fields application/json

The Application holds information about an app which can send notifications.

descriptionstringrequired

The description of the application.

Example
Backup server for the interwebs
idinteger<int64>requiredread only

The application id.

Example
5
imagestringrequiredread only

The image of the application.

Example
image/image.jpeg
internalbooleanrequiredread only

Whether the application is an internal application. Internal applications should not be deleted.

Example
false
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server
tokenstringrequiredread only

The application token. Can be used as appToken. See Authentication.

Example
AWH0wZ5r0Mbac.r
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Update an application.

PUT
http://localhost/application/{id}

Body

application/json

the application to update

Params allowed to create or update Applications

descriptionstring

The description of the application.

Example
Backup server for the interwebs
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server

Parameters

idinteger<int64>requiredpath

the application id

Response

Ok

Response fields application/json

The Application holds information about an app which can send notifications.

descriptionstringrequired

The description of the application.

Example
Backup server for the interwebs
idinteger<int64>requiredread only

The application id.

Example
5
imagestringrequiredread only

The image of the application.

Example
image/image.jpeg
internalbooleanrequiredread only

Whether the application is an internal application. Internal applications should not be deleted.

Example
false
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server
tokenstringrequiredread only

The application token. Can be used as appToken. See Authentication.

Example
AWH0wZ5r0Mbac.r
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Delete an application.

DELETE
http://localhost/application/{id}

Parameters

idinteger<int64>requiredpath

the application id

Response

200OK

Ok

400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Upload an image for an application.

POST
http://localhost/application/{id}/image

Body

multipart/form-data
filestring<binary>required

the application image

Parameters

idinteger<int64>requiredpath

the application id

Response

Ok

Response fields application/json

The Application holds information about an app which can send notifications.

descriptionstringrequired

The description of the application.

Example
Backup server for the interwebs
idinteger<int64>requiredread only

The application id.

Example
5
imagestringrequiredread only

The image of the application.

Example
image/image.jpeg
internalbooleanrequiredread only

Whether the application is an internal application. Internal applications should not be deleted.

Example
false
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server
tokenstringrequiredread only

The application token. Can be used as appToken. See Authentication.

Example
AWH0wZ5r0Mbac.r
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Server Error

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

message

Return all messages from a specific application.

GET
http://localhost/application/{id}/message

Parameters

idinteger<int64>requiredpath

the application id

limitinteger[1, 200]100query

the maximal amount of messages to return

sinceinteger<int64>>= 0query

return all messages with an ID less than this value

Response

Ok

Response fields application/json

Wrapper for the paging and the messages

messagesArray<Message>requiredread only

The messages.

Show child attributes

The MessageExternal holds information about a message which was sent by an Application.

appidinteger<int64>requiredread only

The application id that send this message.

Example
5
datestring<date-time>requiredread only

The date the message was created.

Example
2018-02-27T19:36:10.5045044+01:00
extrasobject

The extra data sent along the message.

The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.

The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>

These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.

Show child attributes
[key: string]object
Example
{
  "home::appliances::lighting::on": {
    "brightness": 15
  },
  "home::appliances::thermostat::change_temperature": {
    "temperature": 23
  }
}
idinteger<int64>requiredread only

The message id.

Example
25
messagestringrequired

The message. Markdown (excluding html) is allowed.

Example
**Backup** was successfully finished.
priorityinteger<int64>

The priority of the message.

Example
2
titlestring

The title of the message.

Example
Backup
pagingPagingrequired

The Paging holds information about the limit and making requests to the next page.

Show child attributes
limitinteger<int64>[1, 200]requiredread only

The limit of the messages for the current request.

Example
123
nextstringread only

The request url for the next page. Empty/Null when no next page is available.

Example
http://example.com/message?limit=50&since=123456
sinceinteger<int64>>= 0requiredread only

The ID of the last message returned in the current request. Use this as alternative to the next link.

Example
5
sizeinteger<int64>requiredread only

The amount of messages that got returned in the current request.

Example
5
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Delete all messages from a specific application.

DELETE
http://localhost/application/{id}/message

Parameters

idinteger<int64>requiredpath

the application id

Response

200OK

Ok

400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Return all messages.

GET
http://localhost/message

Parameters

limitinteger[1, 200]100query

the maximal amount of messages to return

sinceinteger<int64>>= 0query

return all messages with an ID less than this value

Response

Ok

Response fields application/json

Wrapper for the paging and the messages

messagesArray<Message>requiredread only

The messages.

Show child attributes

The MessageExternal holds information about a message which was sent by an Application.

appidinteger<int64>requiredread only

The application id that send this message.

Example
5
datestring<date-time>requiredread only

The date the message was created.

Example
2018-02-27T19:36:10.5045044+01:00
extrasobject

The extra data sent along the message.

The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.

The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>

These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.

Show child attributes
[key: string]object
Example
{
  "home::appliances::lighting::on": {
    "brightness": 15
  },
  "home::appliances::thermostat::change_temperature": {
    "temperature": 23
  }
}
idinteger<int64>requiredread only

The message id.

Example
25
messagestringrequired

The message. Markdown (excluding html) is allowed.

Example
**Backup** was successfully finished.
priorityinteger<int64>

The priority of the message.

Example
2
titlestring

The title of the message.

Example
Backup
pagingPagingrequired

The Paging holds information about the limit and making requests to the next page.

Show child attributes
limitinteger<int64>[1, 200]requiredread only

The limit of the messages for the current request.

Example
123
nextstringread only

The request url for the next page. Empty/Null when no next page is available.

Example
http://example.com/message?limit=50&since=123456
sinceinteger<int64>>= 0requiredread only

The ID of the last message returned in the current request. Use this as alternative to the next link.

Example
5
sizeinteger<int64>requiredread only

The amount of messages that got returned in the current request.

Example
5
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Create a message.

POST
http://localhost/message

NOTE: This API ONLY accepts an application token as authentication.

Body

application/json

the message to add

The MessageExternal holds information about a message which was sent by an Application.

extrasobject

The extra data sent along the message.

The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.

The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>

These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.

Show child attributes
[key: string]object
Example
{
  "home::appliances::lighting::on": {
    "brightness": 15
  },
  "home::appliances::thermostat::change_temperature": {
    "temperature": 23
  }
}
messagestringrequired

The message. Markdown (excluding html) is allowed.

Example
**Backup** was successfully finished.
priorityinteger<int64>

The priority of the message.

Example
2
titlestring

The title of the message.

Example
Backup

Response

200OKMessage

Ok

Response fields application/json

The MessageExternal holds information about a message which was sent by an Application.

appidinteger<int64>requiredread only

The application id that send this message.

Example
5
datestring<date-time>requiredread only

The date the message was created.

Example
2018-02-27T19:36:10.5045044+01:00
extrasobject

The extra data sent along the message.

The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.

The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>

These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.

Show child attributes
[key: string]object
Example
{
  "home::appliances::lighting::on": {
    "brightness": 15
  },
  "home::appliances::thermostat::change_temperature": {
    "temperature": 23
  }
}
idinteger<int64>requiredread only

The message id.

Example
25
messagestringrequired

The message. Markdown (excluding html) is allowed.

Example
**Backup** was successfully finished.
priorityinteger<int64>

The priority of the message.

Example
2
titlestring

The title of the message.

Example
Backup
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

appTokenAuthorizationHeaderapiKey in header

Enter an application token with the Bearer prefix, e.g. Bearer Axxxxxxxxxx.

appTokenHeaderapiKey in header
appTokenQueryapiKey in query

Delete all messages.

DELETE
http://localhost/message

Response

200OK

Ok

401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Deletes a message with an id.

DELETE
http://localhost/message/{id}

Parameters

idinteger<int64>requiredpath

the message id

Response

200OK

Ok

400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Websocket, return newly created messages.

GET
http://localhost/stream

Response

200OKMessage

Ok

Response fields application/json

The MessageExternal holds information about a message which was sent by an Application.

appidinteger<int64>requiredread only

The application id that send this message.

Example
5
datestring<date-time>requiredread only

The date the message was created.

Example
2018-02-27T19:36:10.5045044+01:00
extrasobject

The extra data sent along the message.

The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.

The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>

These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.

Show child attributes
[key: string]object
Example
{
  "home::appliances::lighting::on": {
    "brightness": 15
  },
  "home::appliances::thermostat::change_temperature": {
    "temperature": 23
  }
}
idinteger<int64>requiredread only

The message id.

Example
25
messagestringrequired

The message. Markdown (excluding html) is allowed.

Example
**Backup** was successfully finished.
priorityinteger<int64>

The priority of the message.

Example
2
titlestring

The title of the message.

Example
Backup
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Server Error

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

client

Return all clients.

GET
http://localhost/client

Response

Ok

Response fields application/json
Show child attributes

The Client holds information about a device which can receive notifications (and other stuff).

idinteger<int64>requiredread only

The client id.

Example
5
namestringrequired

The client name. This is how the client should be displayed to the user.

Example
Android Phone
tokenstringrequiredread only

The client token. Can be used as clientToken. See Authentication.

Example
CWH0wZ5r0Mbac.r
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Create a client.

POST
http://localhost/client

Body

application/json

the client to add

The Client holds information about a device which can receive notifications (and other stuff).

namestringrequired

The client name. This is how the client should be displayed to the user.

Example
Android Phone

Response

200OKClient

Ok

Response fields application/json

The Client holds information about a device which can receive notifications (and other stuff).

idinteger<int64>requiredread only

The client id.

Example
5
namestringrequired

The client name. This is how the client should be displayed to the user.

Example
Android Phone
tokenstringrequiredread only

The client token. Can be used as clientToken. See Authentication.

Example
CWH0wZ5r0Mbac.r
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Update a client.

PUT
http://localhost/client/{id}

Body

application/json

the client to update

The Client holds information about a device which can receive notifications (and other stuff).

namestringrequired

The client name. This is how the client should be displayed to the user.

Example
Android Phone

Parameters

idinteger<int64>requiredpath

the client id

Response

200OKClient

Ok

Response fields application/json

The Client holds information about a device which can receive notifications (and other stuff).

idinteger<int64>requiredread only

The client id.

Example
5
namestringrequired

The client name. This is how the client should be displayed to the user.

Example
Android Phone
tokenstringrequiredread only

The client token. Can be used as clientToken. See Authentication.

Example
CWH0wZ5r0Mbac.r
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Delete a client.

DELETE
http://localhost/client/{id}

Parameters

idinteger<int64>requiredpath

the client id

Response

200OK

Ok

400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

user

Return the current user.

GET
http://localhost/current/user

Response

200OKUser

Ok

Response fields application/json

The User holds information about permission and other stuff.

adminbooleanrequired

If the user is an administrator.

Example
true
idinteger<int64>requiredread only

The user id.

Example
25
namestringrequired

The user name. For login.

Example
unicorn
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Update the password of the current user.

POST
http://localhost/current/user/password

Body

application/json

the user

The Password for updating the user.

passstringrequired

The user password. For login.

Example
nrocinu

Response

200OK

Ok

400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Return all users.

GET
http://localhost/user

Response

Ok

Response fields application/json
Show child attributes

The User holds information about permission and other stuff.

adminbooleanrequired

If the user is an administrator.

Example
true
idinteger<int64>requiredread only

The user id.

Example
25
namestringrequired

The user name. For login.

Example
unicorn
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Create a user.

POST
http://localhost/user

With enabled registration: non admin users can be created without authentication. With disabled registrations: users can only be created by admin users.

Body

application/json

the user to add

Used for user creation.

adminbooleanrequired

If the user is an administrator.

Example
true
namestringrequired

The user name. For login.

Example
unicorn
passstringrequired

The user password. For login.

Example
nrocinu

Response

200OKUser

Ok

Response fields application/json

The User holds information about permission and other stuff.

adminbooleanrequired

If the user is an administrator.

Example
true
idinteger<int64>requiredread only

The user id.

Example
25
namestringrequired

The user name. For login.

Example
unicorn
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Get a user.

GET
http://localhost/user/{id}

Parameters

idinteger<int64>requiredpath

the user id

Response

200OKUser

Ok

Response fields application/json

The User holds information about permission and other stuff.

adminbooleanrequired

If the user is an administrator.

Example
true
idinteger<int64>requiredread only

The user id.

Example
25
namestringrequired

The user name. For login.

Example
unicorn
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Update a user.

POST
http://localhost/user/{id}

Body

application/json

the updated user

Used for updating a user.

adminbooleanrequired

If the user is an administrator.

Example
true
namestringrequired

The user name. For login.

Example
unicorn
passstring

The user password. For login. Empty for using old password

Example
nrocinu

Parameters

idinteger<int64>requiredpath

the user id

Response

200OKUser

Ok

Response fields application/json

The User holds information about permission and other stuff.

adminbooleanrequired

If the user is an administrator.

Example
true
idinteger<int64>requiredread only

The user id.

Example
25
namestringrequired

The user name. For login.

Example
unicorn
400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Deletes a user.

DELETE
http://localhost/user/{id}

Parameters

idinteger<int64>requiredpath

the user id

Response

200OK

Ok

400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

health

Get health information.

GET
http://localhost/health

Response

200OKHealth

Ok

Response fields application/json

Health represents how healthy the application is.

databasestringrequired

The health of the database connection.

Example
green
healthstringrequired

The health of the overall application.

Example
green
500Internal Server ErrorHealth

Ok

Response fields application/json

Health represents how healthy the application is.

databasestringrequired

The health of the database connection.

Example
green
healthstringrequired

The health of the overall application.

Example
green

plugin

Return all plugins.

GET
http://localhost/plugin

Response

Ok

Response fields application/json
Show child attributes

Holds information about a plugin instance for one user.

authorstringread only

The author of the plugin.

Example
jmattheis
capabilitiesArray<string>required

Capabilities the plugin provides

Example
[
  "webhook",
  "display"
]
enabledbooleanrequired

Whether the plugin instance is enabled.

Example
true
idinteger<int64>requiredread only

The plugin id.

Example
25
licensestringread only

The license of the plugin.

Example
MIT
modulePathstringrequiredread only

The module path of the plugin.

Example
github.com/gotify/server/plugin/example/echo
namestringrequiredread only

The plugin name.

Example
RSS poller
tokenstringrequired

The user name. For login.

Example
P1234
websitestringread only

The website of the plugin.

Example
gotify.net
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Internal Server Error

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Get YAML configuration for Configurer plugin.

GET
http://localhost/plugin/{id}/config

Parameters

idinteger<int64>requiredpath

the plugin id

Response

200OKobject

Ok

Response fields application/x-yaml

plugin configuration

object
400Bad RequestError

Bad Request

Response fields application/x-yaml

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/x-yaml

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/x-yaml

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/x-yaml

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Internal Server Error

Response fields application/x-yaml

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Update YAML configuration for Configurer plugin.

POST
http://localhost/plugin/{id}/config

Parameters

idinteger<int64>requiredpath

the plugin id

Response

200OK

Ok

400Bad RequestError

Bad Request

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Internal Server Error

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Disable a plugin.

POST
http://localhost/plugin/{id}/disable

Parameters

idinteger<int64>requiredpath

the plugin id

Response

200OK

Ok

401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Internal Server Error

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Get display info for a Displayer plugin.

GET
http://localhost/plugin/{id}/display

Parameters

idinteger<int64>requiredpath

the plugin id

Response

200OKstring

Ok

Response fields application/json
string
401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Internal Server Error

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

Enable a plugin.

POST
http://localhost/plugin/{id}/enable

Parameters

idinteger<int64>requiredpath

the plugin id

Response

200OK

Ok

401UnauthorizedError

Unauthorized

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
403ForbiddenError

Forbidden

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
404Not FoundError

Not Found

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api
500Internal Server ErrorError

Internal Server Error

Response fields application/json

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Authorization

clientTokenAuthorizationHeaderapiKey in header

Enter a client token with the Bearer prefix, e.g. Bearer Cxxxxxxxxxx.

clientTokenHeaderapiKey in header
clientTokenQueryapiKey in query
basicAuthhttp (basic)

version

Get version information.

GET
http://localhost/version

Response

Ok

Response fields application/json

VersionInfo Model

buildDatestringrequired

The date on which this binary was built.

Example
2018-02-27T19:36:10.5045044+01:00
commitstringrequired

The git commit hash on which this binary was built.

Example
ae9512b6b6feea56a110d59a3353ea3b9c293864
versionstringrequired

The current version.

Example
5.2.6

Models

Application

object

The Application holds information about an app which can send notifications.

descriptionstringrequired

The description of the application.

Example
Backup server for the interwebs
idinteger<int64>requiredread only

The application id.

Example
5
imagestringrequiredread only

The image of the application.

Example
image/image.jpeg
internalbooleanrequiredread only

Whether the application is an internal application. Internal applications should not be deleted.

Example
false
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server
tokenstringrequiredread only

The application token. Can be used as appToken. See Authentication.

Example
AWH0wZ5r0Mbac.r

ApplicationParams

object

Params allowed to create or update Applications

descriptionstring

The description of the application.

Example
Backup server for the interwebs
namestringrequired

The application name. This is how the application should be displayed to the user.

Example
Backup Server

Client

object

The Client holds information about a device which can receive notifications (and other stuff).

idinteger<int64>requiredread only

The client id.

Example
5
namestringrequired

The client name. This is how the client should be displayed to the user.

Example
Android Phone
tokenstringrequiredread only

The client token. Can be used as clientToken. See Authentication.

Example
CWH0wZ5r0Mbac.r

CreateUserExternal

object

Used for user creation.

adminbooleanrequired

If the user is an administrator.

Example
true
namestringrequired

The user name. For login.

Example
unicorn
passstringrequired

The user password. For login.

Example
nrocinu

Error

object

The Error contains error relevant information.

errorstringrequired

The general error message

Example
Unauthorized
errorCodeinteger<int64>required

The http error code.

Example
401
errorDescriptionstringrequired

The http error code.

Example
you need to provide a valid access token or user credentials to access this api

Health

object

Health represents how healthy the application is.

databasestringrequired

The health of the database connection.

Example
green
healthstringrequired

The health of the overall application.

Example
green

Message

object

The MessageExternal holds information about a message which was sent by an Application.

appidinteger<int64>requiredread only

The application id that send this message.

Example
5
datestring<date-time>requiredread only

The date the message was created.

Example
2018-02-27T19:36:10.5045044+01:00
extrasobject

The extra data sent along the message.

The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.

The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>

These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.

Show child attributes
[key: string]object
Example
{
  "home::appliances::lighting::on": {
    "brightness": 15
  },
  "home::appliances::thermostat::change_temperature": {
    "temperature": 23
  }
}
idinteger<int64>requiredread only

The message id.

Example
25
messagestringrequired

The message. Markdown (excluding html) is allowed.

Example
**Backup** was successfully finished.
priorityinteger<int64>

The priority of the message.

Example
2
titlestring

The title of the message.

Example
Backup

PagedMessages

object

Wrapper for the paging and the messages

messagesArray<Message>requiredread only

The messages.

Show child attributes

The MessageExternal holds information about a message which was sent by an Application.

appidinteger<int64>requiredread only

The application id that send this message.

Example
5
datestring<date-time>requiredread only

The date the message was created.

Example
2018-02-27T19:36:10.5045044+01:00
extrasobject

The extra data sent along the message.

The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.

The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>

These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.

Show child attributes
[key: string]object
Example
{
  "home::appliances::lighting::on": {
    "brightness": 15
  },
  "home::appliances::thermostat::change_temperature": {
    "temperature": 23
  }
}
idinteger<int64>requiredread only

The message id.

Example
25
messagestringrequired

The message. Markdown (excluding html) is allowed.

Example
**Backup** was successfully finished.
priorityinteger<int64>

The priority of the message.

Example
2
titlestring

The title of the message.

Example
Backup
pagingPagingrequired

The Paging holds information about the limit and making requests to the next page.

Show child attributes
limitinteger<int64>[1, 200]requiredread only

The limit of the messages for the current request.

Example
123
nextstringread only

The request url for the next page. Empty/Null when no next page is available.

Example
http://example.com/message?limit=50&since=123456
sinceinteger<int64>>= 0requiredread only

The ID of the last message returned in the current request. Use this as alternative to the next link.

Example
5
sizeinteger<int64>requiredread only

The amount of messages that got returned in the current request.

Example
5

Paging

object

The Paging holds information about the limit and making requests to the next page.

limitinteger<int64>[1, 200]requiredread only

The limit of the messages for the current request.

Example
123
nextstringread only

The request url for the next page. Empty/Null when no next page is available.

Example
http://example.com/message?limit=50&since=123456
sinceinteger<int64>>= 0requiredread only

The ID of the last message returned in the current request. Use this as alternative to the next link.

Example
5
sizeinteger<int64>requiredread only

The amount of messages that got returned in the current request.

Example
5

PluginConf

object

Holds information about a plugin instance for one user.

authorstringread only

The author of the plugin.

Example
jmattheis
capabilitiesArray<string>required

Capabilities the plugin provides

Example
[
  "webhook",
  "display"
]
enabledbooleanrequired

Whether the plugin instance is enabled.

Example
true
idinteger<int64>requiredread only

The plugin id.

Example
25
licensestringread only

The license of the plugin.

Example
MIT
modulePathstringrequiredread only

The module path of the plugin.

Example
github.com/gotify/server/plugin/example/echo
namestringrequiredread only

The plugin name.

Example
RSS poller
tokenstringrequired

The user name. For login.

Example
P1234
websitestringread only

The website of the plugin.

Example
gotify.net

UpdateUserExternal

object

Used for updating a user.

adminbooleanrequired

If the user is an administrator.

Example
true
namestringrequired

The user name. For login.

Example
unicorn
passstring

The user password. For login. Empty for using old password

Example
nrocinu

User

object

The User holds information about permission and other stuff.

adminbooleanrequired

If the user is an administrator.

Example
true
idinteger<int64>requiredread only

The user id.

Example
25
namestringrequired

The user name. For login.

Example
unicorn

UserPass

object

The Password for updating the user.

passstringrequired

The user password. For login.

Example
nrocinu

VersionInfo

object

VersionInfo Model

buildDatestringrequired

The date on which this binary was built.

Example
2018-02-27T19:36:10.5045044+01:00
commitstringrequired

The git commit hash on which this binary was built.

Example
ae9512b6b6feea56a110d59a3353ea3b9c293864
versionstringrequired

The current version.

Example
5.2.6