> For the complete documentation index, see [llms.txt](https://docs.delos.financial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.delos.financial/compliance/get-compliance-link.md).

# Get Compliance Link

Generates a temporary, single-use URL for a customer to access the compliance web SDK. This URL allows customers to complete KYC/KYB (Know Your Customer/Business), AML (Anti-Money Laundering), and other compliance verification processes through a secure, hosted interface.

**Endpoint**

`GET/v2/compliance/{customerId}/web_sdk_link`

**Link**

{% embed url="<https://stagep.tst-apidmndelss.com/openapi/v2.html#/operations/Customer_GetWebSDKLink#Request>" %}

### **Request**

#### **Path Parameters**

| Parameter        | Type     | Description                                  | Required | Example                       |
| ---------------- | -------- | -------------------------------------------- | -------- | ----------------------------- |
| **`customerId`** | `string` | **Customer ID** for compliance verification. | Yes      | `"DCalXLc-KRLb-ICUZ4pnjWNvo"` |

#### **Headers**

| Key             | Value              | Required |
| --------------- | ------------------ | -------- |
| `Authorization` | `Bearer <JWT>`     | Yes      |
| `Accept`        | `application/json` | Yes      |

***

### **Response (200 OK)**

Returns a temporary compliance link with its expiration time.

#### **Response Fields**

| Field              | Type      | Description                                                         | Example                                          |
| ------------------ | --------- | ------------------------------------------------------------------- | ------------------------------------------------ |
| **`ttlInSeconds`** | `integer` | **Time-to-live** (seconds until link expires).                      | `3600` (60 minutes)                              |
| **`url`**          | `string`  | **Temporary compliance URL** for customer to complete verification. | `"https://compliance.example.com/sdk/abc123xyz"` |

**Example Response:**

json

```
{
  "ttlInSeconds": 900,
  "url": "https://compliance.example.com/sdk/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
```

***

### **Examples**

#### **Request**

```
curl -X GET 'https://stagep.tst-apidmndelss.com/v2/compliance/DCalXLc-KRLb-ICUZ4pnjWNvo/web_sdk_link' \
  -H 'Authorization: Bearer eyJhbGci...wNLGA' \
  -H 'Accept: application/json'
```

#### **Response**&#x20;

```
{
  "ttlInSeconds": 3600,
  "url": "https://in.sumsub.com/websdk/p/sbx_HNwutCtvO7FI5Xtc"
}
```

***

### **Error Responses**

**Customer Not Found**:

```
{ "error": "Customer not found: DCalXLc-NRLb-ICUZ4pnjWNvo" }
```

**Authorization fail**

```
{ "error": "Unauthorized" }
```

***

### **Compliance Link Usage**

The generated URL typically provides access to a hosted compliance form where customers can:

* **Upload Identity Documents** (passport, driver's license, etc.)
* **Enter Personal Information** (address, date of birth, etc.)
* **Complete Questionnaire** (source of funds, beneficial ownership, etc.)
* **Submit Proof of Address** (utility bills, bank statements, etc.)
* **Verify Business Details** (for corporate accounts)

***

### **Notes**

* **Single-Use**: Links are typically designed for single use and expire after the TTL period
* **Session Management**: Opening the link starts a compliance verification session
* **Status Tracking**: Compliance status can be monitored via customer status
* **Security**: The URL contains encrypted tokens; do not share it publicly
* **Reusability**: Generate a new link if the previous one expires

**Typical Workflow**:

1. Customer requests compliance verification
2. System generates a temporary compliance link
3. Customer clicks link → Completes compliance form
4. System processes submitted information
5. Customer status updates (e.g., `MODERATED` → `ACCEPTED`)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.delos.financial/compliance/get-compliance-link.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
