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
- Explore every available operation in the full API reference.
- Create an image from a conversation with the chat-to-image guide.
- Connect an AI agent using the MCP documentation.