Make your first API request

Verify your credentials and tenant with GET /whoami.

Overview

Call GET /whoami to verify the tenant URL and API key before building a larger workflow. The request returns the authenticated identity and tenant context.

curl --request GET \
  --url https://{tenant}.veristage.com/api/v1/whoami \
  --header 'X-Api-Key: $VERISTAGE_API_KEY'
200{ "user": "developer@publisher.com", "tenant": "demo" }

Keep the API key on your server. The snippets read it from an environment variable and never expose it to the browser.

Next steps

On this page