Aatman Logo Aatman

REST API

The Aatman REST API allows you to programmatically interact with your dashboard, manage users, and retrieve usage analytics.

Authentication

Authenticate your API requests by including your secret API key in the `Authorization` header.

Authorization: Bearer YOUR_API_KEY

Endpoints

GET /v1/components

Retrieves a list of all available UI components in your library.

POST /v1/generate

Generates a new component configuration based on the provided prompt.

cURL
curl https://api.aatman.ai/v1/components \
  -H "Authorization: Bearer sk_test_12345" \
  -H "Content-Type: application/json"
Node.js
const Aatman = require('aatman-node');
const client = new Aatman('sk_test_12345');

const components = await client.components.list();
console.log(components);