<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=691116991096043&amp;ev=PageView&amp;noscript=1">
Skip to content
  • There are no suggestions because the search field is empty.

Gatekeeper API

This article provides an overview of the API and describes the steps for accessing relevant documentation within Gatekeeper, as well as managing your API Keys.


Sections in this article:



API Overview

The Gatekeeper API uses the RESTful (Representational State Transfer) architecture and the JSON:API specification. JSON:API defines how a client should request that resources are fetched or modified, and how a server should respond to those requests. It minimises the number of requests and the amount of data transmitted between client and server, without compromising readability, flexibility, or discoverability.

Custom data groups configured in Gatekeeper are also supported within the API. The API and its documentation adapt automatically to any changes made to custom data in the Configuration area.

Integrate with Gatekeeper Using the Postman Collection

Our Postman Collection can be used to streamline API testing and integration with your Gatekeeper tenant. The collection provides a set of pre-configured requests, making it easier to connect to and interact with a Gatekeeper tenant without manual setup.

To access the Postman Collection and start your integration, contact your Account Director (AD), who will provide the necessary details and guidance.

Gatekeeper API Documentation

API documentation is specific to each Gatekeeper tenant. To access it, add /api_docs to the end of your tenant URL, directly after the four-digit tenant ID (e.g. 1234 in the example below). This number is unique to each Gatekeeper tenant.

Introduction – API Documentation 2020-02-12 15-15-24

The API Documentation page displays your unique API key and a full list of functions for each object, with examples to get started.

API docs

Note: Integration with external systems should only be attempted by users with the appropriate technical training. If you require technical support, contact our support team.

Manage API Keys

API keys enable external applications to interact securely with your Gatekeeper tenant. Managing your API keys is essential for maintaining security, controlling access, and ensuring compliance with cybersecurity best practices. You can:

  • Generate and manage multiple API keys.
  • Assign permissions for individual API keys to control access to specific endpoints.
  • Revoke or disable keys when necessary.

To manage API keys: 

  1. From the navigation menu, expand Settings, then click Configuration.
  2. Click API Keys.

The API Keys section displays a list of your existing API keys, including details of who generated the key and when.

API Key page

Click the copy icon to copy the key to your clipboard.

copy

Add an API Key

To create a new API Key:

  1. Click + Add New Key.
  2. Enter a name.
  3. Ensure the Enabled toggle is switched on. 
  4. Configure the permissions by selecting the appropriate checkboxes. This will determine whether read-only or write access is granted for each endpoint.
  5. Once finished, click Save.

Note: If the integration attempts to access an endpoint that has not been granted, an error code is generated. 

Manage Existing API Keys

You can update existing API keys if required. To do this: 

  1. Click the pencil icon on the relevant row.
    edit api key
  2. Update the name or amend the permissions by selecting/deselecting the checkboxes.
    1. To disable a key temporarily, switch off the Enabled toggle. This is useful when you need to pause the integration, as the key can be re-enabled later.
  3. Click Save to confirm your changes. 

Revoke an API Key

Revoking an API key permanently removes it, so it can never be used again. This is typically done when a key is compromised or no longer needed. To do this: 

  1. Click the delete icon on the relevant row. delete key
  2. Type in the confirmation phrase and click Confirm.

Note: Revoking an API key will invalidate it and break any integrations using it. This action cannot be undone.

API Troubleshooting

API calls may require proactive monitoring. To support error handling, the Parameters, Payload, and Response for the most recent calls are shown in the API logs. This allows your IT team to configure monitoring, alerts, and retries as required.