Generate Token Service Account
Returns the list of all api tokens for the service account. The newly created api token is the last element of returned list.
Request
URI
POST
https://{api_host}/api/v2/apitoken/serviceaccount/{id}
COPY
Path Parameters
string
id
Required
id
Request Body
UserApiToken of type(s) application/json
Optional
{
"tokenID": "string",
"tokenName": "string",
"account": "string",
"accountType": "string",
"lastUsed": 0,
"dateGenerated": 0
}
string
tokenID
Required
The identifier of the user API token
string
tokenName
Optional
The name of the user API token
string
account
Optional
The account who generated this token.
string
accountType
Optional
The user or service account generated this token.
Possible values are : USER_ACCOUNT, SERVICE_ACCOUNT, INACTIVE_SERVICE_ACCOUNT,
integer As int64 As int64
lastUsed
Optional
The last time this token was used
integer As int64 As int64
dateGenerated
Optional
The generation date of the token.
Responses
200
successful operation
Returns ResponseContainerListUserApiToken of type(s) application/json
{
"status": {
"result": "string",
"message": "string",
"code": 0
},
"response": [
{
"tokenID": "string",
"tokenName": "string",
"account": "string",
"accountType": "string",
"lastUsed": 0,
"dateGenerated": 0
}
]
}
On This Page
Api Token Operations
POST
Create Token
PUT
Delete Customer Token
DELETE
Delete Token
DELETE
Delete Token Service Account
POST
Generate Token Service Account
GET
Get All Tokens
GET
Get Customer Token
GET
Get Customer Tokens
GET
Get Tokens Service Account
PUT
Update Token Name
PUT
Update Token Name Service Account