> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# API

> API reference for Certifier: every `certifier.api.*` operation with input and output types.

Every `certifier.api.*` operation is listed below with parameter shapes and return types from the plugin Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Attributes

### list

`attributes.list`

List attribute definitions available for credentials, with pagination.

**Risk:** `read`

```ts theme={null}
await corsair.certifier.api.attributes.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `data` | `object[]` | Yes | — |
| `pagination` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id?: string,
>   tag?: string,
>   name?: string,
>   type?: string
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   prev?: string | null,
>   next?: string | null
> }
> ```

***

## Credential Interactions

### list

`credentialInteractions.list`

List credential interaction events, optionally filtered by credential.

**Risk:** `read`

```ts theme={null}
await corsair.certifier.api.credentialInteractions.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |
| `credentialId` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `data` | `object[]` | Yes | — |
| `pagination` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   credentialId?: string,
>   eventType?: string,
>   triggeredBy?: string,
>   triggeredAt?: string
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   prev?: string | null,
>   next?: string | null
> }
> ```

***

## Credentials

### createIssueSend

`credentials.createIssueSend`

Create, issue, and send a credential in a single request.

**Risk:** `write`

```ts theme={null}
await corsair.certifier.api.credentials.createIssueSend({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `groupId` | `string` | Yes | — |
| `recipient` | `object` | Yes | — |
| `issueDate` | `string` | No | — |
| `expiryDate` | `string` | No | — |
| `customAttributes` | `Record<string, string>` | No | — |

> [accordion] recipient full type
>
> ```ts theme={null}
> {
>   name: string,
>   email: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `publicId` | `string` | No | — |
| `groupId` | `string` | No | — |
| `status` | `string` | No | — |
| `recipient` | `object` | No | — |
| `issueDate` | `string \| null` | No | — |
| `expiryDate` | `string \| null` | No | — |
| `attributes` | `Record<string, string \| null>` | No | — |
| `customAttributes` | `Record<string, string \| null>` | No | — |
| `createdAt` | `string` | No | — |
| `updatedAt` | `string` | No | — |

> [accordion] recipient full type
>
> ```ts theme={null}
> {
>   id?: string,
>   name?: string,
>   email?: string
> }
> ```

***

### list

`credentials.list`

List credentials with cursor pagination.

**Risk:** `read`

```ts theme={null}
await corsair.certifier.api.credentials.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `data` | `object[]` | Yes | — |
| `pagination` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   publicId?: string,
>   groupId?: string,
>   status?: string,
>   recipient?: {
>     id?: string,
>     name?: string,
>     email?: string
>   },
>   issueDate?: string | null,
>   expiryDate?: string | null,
>   attributes?: Record<string, string | null>,
>   customAttributes?: Record<string, string | null>,
>   createdAt?: string,
>   updatedAt?: string
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   prev?: string | null,
>   next?: string | null
> }
> ```

***

### search

`credentials.search`

Search credentials with AND/OR/NOT filters, sort, and pagination.

**Risk:** `read`

```ts theme={null}
await corsair.certifier.api.credentials.search({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `filter` | `Record<string, any>` | Yes | — |
| `sort` | `object` | No | — |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

> [accordion] sort full type
>
> ```ts theme={null}
> {
>   property: id | createdAt | updatedAt | issueDate | expiryDate,
>   order: asc | desc
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `data` | `object[]` | Yes | — |
| `pagination` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   publicId?: string,
>   groupId?: string,
>   status?: string,
>   recipient?: {
>     id?: string,
>     name?: string,
>     email?: string
>   },
>   issueDate?: string | null,
>   expiryDate?: string | null,
>   attributes?: Record<string, string | null>,
>   customAttributes?: Record<string, string | null>,
>   createdAt?: string,
>   updatedAt?: string
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   prev?: string | null,
>   next?: string | null
> }
> ```

***

### send

`credentials.send`

Send an issued credential by email.

**Risk:** `write`

```ts theme={null}
await corsair.certifier.api.credentials.send({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `deliveryMethod` | `email` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `publicId` | `string` | No | — |
| `groupId` | `string` | No | — |
| `status` | `string` | No | — |
| `recipient` | `object` | No | — |
| `issueDate` | `string \| null` | No | — |
| `expiryDate` | `string \| null` | No | — |
| `attributes` | `Record<string, string \| null>` | No | — |
| `customAttributes` | `Record<string, string \| null>` | No | — |
| `createdAt` | `string` | No | — |
| `updatedAt` | `string` | No | — |

> [accordion] recipient full type
>
> ```ts theme={null}
> {
>   id?: string,
>   name?: string,
>   email?: string
> }
> ```

***

## Designs

### list

`designs.list`

List certificate and badge design templates.

**Risk:** `read`

```ts theme={null}
await corsair.certifier.api.designs.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `data` | `object[]` | Yes | — |
| `pagination` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string,
>   type?: string,
>   previewUrl?: string | null,
>   createdAt?: string,
>   updatedAt?: string
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   prev?: string | null,
>   next?: string | null
> }
> ```

***

## Email Templates

### list

`emailTemplates.list`

List email templates used for credential delivery.

**Risk:** `read`

```ts theme={null}
await corsair.certifier.api.emailTemplates.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `data` | `object[]` | Yes | — |
| `pagination` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string,
>   subject?: string
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   prev?: string | null,
>   next?: string | null
> }
> ```

***

## Groups

### list

`groups.list`

List credential templates (groups) with pagination.

**Risk:** `read`

```ts theme={null}
await corsair.certifier.api.groups.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `data` | `object[]` | Yes | — |
| `pagination` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string,
>   designIds?: string[],
>   certificateDesignId?: string | null,
>   badgeDesignId?: string | null,
>   emailTemplateId?: string | null,
>   createdAt?: string,
>   updatedAt?: string
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   prev?: string | null,
>   next?: string | null
> }
> ```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.