Skip to main content

Authentication

All Storefront API requests require a Bearer token.

Authorization: Bearer {api_token}

Use your store's api_key or apiToken from the EventCube admin.

Store context

Send requests to your store's public domain:

curl https://your-store.eventcube.io/api/v1/events \
-H "Authorization: Bearer YOUR_API_KEY"

The API resolves the store from the hostname. There is no X-Store-Id header or similar.

Errors

StatusMeaning
401Missing Authorization header, invalid format, or wrong token

Example:

{
"message": "Invalid auth token"
}

(Laravel may return a plain-text message body for 401 responses.)