Skip to main content
The Cloud API returns structured data that your Starter Kit application consumes. Understanding these data models helps you build effective UI and business logic.

User model

Represents an authenticated user:
Example:

Project model

Represents a project (when using developer endpoints):
Example:

API Key model

Represents a project API key:
Example:
Full API keys are only shown once during creation. Store them securely.

Generation model

Represents an AI generation request:
Example:

Auth tokens

JWT tokens returned during authentication:
Example:
Tokens are automatically stored in httpOnly cookies by the Starter Kit auth system.

Error responses

All API errors follow this structure:
Example:

TypeScript types

Define these types in your application:
lib/types/api.ts

Using types in components

components/project-card.tsx

Pagination

List endpoints support pagination:
Usage:

Next steps

API Reference

Complete endpoint documentation

Authentication

Auth flow details