> ## 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`

<ParamField body="locator" type="string" required />

<ParamField body="metadata" type="object" />

<ParamField body="snippet" type="string" />

<ParamField body="source_type" type="string" required />

<ParamField body="trust_tag" type="string" />

### Response

`EvidenceSourceRecord`

<ResponseField name="actor" type="string" required />

<ResponseField name="created_at" type="string (date-time)" required />

<ResponseField name="id" type="string" required />

<ResponseField name="locator" type="string" required />

<ResponseField name="metadata" type="object" required />

<ResponseField name="org_id" type="string" />

<ResponseField name="snippet" type="string" />

<ResponseField name="source_type" type="string" required />

<ResponseField name="trust_tag" type="string" />

<ResponseField name="updated_at" type="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 |

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

<ResponseExample>
  ```json 201 theme={null}
  {
    "actor": "string",
    "created_at": "2026-07-24T12:00:00Z",
    "id": "string",
    "locator": "string",
    "metadata": {},
    "org_id": "string",
    "snippet": "string",
    "source_type": "string",
    "trust_tag": "string",
    "updated_at": "2026-07-24T12:00:00Z"
  }
  ```
</ResponseExample>
