{"id":31711,"date":"2024-11-05T16:06:54","date_gmt":"2024-11-05T16:06:54","guid":{"rendered":"https:\/\/axosnet.info\/?post_type=docs&#038;p=31711"},"modified":"2025-04-16T22:46:24","modified_gmt":"2025-04-16T22:46:24","password":"","slug":"obtener-token-de-acceso","status":"publish","type":"docs","link":"https:\/\/axosnet.info\/es\/docs\/obtener-token-de-acceso\/","title":{"rendered":"Obtener Token de Acceso"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"31711\" class=\"elementor elementor-31711 elementor-25797\" data-elementor-post-type=\"docs\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ac37882 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ac37882\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8e6063a\" data-id=\"8e6063a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-072acfb elementor-widget elementor-widget-text-editor\" data-id=\"072acfb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">Para hacer el login se tiene que usar request al siguiente endpoint<\/span><\/p><table><tbody><tr><td><p><span style=\"font-weight: 400;\">https:\/\/devapi.axosnet.com\/acs\/user\/oauth\/token?scope=group\/access<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">M\u00e9todo <\/span><b>POST<\/b><\/p><\/td><\/tr><\/tbody><\/table><p><span style=\"font-weight: 400;\">El scope en el url es obligatorio<\/span><\/p><p><span style=\"font-weight: 400;\">El Client Id y Client Secret se pasa cifrados en base64 en un header Authorization con el siguiente formato<\/span><\/p><p><span style=\"font-weight: 400;\">clientId:clientSecret<\/span><\/p><p><span style=\"font-weight: 400;\">No es necesario pasar Client Id y Client Secret en texto plano, la API se encargar\u00e1 de obtener estos datos del cifrado.<\/span><\/p><table><tbody><tr><td><p><span style=\"font-weight: 400;\">Headers<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">Notas<\/span><\/p><\/td><\/tr><tr><td><p><span style=\"font-weight: 400;\">Authorization: Basic <\/span><i><span style=\"font-weight: 400;\">xxxxxxxxxx<\/span><\/i><\/p><\/td><td><p><i><span style=\"font-weight: 400;\">xxxxxxxxxx<\/span><\/i><span style=\"font-weight: 400;\"> es un hash en base64 que tiene el siguiente formato<\/span><\/p><p><b><i>clientId:clientSecret<\/i><\/b><\/p><\/td><\/tr><\/tbody><\/table><p>\u00a0<\/p><table><tbody><tr><td><p><span style=\"font-weight: 400;\">JSON respuesta<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">Notas<\/span><\/p><\/td><\/tr><tr><td><p><span style=\"font-weight: 400;\">{<\/span><\/p><p><span style=\"font-weight: 400;\">&#8220;access_token&#8221;: &#8220;token&#8221;<\/span><\/p><p><span style=\"font-weight: 400;\">}<\/span><\/p><\/td><td>\u00a0<\/td><\/tr><\/tbody><\/table><p>\u00a0<\/p><p><span style=\"font-weight: 400;\">Respuesta:<\/span><\/p><p>\u00a0<\/p><table><tbody><tr><td><p><span style=\"font-weight: 400;\">StatuCode<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">Mesage<\/span><\/p><\/td><\/tr><tr><td><p><span style=\"font-weight: 400;\">404<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">The client secret doesn&#8217;t exist or was previously deleted, contact your Administrator.<\/span><\/p><\/td><\/tr><tr><td><p><span style=\"font-weight: 400;\">404<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">The client secret has been deactivated, contact your Administrator.<\/span><\/p><\/td><\/tr><tr><td><p><span style=\"font-weight: 400;\">400<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">Invalid scope<\/span><\/p><\/td><\/tr><tr><td><p><span style=\"font-weight: 400;\">400<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">Message unsuccessful<\/span><\/p><\/td><\/tr><tr><td><p><span style=\"font-weight: 400;\">500<\/span><\/p><\/td><td><p><span style=\"font-weight: 400;\">ExceptionMessage<\/span><\/p><\/td><\/tr><\/tbody><\/table>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Para hacer el login se tiene que usar request al siguiente endpoint https:\/\/devapi.axosnet.com\/acs\/user\/oauth\/token?scope=group\/access M\u00e9todo POST El scope en el url es obligatorio El Client Id y Client Secret se pasa cifrados en base64 en un header Authorization con el siguiente formato clientId:clientSecret No es necesario pasar Client Id y Client Secret en texto plano, la [&hellip;]<\/p>\n","protected":false},"author":36,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"nf_dc_page":"","footnotes":""},"doc_category":[479],"doc_tag":[],"knowledge_base":[478],"class_list":["post-31711","docs","type-docs","status-publish","hentry","doc_category-acp-3-0-api-endpoints-es","knowledge_base-acs-serviciosweb"],"year_month":"2026-04","word_count":117,"total_views":"14","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Daniel Galindo","author_nicename":"dgalindo","author_url":"https:\/\/axosnet.info\/es\/author\/dgalindo\/"},"doc_category_info":[{"term_name":"AXOSNET CLOUD PORTAL 3.0 - SERVICIOS WEB","term_url":"https:\/\/axosnet.info\/es\/docs\/acs-serviciosweb\/acp-3-0-api-endpoints-es\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"Axosnet Servicios Web","term_url":"https:\/\/axosnet.info\/es\/docs\/acs-serviciosweb\/","term_slug":"acs-serviciosweb"}],"knowledge_base_slug":["acs-serviciosweb"],"_links":{"self":[{"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/docs\/31711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/comments?post=31711"}],"version-history":[{"count":10,"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/docs\/31711\/revisions"}],"predecessor-version":[{"id":33166,"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/docs\/31711\/revisions\/33166"}],"wp:attachment":[{"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/media?parent=31711"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/doc_category?post=31711"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/doc_tag?post=31711"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/axosnet.info\/es\/wp-json\/wp\/v2\/knowledge_base?post=31711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}