---
title: REST API – Action links
description: "An action link allows a recipient without an account to confirm a planned action on a record: accepting a quote, closing a ticket, or unsubscribing. The returned address opens a confirmation page; the record is only modified upon clicking **Confirm**,…"
url: "https://www.kafinea.com/en/help/api/rest-api-action-links/"
updated: "2026-11-22"
category: API
---

# REST API – Action links

An action link allows a recipient without an account to confirm a planned action on a record: accepting a quote, closing a ticket, or unsubscribing. The returned address opens a confirmation page; the record is only modified upon clicking **Confirm**, once, for 30 days. Detailed operation: [Action links in emails](https://www.kafinea.com/fr/documentation/automatisation/liens-action-emails/).

A link never grants more rights than its creator: you must be able to make the modification yourself, as you would on screen. This refers to the right to modify the record and the field, or, on a finalized quote, order, or invoice, the Partial field modification (the phase of a sent quote, for example).

## List possible actions

> **GET** `https://apps.kafinea.com/{instance}/webservice.php`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `operation` | string | yes | `action_link_actions` |
| `sessionName` | string | yes | Session ID |
| `module` | string | no | Module of the targeted records, for example `Quotes` |

```bash
curl "https://apps.kafinea.com/YourKafinea/webservice.php?operation=action_link_actions&sessionName=YOUR_SESSION_ID&module=Quotes"
```

The response contains `actions` (module, action, label, attributes, lifespan in days; `*` denotes an action available on all modules). With `module`, it also contains `settableFields`: the drop-down lists and checkboxes that you can have modified via a link, along with their values.

## Create a link

> **POST** `https://apps.kafinea.com/{instance}/webservice.php`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `operation` | string | yes | `action_link_create` |
| `sessionName` | string | yes | Session ID |
| `id` | string | yes | Webservice ID of the record |
| `action` | string | yes | Action to propose, for example `set-field` |
| `attributes` | JSON | depending on the action | For `set-field`: `field`, `value` and, optionally, a short `question` displayed on the page |

```bash
curl -X POST https://apps.kafinea.com/YourKafinea/webservice.php 
  -d "operation=action_link_create" 
  -d "sessionName=YOUR_SESSION_ID" 
  -d "id=4x1234" 
  -d "action=set-field" 
  --data-urlencode 'attributes={"field":"quotestage","value":"Accepted","question":"Acceptez-vous ce devis ?"}'
```

```json
{
  "success": true,
  "result": {
    "url": "https://apps.kafinea.com/YourKafinea/shorturl.php?id=9f2c…",
    "expiresAt": "2026-11-24T10:00:00+00:00",
    "module": "Quotes",
    "action": "set-field",
    "id": "4x1234"
  }
}
```

Creating the link does not modify the record. Provide the address only to its recipient: anyone who holds it can confirm the action.

## Rules and errors

- `value` must be a value from the list (the saved value, `Accepted`, and not the displayed label) or `1` / `0` for a checkbox.
- The targeted record is always that of `id`: `attributes` cannot change it.
- A request that the link could never execute (field not modifiable by link, unknown value, question too long) or that you could not perform yourself is rejected with code `ACTION_LINK_INVALID`.
- Without read permissions on the record, the response is `ACCESS_DENIED`.

## Related References

- [Action links in emails](https://www.kafinea.com/fr/documentation/automatisation/liens-action-emails/)
- [Full API Reference](https://www.kafinea.com/en/help/api/rest-api-full-reference-openapi/)
