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

# Create a new evidence source record.

> **Required scope:** write

**Required scope:** `write`

### Request body

`CreateSourceRequest`

**locator** `string` *required*

**metadata** `object`

**snippet** `string`

**source\_type** `string` *required*

**trust\_tag** `string`

### Response

`EvidenceSourceRecord`

**actor** `string` *required*

**created\_at** `string (date-time)` *required*

**id** `string` *required*

**locator** `string` *required*

**metadata** `object` *required*

**org\_id** `string`

**snippet** `string`

**source\_type** `string` *required*

**trust\_tag** `string`

**updated\_at** `string (date-time)` *required*

### Status codes

| Code | Meaning |
| - | - |
| `201` | Source created |
| `400` | Invalid source payload |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

```bash cURL theme={null}
curl --request POST \
  --url 'https://api.nsr.stateset.com/api/v1/sources' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "locator": "string",
  "metadata": {},
  "snippet": "string",
  "source_type": "string",
  "trust_tag": "string"
}'
```

```json 201 theme={null}
{
  "actor": "string",
  "created_at": "2026-08-31T14:22:05Z",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "locator": "string",
  "metadata": {},
  "org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "snippet": "string",
  "source_type": "string",
  "trust_tag": "string",
  "updated_at": "2026-08-31T14:22:05Z"
}
```


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