Public
Documentation Settings

Baileys API v1.0.0-beta.1

API documentation for https://github.com/ookamiiixd/baileys-api

Note that all the POST routes expect a JSON body, so make sure to include the header

Sessions

GETList Sessions

http://localhost:3000/sessions

Return list of all sessions and its status

Example Request
curl
curl --location 'http://localhost:3000/sessions'
200 OK
Example Response
json
[
  {
    "id": "john",
    "status": "AUTHENTICATED"
  },
  {
    "id": "john2",
    "status": "CONNECTED"
  }
]
X-Powered-By

Express

Access-Control-Allow-Origin

*

Content-Type

application/json; charset=utf-8

Content-Length

76

ETag

W/"4c-BziKD/6SFOaCZ9uZlY3sFIseQ0E"

Date

Mon, 20 Feb 2023 17:07:42 GMT

Connection

keep-alive

Keep-Alive

timeout=5

GETFind Session

http://localhost:3000/sessions/:sessionId

Simply check if the session exists or not. If you want to check if the session has been authenticated, use the Session Status route instead

PATH VARIABLES
sessionId

john

Session id

Example Request
curl
curl --location 'http://localhost:3000/sessions/john'
200 OK
Example Response
json
{
  "message": "Session found"
}
X-Powered-By

Express

Access-Control-Allow-Origin

*

Content-Type

application/json; charset=utf-8

Content-Length

27

ETag

W/"1b-z0/lHZFWOZczBvlOo3juN03ybgA"

Date

Sun, 11 Dec 2022 09:35:03 GMT

Connection

keep-alive

Keep-Alive

timeout=5