1. Instance
Umum
  • Ayasya WAGW API
    • Instance
      • Create Instance
        POST
      • Generate QR Instance
        GET
      • Get Pairing Code Instance
        GET
      • Pairing Code Instance
        POST
      • Get All Instance
        GET
      • Status Instance
        GET
      • Info Instance
        GET
      • Edit Instance
        PUT
      • Delete Instance
        DELETE
      • Restart Instance
        POST
      • Logout Instance
        POST
    • Profile
      • Get Profile
      • Update Name
      • Update profile status (about)
      • Update profile picture
      • Delete profile picture
    • Message
      • Basic
        • Send Text
        • Send Image
        • Send File
        • Send Voice
        • Send Video
        • Send Link Preview
      • Interactive
        • Send List Poll
      • Location & Contact
        • Send Location
        • Send Contact
      • Action
        • Reaction
        • Forward
        • Seen (Not Support)
        • Star Message
        • Start Typing
        • Stop Typing
    • Chats
      • Get Chats
      • Delete Chat (Not Working)
      • Get Picture
      • Get Message In Chat
      • Delete Message In Chat
      • Read Chat
    • Channels
      • Get Channels (Not Smoth)
      • Create Channels (Not Smoth)
    • Groups
      • Get Groups
      • Count Groups
      • Create Group
      • Group Join Info
      • Get Info Group
      • Get Group Invite Code
      • Group Join
      • Leave Group
      • Get Participants Group
      • Add Participants Group
      • Remove Participants Group
      • Promote Participants Group
      • Demote Participants Group
      • Get Picture Group
      • Set Picture Group
      • Delete Picture Group
      • Update Group Description
      • Update Group Name
      • Get Info Admin Group Setting
      • Edit Info Admin Group Setting
      • Get Message Admin Group Setting
      • Edit Message Admin Group Setting
    • Status
      • Generate New Message ID
      • Text
      • Image
      • Voice
      • Video
      • Delete
    • Contacts
      • Get Contacts (Comming Soon)
      • Get Contact Info (Comming Soon)
      • Block Contact
      • Unblock Contact
      • Update Contact (Comming Soon)
      • Get All Lids Contact (Comming Soon)
      • Count Lids Contact (Comming Soon)
      • Get Phone Number By Lid (Comming Soon)
      • Get Lid By Phone Number (Comming Soon)
    • Presence
      • Set session presence
      • Get all subscribed presence information
      • Get presence for specific chat ID
      • Subscribe to presence events for chat
    • Events
      • Send event message (Comming Soon)
    • Observability
      • Ping Server
      • Health Check Server
      • Check Version
      • Check Environment
      • Check Status
      • Restart Server
      • Stop Server
  1. Instance

Create Instance

Developing
POST
http://localhost:3000/api/instance/create
Last modified:2025-11-24 08:12:45
Maintainer:rama adhitya setiadi
Create Instance

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://localhost:3000/api/instance/create' \
--header 'x-api-key: {{api-key}}' \
--header 'Content-Type: application/json' \
--data '{
    "name": "name instance1",
    "phoneNumber": "62895347113987"
}'
Response Response Example
{
    "success": true,
    "data": {
        "id": "3a4cc1e5-e94f-427f-93a6-7adce5426bdf",
        "name": "name instance",
        "phoneNumber": "628951234567",
        "pairingCode": null,
        "status": "disconnected",
        "qrCode": null,
        "isActive": true,
        "webhookUrl": null,
        "createdAt": "2025-11-08T13:19:25.314Z",
        "updatedAt": "2025-11-08T13:19:25.314Z"
    },
    "message": "Instance created successfully. Use /qr or /pairing-code endpoints to authenticate."
}
Modified at 2025-11-24 08:12:45
Next
Generate QR Instance
Built with