# createFormContactLink

A link to an ACTIVE form for one contact, opening prefilled with their details; their answers land on their contact. url for an email's link, shortUrl for a text.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "createFormContactLink", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `formId`: `ID!` (required)
- `contactId`: `ID!` (required)

## Response (data, an example)

```json
{
  "embedFormMutation": {
    "createContactLink": {
      "id": "<ID>",
      "url": "…",
      "shortUrl": "…",
      "formName": "…",
      "prefill": true,
      "prefillFieldCount": 0
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "createFormContactLink",
    "variables": {
      "formId": "<formId>",
      "contactId": "<contactId>"
    }
  }'
```
