 # API HCI ENVIAZAP # ATENÇÃO! Acesse o Link da nova documentação abaixo. **Nova documentação:** https://app.swaggerhub.com/apis-docs/enviazap/api/1.0 * **BaseUrl** : http://api.hci.com.br ## ```1. INSTANCE``` Manage instance --- > ### /getQrcode ```markdown GET /getQrcode?token={token} ``` * **URL example** : ```markdown http://api.hci.com.br/getQrcode?token=FF69CCAD91CC0523C81C ``` * **Parameters** : | Name | Type | Description | | :-----: | ---- | ----------- | --------- | | token | string | Your access token | * **Response**: statuscode: 200 OK ```json { "qrcode": "data:image/png;base64,iVBORw0KGgoAQgAAAEICAYAAACj9mr==" } ``` * **response no content** statuscode: 204 ```json { "qrcode": "loading" } ```  Timeout for updating qrcode: 50s --- > ### /getStatus ```markdown POST /getStatus?token={token} ``` * **URL example** : ```markdown http://api.hci.com.br/getStatus?token=FF69CCAD91CC0523C81C ``` * **Parameters** : | Name | Type | Description | | :-----: | ---- | ----------- | --------- | | token | string | Your access token | * **Response**: statuscode: 200 OK ```json { "connected": "true" } ``` --- > ### /logout ```markdown POST /logout?token={token} ``` * **URL example** : ```markdown http://api.hci.com.br/logout?token=FF69CCAD91CC0523C81C ``` * **Parameters** : | Name | Type | Description | | :-----: | ---- | ----------- | --------- | | token | string | Your access token | * **Response**: statuscode: 200 OK ```json { "result": "Logout send to whatsapp" } ``` ## ```2. MESSAGES``` Send messages --- > ### /sendMessage ```markdown POST /sendMessage?token={token} ``` * **URL example** : ```markdown http://api.hci.com.br/sendMessage?token=FF69CCAD91CC0523C81C ``` * **Parameters** : | Name | Type | Description | | :-----: | ---- | ----------- | --------- | | token | string | Your access token | * **Body Fields** : | Name | Type | Description | | :-----: | ---- | ----------- | --------- | | ddi | string | Country code | | phoneDest | string | Target phone | | message | string | Your message | * **Body** required* Example: ```json { "ddi": "55", "phoneDest": "9999999999", "message": "Hello word" } ``` * **Response**: statuscode: 200 OK ```json { "message": "Message sent successfully" } ``` * **Bad response** statuscode: 400 ```json { "message": "message does not send" } ``` --- > ### /sendFile ```markdown POST /sendFile?token={token} ``` * **URL example** : ```markdown http://api.hci.com.br/sendFile?token=FF69CCAD91CC0523C81C ``` * **Parameters** : | Name | Type | Description | | :-----: | ---- | ----------- | --------- | | token | string | Your access token | * **Body Fields** : | Name | Type | Description | | :-----: | ---- | ----------- | --------- | | ddi | string | Country code | | phoneDest | string | Target phone | | message | string | Your message | | base64 | string | Base64 string with MIME type | * **Supported MIME list**: ```json image/png image/jpg audio/ogg application/pdf ``` * **Body** required* Example: ```json { "ddi": "55", "phoneDest": "9999999999", "message": "Hello word", "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAA=" } ``` * **Response**: statuscode: 200 OK ```json { "message": "Message sent successfully" } ``` * **Response**: statuscode: 400 Bad request ```json { "message": "message does not send" } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up