Skip to content

APIs for Programmatic Access

To programmatically access the Endpoint Privilege Manager through API, you need a URL and the Auth Token. The token can be static, or dynamic and its validity could be for a specified time duration or forever. The access can be restricted to specific IP addresses or FQDNs. Also, tokens can be applicable only for a specific list of operations.

As mentioned above, you require two things for API access:

  • Authentication token

  • Access URL

You need to create the authentication token in the GUI and then construct the URL referring to our API reference guide. You need to supply the URL and the Auth Token to the calling application.

How to create the authentication tokens for APIs?

To create tokens for APIs, navigate to Admin >> API Access >> Create and Manage API Tokens.

Navigate To API Token Page In Admin Tab

In the GUI that opens, click the button Create Token.

Create New API Auth Token

In the page that opens, you need to specify the following details.

  • Token name

  • Description

Name Description For API Auth Token

Enter a name for the token being created. This API Reference Name helps you uniquely identify the token when using it in APIs. A description will help in tracking the purpose of the token.

Token access restrictions

If you want to restrict the token usage only from specific IP addresses, you may enter the same in the field “Allow API requests only from the following IPs/FQDN”.

Enforce IP Restrictions For Auth Token

You can enter individual IP addresses in comma separated form or an IP range or FQDNs or CIDR notations.

Examples:

Specific IP Address: 191.224.1.22

IP Range: 224.1.1.10:224.1.2.1

CIDR Notation: 192.168.1.30/24

Token type

You can choose to create a static token or a dynamically changing one. Select your choice Static or Dynamic as required.

API Auth Token Type In EPM

Token lifetime

You can also decide about the lifetime of the token being created. Static tokens can be created with a permanent validity Set to Never Expire or can be created to be valid for a predefined date and time.

Set Auth Token Validity For Static Tokens in EPM

Select the option Valid Upto and set the validity date. Dynamic tokens will have a short lifespan in minutes.

Set Dynamic Auth Token Validity In EPM

Token scope

You can define the scope of the token being created by restricting the operations for which the token generated here would be applicable. In other words, the API, with this token, cannot be used for operations other than the ones selected in scope. To define the scope, select the required operations under Token Applicability.

Select Token Scope In EPM

Create the token and copy the static token

After defining the scope, proceed to create the token.

If you have chosen the type Static, you will be prompted to copy the token to the clipboard. The token will be displayed only once and you can’t refer to that again if you don’t copy it.

Getting dynamic tokens

Dynamic auth tokens can be obtained programmatically. Typically, you will obtain it as explained below. You will have to pass the credentials to access Securden as arguments.

GET /api/get_auth_token

Input data (arguments): login_name (String), password (String), domain_name

(Default authentication will be local)

Example (if you are using Curl):

curl -k -X GET

"https://epmdemo.com/api/get_auth_token?login_name=admin&password=admin&domain_name=xyz"

Edit, Delete, Update, Regenerate Tokens

You can use the Actions column on the APIs page to delete the tokens that are no longer needed. Similarly, you can edit the static tokens and extend their lifetime (validity period). In such cases, you will have to update and regenerate the token.

Token creation is the first step in API access. You need to construct the URL for use by applications, scripts, and configuration files.

Constructing the URL for API Access

To programmatically access an account through API, you need a URL with the Auth token. You have created the auth token through the steps detailed above. You can create the URL by following the steps detailed in the API Help Documentation present in Admin >> API Access >> Create and Manage API Tokens. The documentation explains how the URL is to be constructed and the arguments to be passed for various operations.

Securden Help Assistant
What's next?
Request a Demo Get a Price Quote
Thank you message

Thanks for sharing your details.
We will be in touch with you shortly.

Thanks for sharing your details.
We will be in touch with you shortly.