# CredentialKeyTestResult

How one of a credential's keys did in a test. Never the endpoint's response itself: only its status.

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `keyId` | `uuid` |  |
| `keyHint` | `string` |  |
| `succeeded` | `boolean` |  |
| `errorCode` | `string \| null` | Why it failed (`CredentialErrorCodes`); null when it passed. |
| `statusCode` | `integer \| null` | The HTTP status the endpoint answered with; null when no answer came. |

## Example

```json
{
  "keyId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "keyHint": "...",
  "succeeded": false,
  "errorCode": "...",
  "statusCode": 0
}
```

## Where it's used

- Inside [`CredentialTestResult`](https://docs.maitento.com/reference/types/credential-test-result.md)
