interface · Browser and Node

# CredentialBody

`@toip-tools/trust-core` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/trust-core/src/credentials.ts#L28)

Import:

```ts
import { type CredentialBody } from "@toip-tools/trust-core";
```

## Declaration

interface:

```ts
interface CredentialBody {
  type: string[];
  credentialSubject: Credential["credentialSubject"];
  validUntil?: string;
  credentialStatus?: Credential["credentialStatus"];
}
```

## Properties

- **`type` (required)**: `string[]`
- **`credentialSubject` (required)**: `{ [k: string]: unknown; id: string; }`
- **`validUntil` (optional)**: `string | undefined`
- **`credentialStatus` (optional)**: `{ type: "BitstringStatusListEntry"; statusListIndex: number; statusListCredential: string; } | undefined`

[Usage guide](https://toip.tools/toolkit/trust-core/#usage) · [Error handling](https://toip.tools/toolkit/trust-core/#errors) · [All exports](https://toip.tools/toolkit/trust-core/api/)

---

This is the Markdown version of https://toip.tools/toolkit/trust-core/api/CredentialBody/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
