---
updatedAt: 2026-08-04T01:14:18.000Z
---

# Get the public key associated with a client credential.

This endpoint is used to retrieve the public key for a client credential.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Wpay Cards Connect",
    "description": "This swagger documents the APIs to integrate into Cards Connect. These APIs implement standard payment message types to allow payment providers to post financial transactions.",
    "contact": {
      "name": "Wpay",
      "url": "https://www.wpay.io"
    },
    "version": "v1"
  },
  "paths": {
    "/api/v1/keys/credential/{keyId}/public": {
      "get": {
        "tags": [
          "KeyManagement"
        ],
        "summary": "Get the public key associated with a client credential.",
        "description": "This endpoint is used to retrieve the public key for a client credential.",
        "operationId": "GetCredentialPublicKeyAsync",
        "parameters": [
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The requested credential public key is returned.",
            "content": {
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicKey"
                },
                "example": {
                  "key": "----Public JWK key material as a JSON object----",
                  "expiry": "2026-01-26T03:59:36.542905+00:00"
                }
              }
            }
          },
          "401": {
            "description": "The user is not authorized to make this request.",
            "content": {
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "PublicKey": {
        "type": "object",
        "properties": {
          "key": {
            "description": "The current public key."
          },
          "expiry": {
            "type": "string",
            "description": "The expiry date of the public key.",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "KeyManagement",
      "description": "API endpoints for managing cryptographic keys."
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```