API Token
Overview
This is a page for managing External API tokens.
What is External API?
External API is an API that allows you to use QueryPie’s features outside of the web console. Currently in version 10.0, it provides two versions: V0.9 and V2.
- QueryPie API V2
- QueryPie version 9.16.1 and later supports V2 API.
 - The call path is 
{querypie url}/api/external/v2/and can be used without affecting the existing API V0.9. 
 - The basic headers required for API calls are as follows. Please refer to the API documentation for detailed API specifications.
 
| Key | Value | 
|---|---|
| Content-Type | application/json | 
| Authorization | {querypie api token} | 
Precautions when using API tokens are as follows.
- API tokens can be issued by users with Owner privileges or administrators with access to the corresponding menu.
 - Tokens are fully exposed only upon initial issuance. After that, all except the first 8 characters are masked and displayed.
- If the token key is lost , we recommend deleting the existing key from the history and issuing a new token to use.
 
 - When extending API tokens, the expiration date is extended by the period set when the token was created from the time the Update button is pressed.
 
The list of provided APIs and specifications can be found in the API documentation accessible by clicking API Docs in the top right corner of Administrator > General > System > API Token.
Viewing API Token List

Administrator > General > System > API Token
- Navigate to Administrator > General > System > API Token menu.
 - You can view the list of currently created tokens. (Sorted by creation date, newest first)
 - Search and Filter :
- Token lists can be searched by Token Name or Token Value.
 - Lists can be filtered by token status.
 
 
Creating API Tokens

Administrator > General > System > API Token > Create API Token
- Click the 
Create API Tokenbutton in the top right corner of the API Token page. - Enter the following information for token creation.
- API Name : Enter an identifiable name for the API token.
 - Validity Period Type : Specify the expiration period for the token.
- When Never Expire is selected, the token can be used permanently, but this is not recommended.
 
 - Scopes : Select permissions that can be performed with the API token.
- Full Access : Permission to perform all administrator functions.
 - Select Role : Select desired Admin Role to limit permission scope.
- Admin Role can be saved without any input, and in this case, no operations can be performed with the API Token.
 
 
 - Allowed Zones  : Define IP ranges where API token usage is possible.
- Set API call IP ACL by mapping Allowed Zones defined in Admin > General > Company Management > Allowed Zones.
 
 - Description : Write a description for the API token.
 
 - Click the 
Okbutton to complete API Token creation. - You can view API Token information only once in the creation completion modal.
- Click the copy button on the right side of the API Token to copy Token information.
 - Click the 
OKbutton to close the modal. 
 
Modifying API Tokens

General Settings > System > API Token > Edit API Token
- Click on the token you want to modify in the Token list within the API Token page.
 - The Edit API Token modal is displayed. Changeable items are as follows.
- API Name : Enter if you want to change the name.
 - Validity Period Type : You can change the API Token expiration date.
- When saving after changes, the expiration date changes based on the newly specified period from the current time.
 - Whether the remaining period until API Token expiration is shorter or longer than the newly specified expiration date, the expiration date is overwritten with the newly specified value. You can extend or shorten API lifespan depending on the situation.
 - When changing to Never Expire, the expiration date/time is removed, but this is not recommended.
 
 - Scopes  : Change the permission scope that can be performed with the API Token.
- Full Access : Permission to perform all administrator functions.
 - Select Role : Select desired Admin Role to limit permission scope.
- Admin Role can be saved without any input, and in this case, no operations can be performed with the API Token.
 
 
 - Allowed Zones  : Define IP ranges where API token usage is possible.
- Set API call IP ACL by mapping Allowed Zones defined in Admin > General > Company Management > Allowed Zones.
 
 - Description : Enter if you want to change the description for the API token.
 
 - Click the 
OKbutton to save the changes. 
Renewing API Token Usage Period
- Click the 
Updatebutton of the token you want to renew in the token list within the API Token page. - When renewal is successful, a toast is displayed, and the expiration date is extended by the period set in Validity Period Type when the token was created from the time the button was clicked.
 
Deleting API Tokens

Administrator > General > System > API Token > Delete
- Select the token you want to delete with a checkbox in the API Token page.
 - Click the 
Deletebutton in the table header. - Click the 
OKbutton when the confirmation modal is displayed. - Confirm the deletion of the corresponding token in the table list.
 
Last updated on