Skip to content

External Endpoints: Token as Query Parameter #1363

@mazzz1y

Description

@mazzz1y

Describe the feature request

Currently, Gatus expects a bearer token, but some apps don't allow setting it. I propose to add the possibility to pass the token using a query parameter.

Example:

# Both calls are equivalent

curl -X POST -H "Authorization: Bearer secret" https://gatus.example.com/api/v1/endpoints/endpoint_name/external?success=true

curl -X POST https://gatus.example.com/api/v1/endpoints/endpoint_name/external?success=true&secret=secret

If the maintainers are ok with this change, I can submit a PR.

Why do you personally want this feature to be implemented?

I use the FolderSync Android application. When my photos sync to network storage, it calls a webhook to check if the sync was successful.

I'm already using the HealthChecks app for this, but I want to switch to the more lightweight Gatus

How long have you been using this project?

One month

Additional information

This is not needed for me, but a similar issue can be that some apps don't support changing the request method. If Gatus also allows GET requests, it would make it much more flexible to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions