Download OpenAPI specification:Download
List all clients for the auth server
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "client_id": "kYa9iQFU5xPDSIUH9z1z",
- "client_name": "Client 1",
- "client_id_issued_at": 1742314963,
- "client_secret": "$€cr€T",
- "client_secret_expires_at": 0,
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
], - "labels": {
- "env": "production"
}
}, - {
- "client_id": "ZYa9iQFU5xPDSIUH9z1z",
- "client_name": "Client 2",
- "client_id_issued_at": 1742314963,
- "client_secret": "$€cr€T2",
- "client_secret_expires_at": 0,
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
], - "labels": {
- "env": "production"
},
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new client in the auth server
Client to be created
| client_name required | string name of the client |
| application_type required | string (ApplicationType) Value: "machine" Type of the application |
| grant_types required | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| token_endpoint_auth_method required | string (TokenEndpointAuthMethod) Enum: "client_secret_basic" "client_secret_jwt" "client_secret_post" "none" Requested authentication method for OAuth 2.0 endpoints. |
| response_types required | Array of strings (ResponseTypes) Items Enum: "code" "id_token" "token" |
| redirect_uris required | Array of strings Array of redirection URI strings for use in redirect-based flows |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "client_name": "kYa9iQFU5xPDSIUH9z1z",
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
],
}{- "client_id": "kYa9iQFU5xPDSIUH9z1z",
- "client_name": "Client 1",
- "client_id_issued_at": 1742314963,
- "client_secret": "$€cr€T",
- "client_secret_expires_at": 0,
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
], - "labels": {
- "env": "production"
},
}Get a client for given auth server
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "client_id": "kYa9iQFU5xPDSIUH9z1z",
- "client_name": "Client 1",
- "client_id_issued_at": 1742314963,
- "client_secret": "$€cr€T",
- "client_secret_expires_at": 0,
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
], - "labels": {
- "env": "production"
},
}Replace a client
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
Client to be created
| client_name required | string name of the client |
| application_type required | string (ApplicationType) Value: "machine" Type of the application |
| grant_types required | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| token_endpoint_auth_method required | string (TokenEndpointAuthMethod) Enum: "client_secret_basic" "client_secret_jwt" "client_secret_post" "none" Requested authentication method for OAuth 2.0 endpoints. |
| response_types required | Array of strings (ResponseTypes) Items Enum: "code" "id_token" "token" |
| redirect_uris required | Array of strings Array of redirection URI strings for use in redirect-based flows |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "client_name": "kYa9iQFU5xPDSIUH9z1z",
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
],
}{- "client_id": "kYa9iQFU5xPDSIUH9z1z",
- "client_name": "Client 1",
- "client_id_issued_at": 1742314963,
- "client_secret": "$€cr€T",
- "client_secret_expires_at": 0,
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
], - "labels": {
- "env": "production"
},
}Delete a client for a given auth server
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}Refresh the secret of a client
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "client_id": "kYa9iQFU5xPDSIUH9z1z",
- "client_name": "Client 1",
- "client_id_issued_at": 1742314963,
- "client_secret": "$€cr€T",
- "client_secret_expires_at": 0,
- "application_type": "machine",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_basic",
- "response_types": [
- "code"
], - "labels": {
- "env": "production"
},
}