Skip to main content
POST
/
v1
/
wokus
Create a Woku with a file URL
curl --request POST \
  --url https://clientapi.woku.app/v1/wokus \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "Customer Service Experience - Store #123",
  "fileUrl": "https://cdn.example.com/images/product-image.jpg",
  "folderSecondaryKey": "store-123",
  "parentFolderSecondaryKey": "region-north",
  "clientEmail": "customer@example.com",
  "clientPhone": 56912345678
}
'
import requests

url = "https://clientapi.woku.app/v1/wokus"

payload = {
"description": "Customer Service Experience - Store #123",
"fileUrl": "https://cdn.example.com/images/product-image.jpg",
"folderSecondaryKey": "store-123",
"parentFolderSecondaryKey": "region-north",
"clientEmail": "customer@example.com",
"clientPhone": 56912345678
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: 'Customer Service Experience - Store #123',
fileUrl: 'https://cdn.example.com/images/product-image.jpg',
folderSecondaryKey: 'store-123',
parentFolderSecondaryKey: 'region-north',
clientEmail: 'customer@example.com',
clientPhone: 56912345678
})
};

fetch('https://clientapi.woku.app/v1/wokus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://clientapi.woku.app/v1/wokus",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'description' => 'Customer Service Experience - Store #123',
'fileUrl' => 'https://cdn.example.com/images/product-image.jpg',
'folderSecondaryKey' => 'store-123',
'parentFolderSecondaryKey' => 'region-north',
'clientEmail' => 'customer@example.com',
'clientPhone' => 56912345678
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://clientapi.woku.app/v1/wokus"

payload := strings.NewReader("{\n \"description\": \"Customer Service Experience - Store #123\",\n \"fileUrl\": \"https://cdn.example.com/images/product-image.jpg\",\n \"folderSecondaryKey\": \"store-123\",\n \"parentFolderSecondaryKey\": \"region-north\",\n \"clientEmail\": \"customer@example.com\",\n \"clientPhone\": 56912345678\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://clientapi.woku.app/v1/wokus")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"Customer Service Experience - Store #123\",\n \"fileUrl\": \"https://cdn.example.com/images/product-image.jpg\",\n \"folderSecondaryKey\": \"store-123\",\n \"parentFolderSecondaryKey\": \"region-north\",\n \"clientEmail\": \"customer@example.com\",\n \"clientPhone\": 56912345678\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://clientapi.woku.app/v1/wokus")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"Customer Service Experience - Store #123\",\n \"fileUrl\": \"https://cdn.example.com/images/product-image.jpg\",\n \"folderSecondaryKey\": \"store-123\",\n \"parentFolderSecondaryKey\": \"region-north\",\n \"clientEmail\": \"customer@example.com\",\n \"clientPhone\": 56912345678\n}"

response = http.request(request)
puts response.read_body
{
  "statusCode": 400,
  "message": "<string>",
  "error": "Bad Request"
}
{
"statusCode": 403,
"message": "Authentication required",
"error": "Forbidden"
}

Authorizations

Authorization
string
header
required

Company API key. Obtain this from your Woku dashboard under Settings > API Keys. The same key used for the v0 endpoints.

Body

application/json
description
string
required

Description of the woku (product, service, or experience being reviewed).

Example:

"Customer Service Experience - Store #123"

fileUrl
string<uri>
required

URL of an existing file (image or video) to associate with the woku.

Example:

"https://cdn.example.com/images/product-image.jpg"

folderSecondaryKey
string
Example:

"store-123"

parentFolderSecondaryKey
string
Example:

"region-north"

clientEmail
string<email>
Example:

"customer@example.com"

clientPhone
integer
Example:

56912345678

Response

Woku created