(zettel (meta (box-name "manual") (created "20210126175322") (modified "20260605142323") (role "manual") (syntax "zmk") (tags "#api #manual #reference #zettelstore") (title "Endpoints used by the API")) (rights read) (content "" "All API endpoints conform to the pattern ''[PREFIX]LETTER[/ZETTEL-ID]'', where:\n; ''PREFIX''\n: is the URL prefix (default: \"\"/\"\"), configured via the ''url-prefix'' [[startup configuration|00001004010000]],\n; ''LETTER''\n: is a single letter that specifies the resource type,\n; ''ZETTEL-ID''\n: is an optional 14-digit string that uniquely [[identifies a zettel|00001006050000]].\n\nThe following letters are currently in use:\n\n|= Letter:| Without zettel identifier | With [[zettel identifier|00001006050000]] | Mnemonic\n| ''a'' | POST: [[client authentication|00001012050200]] | | **A**uthenticate\n| | PUT: [[renew access token|00001012050400]] |\n| ''r'' | | GET: [[references|00001012053800]] | **R**eference\n| ''x'' | GET: [[retrieve administrative data|00001012070500]] | | E**x**ecute\n| | POST: [[execute command|00001012080100]]\n| ''z'' | GET: [[list zettel|00001012051200]]/[[query zettel|00001012051400]] | GET: [[retrieve zettel|00001012053300]] | **Z**ettel\n| | POST: [[create new zettel|00001012053200]] | PUT: [[update zettel|00001012054200]]\n| | | DELETE: [[delete zettel|00001012054600]]\n\nThe full URL will contain either the \"\"http\"\" or \"\"https\"\" scheme, a host name, and an optional port number.\n\nThe API examples will assume the \"\"http\"\" schema, the local host \"\"127.0.0.1\"\", the default port \"\"23123\"\", and the default empty ''PREFIX'' \"\"/\"\".\nTherefore, all URLs in the API documentation will begin with \"\"http://127.0.0.1:23123/\"\"."))