Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
thialessandro
Frequent Visitor

Problem connecting API with token

Hello,

 

I need to connect in API with method POST and authorization token, but the response is problem with annonymous authentication.

I tried with M language:

 

 

 

let
content = "{""filtro_body"": {""assunto"": """", ""codigo"": """", ""nome_contato"": """", ""email_conferencia"": """", ""data_criacao"": """", ""data_solucao"": """", ""cliente_token"": """", ""cliente_id"": """", ""status"": """", ""tecnico"": """", ""cliente"": """", ""mesa_trabalho"": """", ""categoria_primaria"": """", ""categoria_secundaria"": """", ""total_avaliacao"": """", ""descricao_avaliacao"": """", ""setor"": """", ""tipo_ticket"": """", ""dispositivo"": """", ""possui_avaliacao"": true, ""prioridade"": 1, ""data_hora_criacao_inicial"": """", ""data_hora_criacao_final"": """" } }",


Source = Json.Document(Web.Contents("https://apiintegracao.milvus.com.br/api/chamado/listagem",
                       [Headers=[#"Authorization"="token", 
                                 #"apikey" = "KEY123", 
                                 #"filtro_body" = "{}",
                                 #"ContentType"="application/json"], 
                                  
                        ManualStatusHandling = {404, 400},
                        
                       
                        Content=Text.ToBinary(content)]))

in
Source

 

 

 

And I tried with Web Data Source, and not works:

thialessandro_0-1697661394033.png

 

The API link I'm trying to connect:

https://developers.milvus.com.br/#api-Chamado-listagemChamados

 

Anyone can help me, please?

 

Sorry about my English level.

1 REPLY 1
lbendlin
Super User
Super User

Most likely you need to use "Bearer "  & token

 

As you can probably appreciate it is nearly impossible to help with API queries without access to said API  (which you may not be willing to provide for understandable reasons)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.