Public
Documentation Settings

BalesOtomatis.id REST API

Selamat datang di Dokumentasi API BalesOtomatis.id

Berikut ini beberapa pra-syarat untuk menggunakan API BalesOtomatis.id

⭐️ Langkah-langkah untuk memulai:

Response Code

200 Success
400 Bad Request / Reached of Rate-Limited
403 Invalid API Key
404 Invalid Number ID
405 Invalid Request / Wrong Required Parameter
408 Timeout Request With Dynamic Message

General

POSTInfo

https://api.balesotomatis.id/public/v1/info
Bodyraw (json)
json
{
    "api_key": "YOUR-API-KEY"
}
Example Request
curl
curl --location 'https://api.balesotomatis.id/public/v1/info' \
--data '{
    "access_token": "xxxx",
    "api_key": "vXXXXXXXxxxz"
}'
200 OK
Example Response
json
{
  "code": "200",
  "message": "Successfully.",
  "info": {
    "package": {
      "name": "Enterprise",
      "active_from": "2024-09-07",
      "active_until": "2025-11-01"
    },
    "user": {
      "email": "youremail@gmail.com",
      "registered_at": "2024-08-16 17:07:53"
    },
    "timezone": "Asia/Jakarta",
    "devices": [
      {
        "number_id": "YOUR-NUMBER-ID",
        "number_whatsapp": "628xxxx",
        "state_connection": "connected",
        "last_connected_at": "2024-09-17 13:00:04"
      }
    ]
  }
}
Date

Mon, 30 Sep 2024 06:16:18 GMT

Server

Apache/2.4.52 (Ubuntu)

Access-Control-Allow-Origin

*

Access-Control-Allow-Headers

X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate

Pragma

no-cache

Content-Length

548

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Content-Type

application/json; charset=utf-8

POSTValidate Number

https://api.balesotomatis.id/public/v1/validate_number
Bodyraw (json)
json
{
    "api_key": "YOUR-API-KEY",
    "number_id": "YOUR-NUMBER-ID",
    "phone_no": "YOUR-TARGET-PHONE-NUMBER",
    "country_code": "62"
}
Example Request
curl
curl --location 'https://api.balesotomatis.id/public/v1/validate_number' \
--data '{
    "api_key": "YOUR-API-KEY",
    "access_token": "YOUR-GENERATED-ACCESS-TOKEN",
    "number_id": "YOUR-NUMBER-ID",
    "phone_no": "YOUR-TARGET-PHONE-NUMBER",
    "country_code": "62"
}'
200 OK
Example Response
json
{
  "code": "200",
  "message": "Valid WhatsApp Number",
  "type": "successfully"
}
Date

Mon, 30 Sep 2024 06:37:29 GMT

Server

Apache/2.4.52 (Ubuntu)

Access-Control-Allow-Origin

*

Access-Control-Allow-Headers

X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding

Expires

Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control

no-store, no-cache, must-revalidate

Pragma

no-cache

Content-Length

70

Keep-Alive

timeout=5, max=100

Connection

Keep-Alive

Content-Type

application/json; charset=utf-8

Grabbing