# Create a certificate share link

> POST /v1/certificates/{id}/share creates a time-limited share link that opens an issued certificate without an account and returns its URL once.

Source: https://esigncomply.com/docs/api/certificates/create-a-certificate-share-link

Last updated November 26, 2026

In the Esign Comply API, `POST /v1/certificates/{id}/share` creates a time-limited share link that opens an issued certificate without an account and returns its URL once. Use it to give a court, an auditor or a counterparty access to one certificate without signing in.

`POST /v1/certificates/{id}/share` · API version `2026-11-21`

## Authentication

Send a secret key in the `Authorization` header: `Bearer $ESIGNCOMPLY_API_KEY`. The key needs `full_access` permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under [Authentication](https://esigncomply.com/docs/api.md#authentication).

## Request example

### cURL

```bash
curl https://esigncomply.com/v1/certificates/crt_7Hd2/share \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "expires_in": 2592000
  }'
```

### Node SDK

```ts
import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

const { data, error } = await esc.certificates.share("crt_7Hd2", { expires_in: 2592000 });
```

This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with `...`.

## What it does

Creates a link that opens the certificate and runs verification without an account, for a court, an auditor or a counterparty. The link carries an access secret in the URL fragment. Every open is counted for you. Without the file or the secret, a certificate ID reveals nothing. Opening and verifying is free for everyone.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | Yes | ID of the certificate. |

### Body fields

| Field | Type | Required | Description |
|---|---|---|---|
| `expires_in` | integer | No | Lifetime in seconds, 60 to 7,776,000 (90 days). Default 2,592,000 (30 days). |

The URL is shown once. This response is not kept for idempotent replay, so a repeat creates another link.

Headers: `Idempotency-Key` (optional, up to 255 characters) and `Esign-Comply-Version` (optional, a dated API version). See [API conventions](https://esigncomply.com/docs/api.md).

## Response

`201 Created` with a CertificateShare object.

```json
{
  "object": "certificate_share",
  "certificate_id": "crt_7Hd2",
  "id": "shr_2Vk8",
  "share_url": "https://esigncomply.com/verify/c/crt_7Hd2#MKqvw4...",
  "share_expires_at": "2026-12-26T00:17:09.330Z"
}
```

### Response fields

| Field | Type | Description |
|---|---|---|
| `object` | string |  |
| `id` | string |  |
| `certificate_id` | string |  |
| `share_url` | string |  |
| `share_expires_at` | datetime |  |
| `revoked` | integer |  |

## Errors

| Code | HTTP | When |
|---|---|---|
| [`invalid_request`](https://esigncomply.com/docs/api/errors.md#invalid_request) | 400 | Only an issued certificate can be shared. |
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | No such certificate. |

Like every call made with a secret key, it can also return [`missing_api_key`](https://esigncomply.com/docs/api/errors.md#missing_api_key), [`invalid_api_key`](https://esigncomply.com/docs/api/errors.md#invalid_api_key), [`domain_not_verified`](https://esigncomply.com/docs/api/errors.md#domain_not_verified), [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission), [`idempotency_conflict`](https://esigncomply.com/docs/api/errors.md#idempotency_conflict), [`region_mismatch`](https://esigncomply.com/docs/api/errors.md#region_mismatch), [`rate_limit_exceeded`](https://esigncomply.com/docs/api/errors.md#rate_limit_exceeded) and [`internal_error`](https://esigncomply.com/docs/api/errors.md#internal_error).

Every error has the same body: `error.type`, `error.code`, `error.message`, `error.doc_url` and `error.request_id`. See [Errors](https://esigncomply.com/docs/api/errors.md).

## Questions about POST /v1/certificates/{id}/share

### Which credential does POST /v1/certificates/{id}/share need?

A secret key with full_access permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.

### Does POST /v1/certificates/{id}/share work with a test key?

Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.

### Does POST /v1/certificates/{id}/share count as a signature event?

No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.

### Is POST /v1/certificates/{id}/share idempotent?

No. The response shows a secret once, so it is not kept for a replay. A repeat with the same Idempotency-Key runs again and creates another object.

### What is the rate limit for POST /v1/certificates/{id}/share?

The limit is counted for each key and depends on the plan: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

### Does the Node SDK have a method for POST /v1/certificates/{id}/share?

Yes: esc.certificates.share() in the esigncomply package. It resolves to { data, error } and does not throw.

## Related

- [Certificates](https://esigncomply.com/docs/api/certificates.md): the overview of the resource and all of its operations.
- [Revoke certificate share links](https://esigncomply.com/docs/api/certificates/revoke-certificate-share-links.md): `DELETE /v1/certificates/{id}/share`
- [Open a shared certificate](https://esigncomply.com/docs/api/certificates/open-a-shared-certificate.md): `POST /v1/certificate-shares/{id}`
- [Issue a certificate for one record](https://esigncomply.com/docs/api/certificates/issue-a-certificate-for-one-record.md): `POST /v1/records/{id}/certificates`
- [Issue a certificate for a set of records](https://esigncomply.com/docs/api/certificates/issue-a-certificate-for-a-set-of-records.md): `POST /v1/certificates`
- [Certificates](https://esigncomply.com/docs/guides/certificates.md)
- [Errors](https://esigncomply.com/docs/api/errors.md): every error code, with what to do.
- [API conventions](https://esigncomply.com/docs/api.md): authentication, idempotency, rate limits and versioning.
