List PATs

List personal access tokens in your organization. Only organization administrators are authorized to perform this action.

get
https://global.api.konghq.com/v3/organizations/{organizationId}/personal-access-tokens

Query Parameters

page[size]integer

The maximum number of items to include per page. The last page of a collection may include fewer items.

Example:10

page[before]string

Request the next page of data, starting with the item before this parameter.

Example:ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ

page[after]string

Request the next page of data, starting with the item after this parameter.

Example:ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ

filterobject

Filters a collection of personal access tokens in an organization.

* Additional properties are NOT allowed.
Show Child Parameters

Path Parameters

organizationIdstring(uuid)requiredread-only

UUID representing an organization.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

Response

application/json

A list response for a collection of personal access tokens.

* Additional properties are NOT allowed.
dataarray[object]required

Properties of a personal access token.

* Additional properties are NOT allowed.
Show Child Parameters
metaobjectrequired
Show Child Parameters
get/organizations/{organizationId}/personal-access-tokens
 
application/json

Get personal access token policy settings

Get personal access token policy settings. Only organization administrators are authorized to perform this action.

get
https://global.api.konghq.com/v3/organizations/{organizationId}/personal-access-token-settings

Path Parameters

organizationIdstring(uuid)requiredread-only

UUID representing an organization.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

Response

application/json

Response containing personal access token settings.

* Additional properties are NOT allowed.
pats_enabledbooleanrequired

Default:true

max_expiration_period_daysintegerrequired

>= 1<= 365

get/organizations/{organizationId}/personal-access-token-settings
 
application/json

Update personal access token policy settings

Update personal access token policy settings. Only organization administrators are authorized to perform this action.

patch
https://global.api.konghq.com/v3/organizations/{organizationId}/personal-access-token-settings

Path Parameters

organizationIdstring(uuid)requiredread-only

UUID representing an organization.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

Body

application/json

Request body schema for updating personal access token settings.

pats_enabledboolean
max_expiration_period_daysinteger

>= 1<= 365

Response

application/json

Response containing personal access token settings.

* Additional properties are NOT allowed.
pats_enabledbooleanrequired

Default:true

max_expiration_period_daysintegerrequired

>= 1<= 365

patch/organizations/{organizationId}/personal-access-token-settings

Body

{ "pats_enabled": true, "max_expiration_period_days": 365 }
 
application/json

MaxPATExpirationPeriodDays

integer

>= 1<= 365

UUID

string

Contains a unique identifier used for this resource.

Example