update_site

PATCH /v1/kya/sites/{id} renames a site or replaces the origins it takes reports from.

Send name, origins or both. origins replaces the whole list; see Origins.

PATCH
/v1/kya/sites/{id}

Renames a site or replaces its origins: send name, origins or both. Its key stays the same. A change to its origins takes up to a minute to apply to reports.

Path parameters

FieldTypeDescription
idrequiredstring

The site's id.

Request body

application/json

FieldTypeDescription
namestring

A new name.

originsarray of string

Optional. The origins whose pages reports are taken from, each a scheme and host such as https://www.example.com; up to 20. With none, reports are taken from any page. See Origins.

Responses

The site, as changed.

FieldTypeDescription
idstring

The site's id, kst_….

namestring

Its name. Empty if none was given.

keystring

Its public key, gpk_…: the data-site of the script tag. Not a secret.

originsarray of string

The origins reports are taken from. Empty means any page.

snippetstring

The script tag to paste into your pages. Only when the site is created.

created_atstring

When the site was created.

request_idstring

req_…, the same as the X-Request-Id header.

Examples

curl -X PATCH 'https://api.finic.ai/v1/kya/sites/string' \  -H "Authorization: Bearer $FINIC_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "origins": [    "https://www.example.com",    "https://shop.example.com"  ]}'
Example Response
{  "id": "kst_01M4Z1X3G5P8D2F6J0YA4SMQNC",  "name": "Storefront",  "key": "gpk_Zk3vQ8mT1xR7bN2cYw5LpA9d",  "origins": [    "https://www.example.com",    "https://shop.example.com"  ],  "created_at": "2026-12-01T17:01:52.310447Z",  "request_id": "req_01M4Z2M1T6W9E3R7Y5VA8PKGHB"}