Whatsapp Business API (v0.2.3)

Download OpenAPI specification:Download

This is a Unofficial Whatsapp Business Server API

Authentication

ApiKeyAuth

Security Scheme Type API Key
Header parameter name: Authorization

BasicAuth

Security Scheme Type HTTP
HTTP Authorization Scheme basic

account

Log out Account

Log out Account and remove from database

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "data": null,
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

Get List of Accounts

Get List of Accounts

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

Init Account

Init Account

Authorizations:
Request Body schema: application/json

Account

id
string
webhook_url
string

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "webhook_url": "string"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

Get Account by ID

Get Account by ID

Authorizations:
path Parameters
id
required
string

Account ID

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

Get Account Status

Get Account Status

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "data": null,
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

chats

Get all groups

Get all groups

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

Get group info

Get group info by group id

Authorizations:
path Parameters
groupId
required
string

Group ID

Responses

Response samples

Content type
application/json
{
  • "data": {
    },
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

media

Upload media

Upload media

Authorizations:
Request Body schema: multipart/form-data

Media

caption
string
filename
string
id
string
link
string
type
required
string

Responses

Response samples

Content type
application/json
{
  • "data": null,
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}

message

Send message to Chat

send message to Chat

Authorizations:
Request Body schema: application/json

Send message

object (models.Media)
object (models.Media)
object (models.Media)
object (models.Interactive)
preview_url
boolean
Default: false
recipient_type
string
Default: "individual"
Enum: "individual" "group"
object (models.Text)
to
required
string
type
required
string
Default: "text"
Enum: "text" "image" "video" "audio" "document" "interactive"
object (models.Media)

Responses

Request samples

Content type
application/json
{
  • "audio": {
    },
  • "document": {
    },
  • "image": {
    },
  • "interactive": {
    },
  • "preview_url": false,
  • "recipient_type": "individual",
  • "text": {
    },
  • "to": "string",
  • "type": "text",
  • "video": {
    }
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "message": "string",
  • "success": true,
  • "timestamp": "string"
}