Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >

Testkube Control Plane ../tokens operations

Testkube Pro API (cloud-api/1.10.51)

Download OpenAPI specification:Download

API for Testkube Pro

List API Tokens

Lists API Tokens for an Organization

Authorizations:
None
path Parameters
id
required
string

unique id of the object

query Parameters
limit
integer

limit queries for list of resources

Responses

Response samples

Content type
application/json
{
  • "elements": [
    ]
}

Create API Token

Creates an API Token for an Organization

Authorizations:
None
path Parameters
id
required
string

unique id of the object

Request Body schema: application/json
required

token body

name
required
string

API Token name

expiration
string <duration>

Expiration represented as duration string

Array of objects (Scope)

API token scopes

Responses

Request samples

Content type
application/json
{
  • "name": "Organization Read-only token",
  • "expiration": "P3D",
  • "scopes": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "name": "string",
  • "description": "string",
  • "labels": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "type": "user",
  • "token": "tkcagnt_ade343dafecb5412232adeaa521add",
  • "scopes": [
    ],
  • "meta": {
    },
  • "expiresAt": "2019-08-24T14:15:22Z",
  • "lastActive": "2019-08-24T14:15:22Z"
}

Delete API Token

Deletes an API Token for an Organization

Authorizations:
None
path Parameters
id
required
string

unique id of the object

tokenID
required
string

unique ID of the API Token

Responses

Response samples

Content type
application/problem+json
{}