Skip to main content
1

Get your API key

Sign in to your dashboard and copy your API key from the settings page.Your API key starts with genui_ and should be kept secure.
2

Create and share an artifact

Make a single POST request to create your artifact and get a shareable URL:
curl -X POST https://genui.sh/api/artifacts/share \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "markdown",
    "title": "Hello World",
    "content": {"text": "# Hello World\n\nThis is my first artifact!"}
  }'
You’ll receive a response with your artifact and shareable URL:
{
  "id": "art_abc123",
  "url": "https://genui.sh/a/art_abc123?token=xyz...",
  "expiresAt": "2024-01-22T12:00:00Z"
}

Next Steps