Integration Instance Auth Credentials

Create Integration Instance Auth Credential

Changed on

Creates an auth credential scoped to the given integration instance. Auth credentials are singleton resources that have a 1-to-1 relationship with an integration instance.

An attempt to create subsequent auth credentials for an instance will result in a 409 response.

post/v1/integration-instances/{integrationInstanceId}/auth-credential

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

integrationInstanceId, string required
Example:3f51fa25-310a-421d-bd1a-007f859021a3

The id of the integration instance.

Request body

CreateIntegrationInstanceAuthCredential required

Payload used to create an Multi Key credential for an integration instance.

type, 'multi_key_auth' required
config, object required

Example request

{
  "config": {
    "headers": [
      {
        "name": "x-api-key",
        "key": "9f2a3b4c8d6e7f00112233445566778899aabbccddeeff001122334455667788"
      }
    ]
  }
}

Response

A response containing an integration instance auth credential.

IntegrationInstanceAuthCredential required

Represents a credential scoped to an integration instance that supports the Multi Key authorization strategy.

id, string uuid required
integration_instance, IntegrationInstanceRef required

Short-hand descriptor of an integration instance.

missing_permissions, MissingPermission[] required

List of detected missing permissions required to enable the full functionality of the given integration instance.

tainted, boolean required

Indicates that the credential is no longer valid and must be replaced with a new valid credential.

expires_at, string date-time nullable required

Timestamp denoting when the when the credential will expire in RFC-3339 format with a "T" character separating date from time within the field value. When expired, the credential must be replaced with a new valid credential to re-enable full functionality for the given integration instance.

A null value indicates no known expiration time.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

type, 'multi_key_auth' required

Example response

{
  "id": "4f535923-ec24-456c-b4e5-e67f65c8c208",
  "integration_instance": {
    "id": "772b9caf-ddbc-4f4f-8aa4-8dfbbe420351",
    "name": "aws-lambda-prod",
    "display_name": "AWS (prod)"
  },
  "missing_permissions": [
    {
      "scopes": [
        "incident:read"
      ]
    }
  ],
  "expires_at": "2025-04-01T07:20:50Z",
  "created_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status