{"id":445402,"date":"2026-10-28T11:01:08","date_gmt":"2026-10-28T10:01:08","guid":{"rendered":"https:\/\/www.kafinea.com\/documentation\/uncategorized\/rest-api-action-links\/"},"modified":"2026-11-22T17:48:36","modified_gmt":"2026-11-22T16:48:36","password":"","slug":"rest-api-action-links","status":"publish","type":"docs","link":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/","title":{"rendered":"REST API &#8211; Action links"},"content":{"rendered":"<p>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 <strong>Confirm<\/strong>, once, for 30 days. Detailed operation: <a href=\"https:\/\/www.kafinea.com\/fr\/documentation\/automatisation\/liens-action-emails\/\">Action links in emails<\/a>.<\/p>\n<p>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).<\/p>\n<h2>List possible actions<\/h2>\n<blockquote>\n<p><strong>GET<\/strong> <code>https:\/\/apps.kafinea.com\/{instance}\/webservice.php<\/code><\/p>\n<\/blockquote>\n<div style=\"overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>operation<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td><code>action_link_actions<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>sessionName<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td>Session ID<\/td>\n<\/tr>\n<tr>\n<td><code>module<\/code><\/td>\n<td>string<\/td>\n<td>no<\/td>\n<td>Module of the targeted records, for example <code>Quotes<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre><code class=\"language-bash\">curl \"https:\/\/apps.kafinea.com\/YourKafinea\/webservice.php?operation=action_link_actions&sessionName=YOUR_SESSION_ID&module=Quotes\"\n<\/code><\/pre>\n<p>The response contains <code>actions<\/code> (module, action, label, attributes, lifespan in days; <code>*<\/code> denotes an action available on all modules). With <code>module<\/code>, it also contains <code>settableFields<\/code>: the drop-down lists and checkboxes that you can have modified via a link, along with their values.<\/p>\n<h2>Create a link<\/h2>\n<blockquote>\n<p><strong>POST<\/strong> <code>https:\/\/apps.kafinea.com\/{instance}\/webservice.php<\/code><\/p>\n<\/blockquote>\n<div style=\"overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>operation<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td><code>action_link_create<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>sessionName<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td>Session ID<\/td>\n<\/tr>\n<tr>\n<td><code>id<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td>Webservice ID of the record<\/td>\n<\/tr>\n<tr>\n<td><code>action<\/code><\/td>\n<td>string<\/td>\n<td>yes<\/td>\n<td>Action to propose, for example <code>set-field<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>attributes<\/code><\/td>\n<td>JSON<\/td>\n<td>depending on the action<\/td>\n<td>For <code>set-field<\/code>: <code>field<\/code>, <code>value<\/code> and, optionally, a short <code>question<\/code> displayed on the page<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre><code class=\"language-bash\">curl -X POST https:\/\/apps.kafinea.com\/YourKafinea\/webservice.php \\\n  -d \"operation=action_link_create\" \\\n  -d \"sessionName=YOUR_SESSION_ID\" \\\n  -d \"id=4x1234\" \\\n  -d \"action=set-field\" \\\n  --data-urlencode 'attributes={\"field\":\"quotestage\",\"value\":\"Accepted\",\"question\":\"Acceptez-vous ce devis ?\"}'\n<\/code><\/pre>\n<pre><code class=\"language-json\">{\n  \"success\": true,\n  \"result\": {\n    \"url\": \"https:\/\/apps.kafinea.com\/YourKafinea\/shorturl.php?id=9f2c\u2026\",\n    \"expiresAt\": \"2026-11-24T10:00:00+00:00\",\n    \"module\": \"Quotes\",\n    \"action\": \"set-field\",\n    \"id\": \"4x1234\"\n  }\n}\n<\/code><\/pre>\n<p>Creating the link does not modify the record. Provide the address only to its recipient: anyone who holds it can confirm the action.<\/p>\n<h2>Rules and errors<\/h2>\n<ul>\n<li><code>value<\/code> must be a value from the list (the saved value, <code>Accepted<\/code>, and not the displayed label) or <code>1<\/code> \/ <code>0<\/code> for a checkbox.<\/li>\n<li>The targeted record is always that of <code>id<\/code>: <code>attributes<\/code> cannot change it.<\/li>\n<li>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 <code>ACTION_LINK_INVALID<\/code>.<\/li>\n<li>Without read permissions on the record, the response is <code>ACCESS_DENIED<\/code>.<\/li>\n<\/ul>\n<h2>Related References<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.kafinea.com\/fr\/documentation\/automatisation\/liens-action-emails\/\">Action links in emails<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-full-reference-openapi\/\">Full API Reference<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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. A link never grants more&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"doc_category":[759],"doc_tag":[],"class_list":["post-445402","docs","type-docs","status-publish","hentry","doc_category-api"],"year_month":"2026-11","word_count":434,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"David Valminos","author_nicename":"david","author_url":"https:\/\/www.kafinea.com\/en\/author\/david\/"},"doc_category_info":[{"term_name":"API","term_url":"https:\/\/www.kafinea.com\/en\/help\/api\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Help - REST API - Action links &#8226; Kafinea<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Help - REST API - Action links &#8226; Kafinea\" \/>\n<meta property=\"og:description\" content=\"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. A link never grants more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/\" \/>\n<meta property=\"og:site_name\" content=\"Kafinea\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-22T16:48:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-action-links\\\/\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-action-links\\\/\",\"name\":\"Help - REST API - Action links &#8226; Kafinea\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#website\"},\"datePublished\":\"2026-10-28T10:01:08+00:00\",\"dateModified\":\"2026-11-22T16:48:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-action-links\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-action-links\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-action-links\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"REST API &#8211; Action links\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\",\"name\":\"Kafinea\",\"description\":\"Une solution unique pour toutes vos ambitions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#organization\",\"name\":\"Kafinea\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Logo-Kafinea-SVG-orange-bleu.svg\",\"contentUrl\":\"https:\\\/\\\/www.kafinea.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Logo-Kafinea-SVG-orange-bleu.svg\",\"width\":296.31,\"height\":66.48,\"caption\":\"Kafinea\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/kafinea\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Help - REST API - Action links &#8226; Kafinea","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/","og_locale":"en_US","og_type":"article","og_title":"Help - REST API - Action links &#8226; Kafinea","og_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, once, for 30 days. Detailed operation: Action links in emails. A link never grants more...","og_url":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/","og_site_name":"Kafinea","article_modified_time":"2026-11-22T16:48:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/","url":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/","name":"Help - REST API - Action links &#8226; Kafinea","isPartOf":{"@id":"https:\/\/www.kafinea.com\/en\/#website"},"datePublished":"2026-10-28T10:01:08+00:00","dateModified":"2026-11-22T16:48:36+00:00","breadcrumb":{"@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-action-links\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.kafinea.com\/en\/"},{"@type":"ListItem","position":2,"name":"REST API &#8211; Action links"}]},{"@type":"WebSite","@id":"https:\/\/www.kafinea.com\/en\/#website","url":"https:\/\/www.kafinea.com\/en\/","name":"Kafinea","description":"Une solution unique pour toutes vos ambitions","publisher":{"@id":"https:\/\/www.kafinea.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kafinea.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.kafinea.com\/en\/#organization","name":"Kafinea","url":"https:\/\/www.kafinea.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kafinea.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.kafinea.com\/wp-content\/uploads\/2024\/10\/Logo-Kafinea-SVG-orange-bleu.svg","contentUrl":"https:\/\/www.kafinea.com\/wp-content\/uploads\/2024\/10\/Logo-Kafinea-SVG-orange-bleu.svg","width":296.31,"height":66.48,"caption":"Kafinea"},"image":{"@id":"https:\/\/www.kafinea.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/kafinea\/"]}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"David Valminos","author_link":"https:\/\/www.kafinea.com\/en\/author\/david\/"},"uagb_comment_info":0,"uagb_excerpt":"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. A link never grants more...","_links":{"self":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs\/445402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/comments?post=445402"}],"version-history":[{"count":0,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs\/445402\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/media?parent=445402"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/doc_category?post=445402"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/doc_tag?post=445402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}