AI Gateway Consumers
Create an AI Gateway Consumer Credential
Changed onCreates a new credential for an AI Gateway consumer.
post/v1/ai-gateways/{gatewayId}/consumers/{consumerId}/credentials
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v1/ai-gateways/{gatewayId}/consumers/{consumerId}/credentials
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"display_name": "Greg's Dev Key",
"name": "my-entity-name",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"type": "api-key",
"ttl": 86400,
"api_key": "sk-387788hd3xnej"
}Response
AI Gateway Consumer credential created successfully.
Example response
{
"display_name": "Greg's Dev Key",
"name": "my-entity-name",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"type": "api-key",
"ttl": 86400,
"api_key": "sk-387788hd3xnej",
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- warning
added the new
400.00enum value to theresponse property for the response status - warning
added the new
403.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to theresponse property for the response status
- warning