API Reference
Last updated
Last updated
To use Botcake API, you need to generate a token. Navigate to Settings -> API and click Generate your Token button.
Please note: Refreshing and Deleting your token will disable all connected API methods!
After a successful token generation, you can use API.
GET
https://botcake.io/api/public_api/v1/pages/[:page_id]/flows
GET
https://botcake.io/api/public_api/v1/pages/[:page_id]/flows/[:path]
GET
https://botcake.io/api/public_api/v1/pages/[:page_id]/flows/:flow_id/statistics
GET
https://botcake.io/api/public_api/v1/pages/[:page_id]/keywords
GET
https://botcake.io/api/public_api/v1/pages/[:page_id]/ice_breaker
GET
https://botcake.io/api/public_api/v1/pages/[:page_id]/main_menu
GET
https://botcake.io/api/public_api/v1/pages/[:page_id]/tools
POST
https://botcake.io/api/public_api/v1/pages/[:page_id]/keywords/create
POST
https://botcake.io/api/public_api/v1/pages/[:page_id]/keywords/update
POST
https://botcake.io/api/public_api/v1/pages/[:page_id]/flows/send_flow
POST
https://botcake.io/api/public_api/v1/pages/[:page_id]/flows/send_content
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
access-token*
String
Token of page(You can create it in Setting/ API)
path*
Array
The directory you want to retrieve (for example, get data in folder id 2, folder id 2 is in folder id 1, folder id 1 has no other folders on it, then path = [1,2])
access-token*
String
Token of page(You can create it in Setting/ API)
access-token*
String
Token of page(You can create it in Setting/ API)
access-token*
String
Token of page(You can create it in Setting/ API)
access-token*
String
Token of page(You can create it in Setting/ API)
access-token*
String
Token of page(You can create it in Setting/ API)
access-token*
String
Token of page(You can create it in Setting/ API)
access-token*
String
Token of page(You can create it in Setting/ API)
access-token*
String
Token of page(You can create it in Setting/ API)
keyword_id*
Integer
The id of the keyword returned in the api get keywords
update*
Object
The fields you want to update.
Currently supported:
{
flow_id(Integer): id của flow sẽ được chạy khi keyword được kích hoạt
}
access-token*
String
Token of page(You can create it in Setting/ API)
psid*
String
The returned id string of the customer on the Facebook page
flow_id*
Integer
The id of the flow you want to send to the client
payload
Object
In the Dynamic Block request body, you can use the Full Contact Data
variable which contains all contact’s information:
{
"user_first_name": "Firstname", "user_last_name": "Lastname", "user_full_name": "Subscriber", "#GENDER{{MALE|FEMALE|UNKNOWN}}": "MALE",
"psid": "123456xxxxxx", "ad_id": "123456xxxxx", "page_name": "Botcake",
"{{SPIN_1|SPIN_2}}": "SPIN_1",
"email": "abc@gmail.com", "phone": "+8438409xxxx", "address": "Ha Noi", "current_date": "2018-07-02T00:00:00+00:00", "CONVERSATION_LINK": "https://pages.fm/323087334762615?c_id=323087334762615_xxxxxxxxxx",
...
}
access_token*
String
Chuỗi token của page(Khách hàng có thể tạo ở mục Cấu hình/ API Access Token)
psid*
String
Chuỗi id của khách hàng trên page Facebook trả về
data*
Object
message_tag
String
payload
Object
In the Dynamic Block request body, you can use the Full Contact Data
variable which contains all contact’s information:
{
"user_first_name": "Firstname", "user_last_name": "Lastname", "user_full_name": "Subscriber", "#GENDER{{MALE|FEMALE|UNKNOWN}}": "MALE",
"psid": "123456xxxxxx", "ad_id": "123456xxxxx", "page_name": "Botcake",
"{{SPIN_1|SPIN_2}}": "SPIN_1",
"email": "abc@gmail.com", "phone": "+8438409xxxx", "address": "Ha Noi", "current_date": "2018-07-02T00:00:00+00:00", "CONVERSATION_LINK": "https://pages.fm/323087334762615?c_id=323087334762615_xxxxxxxxxx",
...
}