# Testing

These are a collection of endpoints that allow you to test connectivity with your Console.

# Ping

GET /api/v1/ping

A simple endpoint to test if the API is reachable.

Required Parameters

auth_token string
A valid auth token

Response

A JSON message with a result indicator.

Example

curl https://EXAMPLE.canary.tools/api/v1/ping \
  -d auth_token=EXAMPLE_AUTH_TOKEN \
  -G
Copied!
1
2
3
Response
{
  "result": "success"
}
Copied!
1
2
3

# Send Fake Syslog Alerts

POST /api/v1/syslog/fake_alert/<incident_count>

Send fake alerts to your syslog setup.

Required Parameters

auth_token string
A valid auth token

Optional Parameters

alert_all_devices boolean
Create a fake alert for all Birds connected to your Console

Response

A JSON message with a result indicator.

Example

curl https://EXAMPLE.canary.tools/api/v1/syslog/fake_alert/1 \
  -d auth_token=EXAMPLE_AUTH_TOKEN \
Copied!
1
2
Response
{
  "result": "success"
}
Copied!
1
2
3

# Send Syslog Test Message

POST /api/v1/syslog/test

Test your Syslog setup by sending a dummy test message.

Required Parameters

auth_token string
A valid auth token

Response

A JSON message with a result indicator.

Example

curl https://EXAMPLE.canary.tools/api/v1/syslog/test \
  -d auth_token=EXAMPLE_AUTH_TOKEN
Copied!
1
2
Response
{
  "result": "success"
}
Copied!
1
2
3