Authentication
Get your API token
To create an API token, click on API in the top-right dropdown menu.

Enter a name for the new token and click on Create token. A popup will show your new API access token. Important: This is the only time the token is visible for you!
Authenticate against the API
$ SIGUA_TOKEN="your API token"
$ curl https://siteguard.app/api/me \
-H "Authorization: Bearer $SIGUA_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'
The response payload looks similar to this
{
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"locale": "en_US",
"timezone": "America/New_York",
"teams": {
"id": 1,
"name": "Default"
}
}
Last updated
Was this helpful?