(zettel (meta (back "00001012000000 00001012080500") (backward "00001012000000 00001012080500") (box-number "1") (created "20210126175322") (forward "00001012050200 00001012921000") (modified "20220218130020") (published "20220218130020") (role "manual") (syntax "zmk") (tags "#api #manual #zettelstore") (title "API: Provide an access token")) (rights 4) (encoding "") (content "The [[authentication process|00001012050200]] provides you with an [[access token|00001012921000]].\nMost API calls need such an access token, so that they know the identity of the caller.\n\nYou send the access token in the \"\"Authorization\"\" request header field, as described in [[RFC 6750, section 2.1|https://tools.ietf.org/html/rfc6750#section-2.1]].\nYou need to use the \"\"Bearer\"\" authentication scheme to transmit the access token.\n\nFor example (in plain text HTTP):\n```\nGET /z HTTP/1.0\nAuthorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJfdGsiOjEsImV4cCI6MTYwMTczMTI3NSwiaWF0IjoxNjAxNzMwNjc1LCJzdWIiOiJhYmMiLCJ6aWQiOiIyMDIwMTAwMzE1MDEwMCJ9.ekhXkvn146P2bMKFQcU-bNlvgbeO6sS39hs6U5EKfjIqnSInkuHYjYAIfUqf_clYRfr6YBlX5izii8XfxV8jhg\n```\nNote, that there is exactly one space character (\"\"'' ''{-}\"\", U+0020) between the string \"\"Bearer\"\" and the access token: ``Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.ey...``{-}.\n\nIf you use the [[curl|https://curl.haxx.se/]] tool, you can use the ''-H'' command line parameter to set this header field."))