1. Home
  2. Knowledge Base
  3. Developer Articles
  4. Public API

Public API

For any type of API each URL starts with https://app.bananastand.io/api/v1/ and the paths listed below are after that URL part.

NOTE: The api is mainly used to push events and get product page content. If you’re looking to delete or list events see the Private (REST) API instead.

Pushing an Event

Description of Variables:

Variable Required? Description
YOU_PUBLIC_KEY required This is your store’s public key.

You can obtain this from your Banana Stand stores dashboard.

EVENT_CODE required See the list of acceptable event codes.
PRODUCT_ID required ID of the product you’re pushing an event for.
CUSTOMER_ID optional ID of the customer that triggered this event. Set this to 0 if the customer is not logged in.
VISITOR_ID required A UUID or unique identifier for the visitor.

Tip: Yes, you can include this as a blank 1 x 1 white pixel.

Getting Product Page Content

Variable Required? Description
YOU_PUBLIC_KEY required This is your store’s public key.

You can obtain this from your Banana Stand stores dashboard.

PRODUCT_ID required ID of the product you’re trying to get content for.
CUSTOMER_ID optional ID of the customer that is viewing the content.
VISITOR_ID optional A UUID or unique identifier for the visitor.

Was this article helpful?

Related Articles