Using the REST API Key (2024)

Service Manager

>

The REST API Key created for a tenant is used for authorizing REST API endpoints. These keys are static and do not change or expire, unlike Session IDs.

Creating a REST API Key Group

When using this feature for the first time, you need to create a group for REST API. If it already exists, then you can skip this step and proceed to create a REST API Key.

1.From the Configuration console, click Configure > Security Controls > API Keys.

2.Click Add Key Group. The application displays the New API Group page.

3.Enter a contextual name and description for the group in the Name and Description fields.

4.Click Save Key Group. A REST API group is created.

5.Click Back to return to the API Keys page.

Creating a REST API Key

1.From the Configuration console, click Configure > Security Controls > API Keys.

2.Select the relevant group created for REST API from the Key Groups section.

REST API Group

Using the REST API Key (1)

3.Click Add API Key. The application displays the New API Key page.

4.Enter information into the fields.

FieldDescription
Reference IDThis field is auto-generated. This ID is the REST API Key you need to use for endpoint authorization.
ActivatedSelect or clear the check box to activate and deactivate the key.
DescriptionEnter a description for the key.
On Behalf OfSelect the name of the user creating the key.

In Role

Select the role of the user creating the key.

5.By default, the REST API Key created is applicable for the logged-in tenant. However, you can add additional IPs to this key. To do so, click Add New IP, enter the IP address and click Ok.

6.Click Save Key. The generated REST API Key is saved with the details you entered.

7.Click Back to return to the API Keys page.

Editing a REST API Key

1.From the Configuration console, click Configure > Security Controls > API Keys.

2.Select the relevant group for REST API from the Key Groups section. The application displays the list of available keys.

3.Find the key and click Edit.

4.Modify the details as required and click Save Key.

Deleting a REST API Key

1.From the Configuration console, click Configure > Security Controls > API Keys.

2.Select the relevant group for REST API from the Key Groups section. The application displays the list of available keys.

3.Find the key and click Delete.

Using the REST API Key

To use the REST API Key as authorization when executing an endpoint:

Provide the Reference ID (REST API Key) generated for the tenant from which you want to execute the endpoints. The authorization should be in the format - rest_api_key={Reference ID}.

Troubleshooting REST API Key

When you execute a REST API endpoint, you get a not authorized error.

Reason:

The REST API Key used to authorize the endpoint does not belong to this tenant/IP.

Solution:

Create a new REST API Key for this tenant/IP. See Creating a REST API Key.

Was this article useful?

Copyright © 2019, Ivanti. All rights reserved.

Privacy and Legal

Using the REST API Key (2024)

FAQs

Using the REST API Key? ›

To use the REST API Key as authorization when executing an endpoint: Provide the Reference ID (REST API Key) generated for the tenant from which you want to execute the endpoints. The authorization should be in the format - rest_api_key={Reference ID}.

What do I do with my API key? ›

API keys identify an application's traffic for the API producer, in case the application developer needs to work with the API producer to debug an issue or show their application's usage. You want to control the number of calls made to your API. You want to identify usage patterns in your API's traffic.

How do we use REST API? ›

These are the general steps for any REST API call:
  1. The client sends a request to the server. ...
  2. The server authenticates the client and confirms that the client has the right to make that request.
  3. The server receives the request and processes it internally.
  4. The server returns a response to the client.

Where should I put my API key? ›

Instead of embedding your API keys in your applications, store them in environment variables or in files outside of your application's source tree.

What is the rest API key? ›

Definition. REST API keys are unique identifiers that authenticate and grant access to the Recurly API.

What is the purpose of the API key? ›

An application programming interface (API) key is a code used to identify and authenticate an application or user. API keys are available through platforms, such as a white-labeled internal marketplace.

What is a REST API for dummies? ›

A RESTful API is an architectural style for an application programming interface that uses HTTP requests to access and use data. That data can be used to GET , PUT , POST and DELETE data types, which refers to reading, updating, creating and deleting operations related to resources.

How to call a REST API? ›

Calling REST APIs
  1. Add a Datasource with OpenAPI specification. Datasource for REST service without OpenAPI specification.
  2. Add a service. Define the methods that map to the operations.
  3. Add a Controller. Inject the Service in the constructor. Add the REST endpoints.
  4. More examples.
  5. Further reading.

How to get data from a REST API? ›

To retrieve API data using a REST client, follow these steps:
  1. Choose a REST client tool or library suitable for your project's requirements and language.
  2. Set the HTTP method (usually GET for retrieving data) and provide the API endpoint URL.
  3. Configure any required headers, such as API keys or authentication tokens.
Jul 22, 2024

How to pass API key to client? ›

You can pass the API key via Basic Auth as either the username or password. Most implementations pair the API key with a blank value for the unused field (username or password). You will need to base64-encode the `username:password` content, but most request libraries do this for you.

How to check if an API key is working? ›

Double-click the saved HTML file to open it in your web browser. To access developer tools, right-click anywhere on the page and select "Inspect" or "Inspect Element" to open the browser's developer tools. Navigate to the "Console" tab. Here, you will find any errors or messages related to your API key.

How to include API key in API request? ›

To use an API Key, simply add it into the headers of any REST API call. If you use API keys to authenticate, the session cookies are not used to persist identity and so the key should be passed with every call. The header key should be apiKey and the value should be the UUID value of the API key itself.

Should you give out your API key? ›

Always use a unique API key for each team member on your account. An API key is a unique code that identifies your requests to the API. Your API key is intended to be used by you. The sharing of API keys is against the Terms of Use.

What do you do with an API? ›

Many people ask themselves, “What is an API?” API is the acronym for application programming interface — a software intermediary that allows two applications to talk to each other. APIs are an accessible way to extract and share data within and across organizations.

What if someone gets my API key? ›

Yes, you will still get charged even if the api key is not used accordingly to what you may expect simply because the api service has no way to know if it is some of your intented use.

How do I use API authentication key? ›

To do this, you hash the api key they sent with the request. You search your database to see if the hashed api key matches a hashed api key that is stored in the database. If there is a match, then the request is valid, which means the user has permission to access that api endpoint.

Top Articles
Quel chiffre attire l'amour ?
Who owns Allstate Corporation? ALL Stock Ownership - TipRanks.com
#ridwork guides | fountainpenguin
Craigslist Furniture Bedroom Set
Comcast Xfinity Outage in Kipton, Ohio
CKS is only available in the UK | NICE
Gunshots, panic and then fury - BBC correspondent's account of Trump shooting
Ap Chem Unit 8 Progress Check Mcq
Nashville Predators Wiki
Hmr Properties
Oppenheimer Showtimes Near Cinemark Denton
Red Tomatoes Farmers Market Menu
Classic Lotto Payout Calculator
Steamy Afternoon With Handsome Fernando
Snow Rider 3D Unblocked Wtf
Define Percosivism
Bend Pets Craigslist
Blackwolf Run Pro Shop
Vipleaguenba
Unity - Manual: Scene view navigation
Craigslist West Valley
Why Does Lawrence Jones Have Ptsd
Christina Steele And Nathaniel Hadley Novel
Zack Fairhurst Snapchat
Brazos Valley Busted Newspaper
Nsa Panama City Mwr
Atlases, Cartography, Asia (Collection Dr. Dupuis), Arch…
Weve Got You Surrounded Meme
Haunted Mansion Showtimes Near Epic Theatres Of West Volusia
Drying Cloths At A Hammam Crossword Clue
Lindy Kendra Scott Obituary
What we lost when Craigslist shut down its personals section
Imagetrend Elite Delaware
Obsidian Guard's Skullsplitter
Pixel Combat Unblocked
Springfield.craigslist
Craigslist Maryland Baltimore
Smartfind Express Henrico
Kgirls Seattle
Jewish Federation Of Greater Rochester
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
Natasha Tosini Bikini
Valls family wants to build a hotel near Versailles Restaurant
Why Are The French So Google Feud Answers
Sacramentocraiglist
Leland Westerlund
Mit diesen geheimen Codes verständigen sich Crew-Mitglieder
CPM Homework Help
Shannon Sharpe Pointing Gif
Bradshaw And Range Obituaries
Costco Gas Price Fort Lauderdale
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5637

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.