Skip to content

HiberGlobal/rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hiber Rest API

This is the specification for the Hiber Rest API.

The Rest API is intended for read-only funcationality only. Anything more complicated is handled by the Hiber GRPC API.

Usage

Use any http client that supports setting (auth) headers, like, curl, Postman, etc.

Auth

To authenticate when using the API, you will need:

  • A token for the organizations you wish to use the Rest API for. (Impersonation is not currently supported)
    • Go to Developer Tools / Tokens in Mission Control
    • Make a new token with the permissions you need, typically modems and messages.
    • Copy the token string.
  • When doing a request on the API, add the Authentication header with the value Bearer <your-token>, where <your-token> is the token copied above.

Endpoints

The currently available endpoints are:

Simple example

For example:

$ curl -v https://rest.api.hiber.cloud/modem/ABCD0123 -H "Authorization: Bearer <token>"
{
    "modem": {
        "organization": "hiber",
        "number": "ABCD 0123",
        "name": "ABCD 0123",
        "identifier": "00 00 00 00 00 00 00 00",
        "location": {
            "latitude": 1.2345,
            "longitude": 1.2345,
            "textual": "[1.2345,1.2345]"
        },
        "healthLevel": {
            "level": "Warning",
            "color": "#FFD67A",
            "colorData": {
                "fill": "#FFD67A",
                "markerBackground": "#EDB63C",
                "markerForeground": "#FFFFFF",
                "text": "#FFD67A"
            },
            "severity": "2"
        },
        "notes": "My important device",
        "tags": [
            {
                "id": "3",
                "label": {
                    "name": "my group",
                    "type": "group"
                }
            }
        ]
    },
    "_links": {
        "self": {
            "href": "https://rest.api.hiber.cloud/modem/0E2C05C1"
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages