> ## Documentation Index
> Fetch the complete documentation index at: https://genui.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# genui.sh Documentation

> Turn any data into a shareable UI with one API call

The UI layer for AI agents. Create shareable artifacts with a single API call.

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Get your first artifact in 2 minutes
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Set up your API key
  </Card>

  <Card title="Templates" icon="shapes" href="/templates/overview">
    Explore available templates
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Complete API documentation
  </Card>
</CardGroup>

## What is genui.sh?

genui.sh provides a simple API for AI agents and applications to create beautiful, shareable UI artifacts. Instead of building custom frontends, you can:

* **Create artifacts** from structured data using pre-built templates
* **Share instantly** with signed URLs that work anywhere
* **Support multiple formats** including Markdown, charts, tables, and PDFs

## Key Features

<CardGroup cols={3}>
  <Card title="Multiple Templates" icon="palette">
    Markdown, charts, tables, PDFs, and more
  </Card>

  <Card title="Instant Sharing" icon="share">
    Generate secure share URLs in one call
  </Card>

  <Card title="Agent-Friendly" icon="robot">
    Designed for AI agent workflows
  </Card>
</CardGroup>

## Quick Example

```bash theme={null}
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": "# Welcome\n\nYour first artifact!"}
  }'
```

Response:

```json theme={null}
{
  "id": "art_abc123",
  "url": "https://genui.sh/a/art_abc123?token=xyz...",
  "expiresAt": "2024-01-22T12:00:00Z"
}
```

Ready to get started? Head to the [Quickstart guide](/quickstart).
