{ "opencollection": "1.0.0", "info": { "name": "Kong Enterprise Admin ACLs System Accounts - Access Tokens API", "version": "3.14.0" }, "request": { "auth": { "type": "apikey", "key": "Kong-Admin-Token", "value": "{{Kong-Admin-Token}}", "placement": "header" } }, "items": [ { "info": { "name": "System Accounts - Access Tokens", "type": "folder" }, "items": [ { "info": { "name": "List System Account Access Tokens", "type": "http" }, "http": { "method": "GET", "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/access-tokens", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "ID of the system account." }, { "name": "page[size]", "value": "", "type": "query", "description": "The maximum number of items to include per page. The last page of a collection may include fewer items." }, { "name": "page[number]", "value": "", "type": "query", "description": "Determines which page of the entities to retrieve." }, { "name": "filter", "value": "", "type": "query", "description": "Filter access tokens returned in the response." } ] }, "docs": "Returns the access tokens for the specified system account. Returns 400 if any filter parameters are invalid." }, { "info": { "name": "Create System Account Access Token", "type": "http" }, "http": { "method": "POST", "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/access-tokens", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "ID of the system account." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates an access token for the specified system account (SA). The access token can be used for authenticating API and CLI requests. The token will only be displayed once on creation. Returns a 409 if the system account already has a token with the same name." }, { "info": { "name": "Get a System Account Access Token", "type": "http" }, "http": { "method": "GET", "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/access-tokens/:tokenId", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "ID of the system account." }, { "name": "tokenId", "value": "", "type": "path", "description": "ID of the system account access token." } ] }, "docs": "Returns the system account (SA) access token for the SA Access Token ID specified as a path parameter." }, { "info": { "name": "Update System Account Access Token", "type": "http" }, "http": { "method": "PATCH", "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/access-tokens/:tokenId", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "ID of the system account." }, { "name": "tokenId", "value": "", "type": "path", "description": "ID of the system account access token." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the specified access token. Returns a 409 if the updated name is the same as another token belonging to the specified system user." }, { "info": { "name": "Delete System Account Access Token", "type": "http" }, "http": { "method": "DELETE", "url": "{protocol}://{hostname}:{port}{path}/v3/system-accounts/:accountId/access-tokens/:tokenId", "params": [ { "name": "accountId", "value": "", "type": "path", "description": "ID of the system account." }, { "name": "tokenId", "value": "", "type": "path", "description": "ID of the system account access token." } ] }, "docs": "Deletes the specified token. Returns 404 if the token was not found." } ] } ], "bundled": true }