Como posso adquirir as credenciais de minha instância?
É na verdade bem simples, basta você acessar o seu https://app.zapfy.me , realizar login e acessar a aba "Minhas Instâncias", selecionar a instância que você deseja na aba "Ações" e pressionar "Visualizar":
Feito isso, você poderá ver as credenciais da instância e também poderá conectar seu whatsapp à ela lendo o QrCode:
Caso você deseja conectar à uma instância via rest, é bem simples, basta você ter em mãos a KEY da instância e o Token da instância , esses valores estarão disponíveis na tela de detalhes de instância acima.
Após isso, basta realizar uma requisição:
Conectando à uma instância
POST
https://api.zapfy.me/v1/instance/{{instanceKey}}/token/{{instanceToken}}/connect
Irá realizar a ação de conectar à uma instância, dado os parâmetros instanceKey
e instanceToken
.
Caso a requisição seja realizada com sucesso, será retornado uma propriedade qrCode
contendo um base64 do QRCode à ser lido para realizar a conexão.
Path Parameters
O key de identificação da instância
O token de acesso da instância
200: OK
Copy {
"result" : {
"qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABJgSURBVO3BQY4YybLgQDJR978yR7vxVQCJjJL6fbiZ/cFaa13wsNZalzystdYlD2utdcnDWmtd8rDWWpc8rLXWJQ9rrXXJw1prXfKw1lqXPKy11iUPa611ycNaa13ysNZalzystdYlD2utdckPH6n8TRWTylTxhspJxaQyVZyonFScqPyXVEwqU8VNKicVk8pNFZPKVPGGyknFpPI3VXzxsNZalzystdYlD2utdckPl1XcpHJS8UXFicpU8UXFpHJSMalMFScqU8WkMlWcqJyofFHxRcXfpDJV/KaKm1RuelhrrUse1lrrkoe11rrkh1+m8kbFFypvVHyhMlV8UTGpTBUnKm9UfFFxk8obKlPFpDJVfFHxhspvUnmj4jc9rLXWJQ9rrXXJw1prXfLD/ziVqeILlS9U3qiYVE5U3qg4UXmj4kRlqnijYlKZKiaVSeVEZaqYVKaKN1ROKiaV/0se1lrrkoe11rrkYa21Lvnh/xiVk4pJ5Q2VqWJSualiUpkqJpVJ5SaVN1TeqJgqTiomlaniC5WTiqliUpl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SmSq+UDmpmFROKm56WGutSx7WWuuSh7XWuuSHy1T+JpU3Kk5UpopJ5QuVm1ROVE4qpoo3VCaVqeKNihOVqeILlaniN6lMFScqU8Wk8oXKVPHFw1prXfKw1lqXPKy11iX2B2utdcHDWmtd8rDWWpc8rLXWJQ9rrXXJw1prXfKw1lqXPKy11iUPa611ycNaa13ysNZalzystdYlD2utdcnDWmtd8rDWWpc8rLXWJf8P5+Fy9r5cnnMAAAAASUVORK5CYII=",
"state" : "disconnected"
} ,
"isValid" : true
}