# Quickstart

From a test key to a signed PDF in five minutes, without sending a real email.


## Get a test key {#key}

Every account has a test mode. Test keys start with `sk_test_`; nothing made with them is billed, emails go only to your own verified addresses, and the signed PDF carries a TEST watermark. Live keys start with `sk_live_`.

## Create and send a document {#create}

A document can start from Markdown. Fields are written in double braces; `@client` says which signer fills a field.

```bash
curl https://api2.sendforsign.com/v2/documents \
  -H "Authorization: Bearer $SENDFORSIGN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Photography agreement",
    "markdown": "# Photography agreement\n\nBetween **Lens & Light** and {{Client name@client}}.\n\n1. The fee is {{Fee:money}}.\n\nSigned: {{Signature@client:signature}}",
    "data": { "fee": { "amount": 320000, "currency": "EUR" } },
    "parties": [{ "role": "client", "name": "Anna Smith", "email": "sign@test.monoclan.ru" }],
    "send": true
  }'
```

`sign@test.monoclan.ru` is a [test recipient](@test-mode#recipients): about five seconds after it is notified, it signs by itself.

The same with the [Node SDK](@sdk):

```ts
import Sendforsign from '@monoclan/node';

const sfs = new Sendforsign(process.env.SENDFORSIGN_KEY!);
const doc = await sfs.documents.create({
  name: 'Photography agreement',
  markdown: '# Photography agreement\n\nBetween **Lens & Light** and {{Client name@client}}.',
  parties: [{ role: 'client', name: 'Anna Smith', email: 'sign@test.monoclan.ru' }],
  send: true,
});
```

## Start from a Word file {#word}

Upload the `.docx`, then create the document from the file. Markers typed in Word become fields; everything else stays as Word laid it out.

```ts
import { readFile } from 'node:fs/promises';

const file = await sfs.files.create({ file: await readFile('agreement.docx'), filename: 'agreement.docx' });
const doc = await sfs.documents.create({ file: file.id, parties: [{ role: 'client', email: 'sign@test.monoclan.ru' }] });
await sfs.documents.send(doc.id);
```

## Get the result {#result}

Listen for `document.completed` with a [webhook](@webhooks), or poll the document. Once completed:

```ts
const pdf = await sfs.documents.pdf(doc.id); // signed PDF with the certificate appended
const filled = (await sfs.documents.retrieve(doc.id)).fields; // every value, typed
```

## Next {#next}

- Show the signing screen in your product: [Sessions](@sessions), [React components](@components).
- Let an agent do this: [Agents and MCP](@agents).
