How to create API Tokens | Unleash (2024)

Permissions

Creating API tokens requires you to have the CREATE_API_TOKEN permission. This means that, as of now, only instance admins can create API tokens.

All users can see tokens with CLIENT level access, but only instance admins can see tokens with ADMIN level access.

Unleash SDKs use API tokens to authenticate to the Unleash API. Unleash supports different types of API tokens, each with different levels of access and privileges. Refer to the API tokens and client keys article for complete overview of the different token types.

Step 1: Navigate to the API token creation form

Navigate to the API access page in the admin UI (available at the URL /admin/api). Use the navigation menu item "Configure" and select "API access".

How to create API Tokens | Unleash (1)

On the API access page, use the "New API token" button to navigate to the token creation form.

How to create API Tokens | Unleash (2)

Step 2: Fill in the API token form

How to create API Tokens | Unleash (3)

Fill in the form with the desired values for the token you want to create. Refer to the API tokens and client keys article for a detailed explanation of what all the fields mean.

Using API tokens

When you have created the API token, it will be listed on the API access page. If you have the required permissions to see the token, you can copy it for easy use in your applications.

How to create API Tokens | Unleash (4)

How to create API Tokens | Unleash (2024)

FAQs

How to create API Tokens | Unleash? ›

Navigate to the API access page in the admin UI (available at the URL /admin/api ). Use the navigation menu item "Configure" and select "API access". On the API access page, use the "New API token" button to navigate to the token creation form.

How to generate API tokens? ›

To generate an API token, perform the following: From Home > My Access, select the appropriate resource for which you need to generate a token. For example, if you want to generate a token for Shared Keys, select the resource Predefined Tags > Shared Keys. Click API Token > Generate Token.

How to generate your own API key? ›

To create your application's API key:
  1. Go to the API Console.
  2. From the projects list, select a project or create a new one.
  3. If the APIs & services page isn't already open, open the left side menu and select APIs & services.
  4. On the left, choose Credentials.
  5. Click Create credentials and then select API key.

How do I create a Google API token? ›

At a high level, you follow five steps:
  1. Obtain OAuth 2.0 credentials from the Google API Console. ...
  2. Obtain an access token from the Google Authorization Server. ...
  3. Examine scopes of access granted by the user. ...
  4. Send the access token to an API. ...
  5. Refresh the access token, if necessary.

How do I pass an API authentication token? ›

The second way to pass your API token is via a query parameter called key in the URL like below. Use of the X-Dataverse-key HTTP header form is preferred to passing key in the URL because query parameters like key appear in URLs and might accidentally get shared, exposing your API token. (Again it's like a password.)

How to generate API token in Postman? ›

To generate a Postman API key, do the following:
  1. Select your avatar in the Postman header, then select Settings. In the account settings page, select API keys.
  2. If you don't have a key, you'll be prompted to create one. Select Generate API Key.
  3. Enter a name for your key and select Generate API Key.
  4. Copy your key.
May 20, 2024

Can I create my own API for free? ›

Follow the steps yourself by signing up for a free OCI account.
  1. In the console, open the navigation menu and click Developer Services. ...
  2. On the APIs page, click Create API Resource and specify its Name. ...
  3. Click Create to create the new API resource.
  4. Write the backend code. ...
  5. Test the backend code. ...
  6. Deploy.

How do I manually create API? ›

How to Build an API: a Comprehensive Guide
  1. Step #1. Start with your goals and intended users.
  2. Step #2. Design the API.
  3. Step #3. Develop your API.
  4. Step #4.Test your API.
  5. Step #5. Monitor your API and iterate on feedback.
  6. Conclusion.

Can I get API key for free? ›

API Keys is free of charge. If you use Cloud Endpoints to manage your API, you might incur charges at high traffic volumes. For more information, see Endpoints pricing.

How is an OAuth token generated? ›

The first step in the OAuth process is for the application to request authorization from the user. The user logs in to the server and grants the application permission to access their data. Once the user grants permission, the server generates an OAuth token.

What does an API key look like? ›

An API key is a unique bit of code that identifies the API client to the API. It's like an ID card. It might look something like this: e7062c5b-d95d-4fa5-af31-52cb6e662816. Any number of platforms can generate the keys.

Why not use OAuth? ›

OAuth2 is not an authentication (login) protocol!

The purpose of OAuth2 Tokens is to authorize requests at a first party server (or API). If the third party uses the OAuth2 Access Token as proof of authentication, an attacker could easily impersonate a legitimate user.

How to generate API token in Jira? ›

Create an API Token in Atlassian (Jira and Confluence)
  1. Log into Jira Software or Confluence and click your profile image and select Profile from the menu.
  2. Click Manage Your Account.
  3. Navigate to Security and click Create and manage API tokens.
  4. Click Create API token.
  5. Enter a Label and click Create.

How do I Create a bearer token for API? ›

In this scenario, we'll use a fictional web application to demonstrate the process.
  1. Step 1: Register your application on GitHub. Go to your GitHub account settings. ...
  2. Step 2: Request authorization from the user. ...
  3. Step 3: Exchange authorization code for a token. ...
  4. Step 4: Use the Bearer token.

How do I get a bot API token? ›

Start a chat with BotFather and use the command "/newbot" to create a new bot. Follow the instructions provided by BotFather to choose a name and username for your bot. d. Once the bot is created, BotFather will provide you with a unique API token.

How do I get an API token for Azure? ›

To access Azure REST APIs such as the Log analytics API, or to send custom metrics, you can generate an authorization token based on a client ID and secret. The token is then passed in your REST API request. This article shows you how to register a client app and create a client secret so that you can generate a token.

Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 6257

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.