{"id":263,"date":"2023-06-09T10:46:06","date_gmt":"2023-06-09T10:46:06","guid":{"rendered":"https:\/\/developers.10npay.com\/?post_type=docs&#038;p=99"},"modified":"2023-06-09T10:46:06","modified_gmt":"2023-06-09T10:46:06","password":"","slug":"device-authorization-endpoint","status":"publish","type":"docs","link":"https:\/\/developers.10npay.com\/bg\/docs\/device-authorization-endpoint\/","title":{"rendered":"Device Authorization Endpoint"},"content":{"rendered":"<p class=\"wp-block-paragraph\">The device authorization endpoint can be used to request device and user codes. This endpoint is used to start the device flow authorization process.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Parameters.2\">Parameters<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"client_id.1\">client_id<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">client identifier (required)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"client_secret.1\">client_secret<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">client secret either in the post body, or as a basic authentication header. Optional.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"scope.1\">scope<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">one or more registered scopes. If not specified, a token for all explicitly allowed scopes will be issued.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Sample-Request.2\">Sample Request<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>POST <a href=\"https:\/\/auth.10npay.com\/connect\/deviceauthorization\">https:\/\/auth.10npay.com\/connect\/deviceauthorization<\/a>&nbsp;&nbsp;&nbsp; client_id=client1&amp;<br>&nbsp;&nbsp;&nbsp; client_secret=secret&amp;<br>&nbsp;&nbsp;&nbsp; scope=openid api1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">(Form-encoding removed and line breaks added for readability)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Sample-Response.2\">Sample Response<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>HTTP\/1.1 200 OK<br>Content-Type: application\/json{<br>&nbsp;&nbsp; &#8220;id_token&#8221;:&#8221;eyJhbGcxxxxx.eyJuYxxxxx.NXDxxxxx&#8221;,<br>&nbsp;&nbsp; &#8220;access_token&#8221;:&#8221;eyJhxxxxx.eyJuYxxxxx.WRxxxxx&#8221;,<br>&nbsp;&nbsp; &#8220;expires_in&#8221;:3600,<br>&nbsp;&nbsp; &#8220;token_type&#8221;:&#8221;Bearer&#8221;,<br>&nbsp;&nbsp; &#8220;refresh_token&#8221;:&#8221;povbxxxxx&#8221;,<br>&nbsp;&nbsp; &#8220;scope&#8221;:&#8221;phone openid profile email xxxxx offline_access&#8221;<br>}<\/td><\/tr><\/tbody><\/table><\/figure>","protected":false},"excerpt":{"rendered":"<p>The device authorization endpoint can be used to request device and user codes. This endpoint is used to start the device flow authorization process. Parameters client_id client identifier (required) client_secret client secret either in the post body, or as a basic authentication header. Optional. scope one or more registered scopes. If not specified, a token [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[],"doc_tag":[],"knowledge_base":[33],"class_list":["post-263","docs","type-docs","status-publish","hentry","knowledge_base-10npay"],"year_month":"2026-07","word_count":146,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"","author_nicename":"","author_url":"https:\/\/developers.10npay.com\/bg\/author\/"},"doc_category_info":[],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"10npay","term_url":"https:\/\/developers.10npay.com\/bg\/docs\/10npay\/","term_slug":"10npay"}],"knowledge_base_slug":["10npay"],"_links":{"self":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/docs\/263\/revisions"}],"wp:attachment":[{"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_category?post=263"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/doc_tag?post=263"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/developers.10npay.com\/bg\/wp-json\/wp\/v2\/knowledge_base?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}