{"id":18693,"date":"2026-07-10T03:16:25","date_gmt":"2026-07-10T09:16:25","guid":{"rendered":"https:\/\/prettylinks.com\/?post_type=ht_kb&#038;p=18693"},"modified":"2026-07-20T05:36:21","modified_gmt":"2026-07-20T11:36:21","slug":"api-keys","status":"publish","type":"ht_kb","link":"https:\/\/prettylinks.com\/es\/docs\/api-keys\/","title":{"rendered":"Claves de API"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><em>Disponible en el plan Marketer y superiores.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The API key is the password your other tools use to talk to your Pretty Links REST API. Your site has one API key \u2014 generated automatically when Developer Tools is activated, and you can regenerate it any time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Esta gu\u00eda forma parte de la <a href=\"https:\/\/prettylinks.com\/es\/docs\/pretty-link-developer-tools-add-on-overview\/\">Descripci\u00f3n general del complemento \u00abPretty Links Developer Tools\u00bb<\/a>, the entry point for the Developer Tools add-on.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a5f8c959eef1&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a5f8c959eef1\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1000\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png\" alt=\"Pretty Links Developer Tools \u2014 API keys and webhooks\" class=\"wp-image-18692\" srcset=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png 1600w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-300x188.png 300w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1024x640.png 1024w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-768x480.png 768w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-50x31.png 50w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1536x960.png 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"finding-and-copying-your-key\"><a href=\"#finding-and-copying-your-key\">Finding and Copying Your Key<\/a><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the WordPress admin, go to <strong>Dashboard &gt; Pretty Links &gt; Developer Tools<\/strong>.<\/li>\n<li>Abre el <strong>API Key<\/strong> secci\u00f3n.<\/li>\n<li>Your current key is displayed on screen. Click <strong>Copy<\/strong> to copy it to your clipboard.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The key is a 10-character alphanumeric string (mix of upper-case, lower-case, and digits). Paste it into whichever tool needs to call the API.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a5f8c959f2e6&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a5f8c959f2e6\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1000\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png\" alt=\"Pretty Links Developer Tools \u2014 API keys and webhooks\" class=\"wp-image-18692\" srcset=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png 1600w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-300x188.png 300w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1024x640.png 1024w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-768x480.png 768w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-50x31.png 50w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1536x960.png 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sending-the-key-on-a-request\"><a href=\"#sending-the-key-on-a-request\">Sending the Key on a Request<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The REST API accepts the key in either of two HTTP headers:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>PRLI-API-KEY: yourkeyhere<\/code>;<\/li>\n<li><code>Authorization: yourkeyhere<\/code>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Most tools have a field labeled &#8220;API Key&#8221; or &#8220;Authorization&#8221; \u2014 paste your key there. The in-app <strong>Docs<\/strong> tab (in <strong>Dashboard &gt; Pretty Links &gt; Developer Tools &gt; Docs<\/strong>) shows the exact header format and a curl example you can copy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"storing-the-key-safely\"><a href=\"#storing-the-key-safely\">Storing the Key Safely<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Treat the API key like a password:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Don't paste it into public places<\/strong> like Slack channels, support tickets, or GitHub issues. Anyone with the key can read and modify your Pretty Links;<\/li>\n<li><strong>Store it in a password manager<\/strong> or your team's secrets vault. Don't write it on a sticky note;<\/li>\n<li><strong>Don't commit it to a repository.<\/strong> If your integration code lives in git, read the key from an environment variable or a secrets manager \u2014 never hard-code it.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"regenerating-the-key\"><a href=\"#regenerating-the-key\">Regenerating the Key<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the key is leaked, lost, or you want a fresh one, regenerate it:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ir a <strong>Dashboard &gt; Pretty Links &gt; Developer Tools<\/strong>.<\/li>\n<li>En el <strong>API Key<\/strong> section, click <strong>Regenerate<\/strong>.<\/li>\n<li>Confirm the action.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Regeneration immediately invalidates the old key and replaces it with a new one. Any system still using the old key will start getting authentication errors \u2014 update those systems with the new key as soon as possible.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a5f8c959f8b2&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a5f8c959f8b2\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1000\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png\" alt=\"Pretty Links Developer Tools \u2014 API keys and webhooks\" class=\"wp-image-18692\" srcset=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png 1600w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-300x188.png 300w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1024x640.png 1024w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-768x480.png 768w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-50x31.png 50w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1536x960.png 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"when-to-regenerate\"><a href=\"#when-to-regenerate\">When to Regenerate<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You should rotate or regenerate the key when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An employee with access to the key leaves the team;<\/li>\n<li>The key was accidentally posted somewhere it shouldn't have been;<\/li>\n<li>An integration is being decommissioned and you want to lock it out;<\/li>\n<li>You're following a periodic rotation policy (every 90 or 180 days, for example).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">There's no &#8220;wrong&#8221; reason to regenerate. If you have any doubt about whether the key is still secure, regenerate it.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a5f8c959fc44&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a5f8c959fc44\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1000\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png\" alt=\"Pretty Links Developer Tools \u2014 API keys and webhooks\" class=\"wp-image-18692\" srcset=\"https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools.png 1600w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-300x188.png 300w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1024x640.png 1024w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-768x480.png 768w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-50x31.png 50w, https:\/\/prettylinks.com\/wp-content\/uploads\/2026\/07\/developer-tools-1536x960.png 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"one-key-per-site\"><a href=\"#one-key-per-site\">One Key Per Site<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Developer Tools uses a single API key for the whole site rather than per-integration keys. That keeps the admin simple, but it does mean rotating the key affects every integration at once \u2014 so plan a rotation when you can update all your downstream tools (Zapier, scripts, dashboards) in the same session.<\/p>","protected":false},"excerpt":{"rendered":"<p>Available on the Marketer plan and above. The API key is the password your other tools use to talk to your Pretty Links REST API. Your site has one API key \u2014 generated automatically when Developer Tools is activated, and you can regenerate it any time. This guide is part of the Pretty Links Developer&hellip;<\/p>","protected":false},"author":34280,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[716],"ht-kb-tag":[],"class_list":["post-18693","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-developer-tools"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/ht-kb\/18693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/users\/34280"}],"replies":[{"embeddable":true,"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/comments?post=18693"}],"version-history":[{"count":1,"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/ht-kb\/18693\/revisions"}],"predecessor-version":[{"id":18918,"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/ht-kb\/18693\/revisions\/18918"}],"wp:attachment":[{"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/media?parent=18693"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=18693"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/prettylinks.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=18693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}