{"id":4778,"date":"2026-03-30T08:36:18","date_gmt":"2026-03-30T08:36:18","guid":{"rendered":"https:\/\/tinyurl.com\/blog\/?p=4778"},"modified":"2026-04-07T15:54:01","modified_gmt":"2026-04-07T15:54:01","slug":"how-create-modify-api-token","status":"publish","type":"post","link":"https:\/\/tinyurl.com\/blog\/how-create-modify-api-token\/","title":{"rendered":"How to Create or Modify an API Token With Specific Permissions?"},"content":{"rendered":"\n<p style=\"font-size:16px\">Here are the instructions on how to create an API token with specific permissions:<\/p>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol class=\"wp-block-list\">\n<li style=\"font-size:16px\">Login to your account.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">Go to\u00a0<a href=\"https:\/\/tinyurl.com\/app\/settings\/api\" target=\"_blank\" rel=\"noreferrer noopener\">Profile > API<\/a><\/li>\n<\/ol>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">Next step is to create a token by entering Token Name and allow at least permissions for your use case. The general guideline is that permissions should be as restrictive as possible for information security reasons. For example, you can create an API token which can be used to create, update, change and delete a TinyURL by checking the relevant checkboxes as shown in the below screenshot<\/li>\n<\/ol>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/malcolm-en-gb.s3.eu-west-1.amazonaws.com\/instances\/n9sEghF2ZC\/resources\/COtAod6zdF\/Settings%20-%20API%20-%20Token%20Management.png\" alt=\"Settings - API - Token Management\" width=\"60%\"><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">Click \u201cCreate Token\u201d to create an API token with the selected permissions. This will result in the following pop up on the right with the API token shown.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/malcolm-en-gb.s3.eu-west-1.amazonaws.com\/instances\/n9sEghF2ZC\/resources\/zBTxyI2OFR\/Settings%20-%20API%20Token%20Slider.png\" alt=\"Settings - API Token Slider\" width=\"60%\"><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">You need to copy the API token and save it in safe space so that it can be used when needed. Please note that if your API token is compromised, it can be used to manage your TinyURLs so pay special attention to keep it private.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">It is possible to modify the permissions or delete the API token from the same page. To do any of these, please click on the gear icon button in front of every token on the right.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/malcolm-en-gb.s3.eu-west-1.amazonaws.com\/instances\/n9sEghF2ZC\/resources\/sTXXWfFwuq\/Settings%20-%20API%20-%20Edit%20Token.png\" alt=\"Settings - API - Edit Token\" width=\"80%\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are the instructions on how to create an API token with specific permissions:<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[67],"class_list":["post-4778","post","type-post","status-publish","format-standard","hentry","category-help","tag-api-help"],"_links":{"self":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts\/4778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/comments?post=4778"}],"version-history":[{"count":5,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts\/4778\/revisions"}],"predecessor-version":[{"id":4813,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts\/4778\/revisions\/4813"}],"wp:attachment":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/media?parent=4778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/categories?post=4778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/tags?post=4778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}