5. API Token Configuration

The API token is a security token that must be provided by other plugins or third-party services when calling TimeWise Open API v3.

Create an API token

Go to > Manage apps > API Token Configuration.

 

image-20241224-073336.png

Click "Create".

无标题-20241224-081418.png

The expires (days) should be a number among -1~1825. -1 mean this token is unlimited.

Call TimeWise V3 API with token

① LimitationTimeWise

TimeWise is enabled in Jira. The token using to call API is active. TimeWise API token is available for TimeWise REST API v3 only.

② Request sample

API Description

Add members to a department by their member ID.

Request Type

GET

URL

{jira_base_url}/rest/shdsd-Timesheet/3/(...)

Media Type

application/json

Header

Authorization: Bearer 0d0995d5-b85e-4546-a99c-bb8d5857733b

Body

{
  "members": "1, 4, 8"
}

③ Response

See general responses in TimeWise Open API v3

 

Failed response:

{ "code": "401", "msg": "Invalid token" }