Skip to main content
POST
/
reviews
Typescript (SDK)
import { Crevio } from "@crevio/sdk";

const crevio = new Crevio({
  apiKey: process.env["CREVIO_API_KEY"] ?? "",
});

async function run() {
  const result = await crevio.reviews.create({
    product: "Oriental Fresh Hat",
    rating: 34216,
    content: "<value>",
  });

  console.log(result);
}

run();
{
  "id": "<string>",
  "object": "<string>",
  "rating": 123,
  "customer_name": "<string>",
  "content": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "customer_image_url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://crevio.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Body

application/json
product
string
required

Product ID (prefix_id) the review is for

rating
integer
required

Star rating, 1-5

content
string
required

Review body

customer
string | null

Customer ID (prefix_id), optional

customer_name
string | null

Display name (required when no customer)

Response

Review created

id
string
required
object
string
required
rating
integer
required
customer_name
string | null
required
content
string | null
required
created_at
string<date-time>
required
customer_image_url
string | null
required