Introduction

This documentation gives you a first access to Spoki Business API.

Now you can send whatsapp messages and start automations by api.

API Reference

POST /wh/ap/{WEBHOOK UUID}

This endpoint gives you the possibility to start an automation created on Spoki Platform.

Body:

{
	"secret": "{WEBHOOK_SECRET}",
	"phone": "str", <required>
	"first_name": "str",
	"last_name": "str",
	"email": "str",
	"custom_fields": {
    "CUSTOM_FIELD_1": "str",
    "CUSTOM_FIELD_2": "str",
    "CUSTOM_FIELD_N": "str"
  }
}

Example Request

**POST** <https://app.spoki.it/wh/ap/>{WEBHOOK UUID}/

Example Response

STATUS: 200
{
	"success": true
}

POST /business/api/send/{API_KEY}/

This endpoint gives you the possibility to send a whatsapp message.

IMPORTANT: Request us a personal api_key. It will be used to performe requests.