<p>SITE_NAME Management API supports listing, creating, updating, pausing and deleting
checks in user's account.</p>
<p>With the Management API, you can programmatically manage checks and integrations
in your account.</p>
<h2>API Endpoints</h2>
<h2>API Endpoints</h2>
<table>
<table>
<thead>
<thead>
@ -50,7 +50,7 @@ checks in user's account.</p>
</table>
</table>
<h2>Authentication</h2>
<h2>Authentication</h2>
<p>Your requests to SITE_NAME Management API must authenticate using an
<p>Your requests to SITE_NAME Management API must authenticate using an
API key. API keys are project-specific, there are no account-wide API keys.
API key. All API keys are project-specific. There are no account-wide API keys.
By default, a project on SITE_NAME doesn't have an API key. You can create read-write
By default, a project on SITE_NAME doesn't have an API key. You can create read-write
and read-only API keys in the <strong>Project Settings</strong> page.</p>
and read-only API keys in the <strong>Project Settings</strong> page.</p>
<dl>
<dl>
@ -69,15 +69,15 @@ individual API endpoints for details.</p>
</dd>
</dd>
</dl>
</dl>
<p>The client can authenticate itself by including an <code>X-Api-Key: <your-api-key></code>
<p>The client can authenticate itself by including an <code>X-Api-Key: <your-api-key></code>
header in a HTTP request. Alternatively, for POST requests with a JSON request body,
the client can include an <code>api_key</code> field in the JSON document.
header in an HTTP request. Alternatively, for POST requests with a JSON request body,
the client can put an <code>api_key</code> field in the JSON document.
See the <ahref="#create-check">Create a new check</a> section for an example.</p>
See the <ahref="#create-check">Create a new check</a> section for an example.</p>
<h2>API Requests</h2>
<h2>API Requests</h2>
<p>For POST requests, the SITE_NAME API expects request body to be
<p>For POST requests, the SITE_NAME API expects the request body to be
a JSON document (<em>not</em> a <code>multipart/form-data</code> encoded form data).</p>
a JSON document (<em>not</em> a <code>multipart/form-data</code> encoded form data).</p>
<h2>API Responses</h2>
<h2>API Responses</h2>
<p>SITE_NAME uses HTTP status codes wherever possible.
<p>SITE_NAME uses HTTP status codes wherever possible.
In general, 2xx class indicates success, 4xx indicates an client error,
In general, 2xx class indicates success, 4xx indicates a client error,
and 5xx indicates a server error.</p>
and 5xx indicates a server error.</p>
<p>The response may contain a JSON document with additional data.</p>
<p>The response may contain a JSON document with additional data.</p>
<h2class="rule"id="list-checks">Get a List of Existing Checks</h2>
<h2class="rule"id="list-checks">Get a List of Existing Checks</h2>
@ -148,9 +148,12 @@ specified value.</p>
</code></pre></div>
</code></pre></div>
<p>When using the read-only API key, the following fields are omitted:
<code>ping_url</code>, <code>update_url</code>, <code>pause_url</code>, <code>channels</code>. An extra <code>unique_key</code> field
is added which can be used <ahref="#get-check">to <code>GET</code> a check</a> in place of the <code>UUID</code>. The <code>unique_key</code> identifier is stable across API calls. Example:</p>
<p>When using the read-only API key, SITE_NAME omits the following fields from responses:
<code>ping_url</code>, <code>update_url</code>, <code>pause_url</code>, <code>channels</code>. It adds an extra
<code>unique_key</code> field. The <code>unique_key</code> identifier is stable across API calls, and
you can use it in the <ahref="#get-check">Get a single check</a>
and <ahref="#list-flips">Get a list of check's status changes</a> API calls.</p>