Keys

The following endpoints allow you to manage and retrieve metadata for authentication keys in your custom keychain. You can use these keys to manage your authentication in the HTTP or encryptor apps similarly to other connections.

List keys

get
/keys

Gets the list of keys in your custom keychain. You can use the typeName query parameter to filter your keys based on their type. Run the list of key types API call to get a list of available key types.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Query parameters
teamIdintegerRequired

The ID of the team.

Example: 22
typeNamestring · enumOptional

Use the key type to get only keys with the specified type. You can use the API call GET /keys/types to list available key types.

Example: basicauthPossible values:
Responses
200

Successful response

application/json
get
/keys
200

Successful response

Create a key

post
/keys

Creates a key in your keychain.

Use the list of key types API call to get a list of available key types for the typeName parameter. Specify additional parameters in the parameters object based on the key type.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Body
teamIdintegerRequired

The ID of the team.

namestringRequired

The name of the key.

typeNamestringRequired

Use the key type to get only keys with the specified type. You can use the API call GET /keys/types to list available key types.

parametersobjectRequired

Additional parameters required to create the key.

Check the list of key types API call for the parameters you need to specify.

Responses
200

Successful response

application/json
post
/keys
200

Successful response

List key types

get
/keys/types

Gets the list of available key types.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Responses
200

Successful response

application/json
get
/keys/types
200

Successful response

Get key details

get
/keys/{keyId}

Gets details of the specified key.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
keyIdintegerRequired

The ID of the key.

Example: 16
Query parameters
Responses
200

Successful response

application/json
get
/keys/{keyId}
200

Successful response

Delete a key

delete
/keys/{keyId}

Deletes the specified key. Use the confirmed parameter to confirm deleting the key. Otherwise, you get an error and the key is not deleted.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
keyIdintegerRequired

The ID of the key.

Example: 16
Query parameters
confirmedbooleanOptional

Set this parameter to true to confirm deleting the key. Otherwise, you get an error and the key is not deleted.

Example: true
Responses
200

Successful response

application/json
delete
/keys/{keyId}
200

Successful response

Update a key

patch
/keys/{keyId}

Updates a key name, connection parameters, or both with the data specified in the request body. If you don't specify a parameter, Make keeps the original value.

Use the GET /key-types API call to find out which parameters you need to specify in the parameters object based on the key type.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Path parameters
keyIdintegerRequired

The ID of the key.

Example: 16
Body
objectOptional
Responses
200

Successful response

application/json
patch
/keys/{keyId}
200

Successful response

Last updated