Generate Dashboard

POST /api/dashboard/generate/

Uploads a CSV or JSON dataset and triggers the standard dashboard-generation pipeline. The API immediately returns a generation_id. For small files the dashboard may finish synchronously and return a dashboard_id plus share link.

Headers

Authorization: Bearer alloy_<your_key>
Content-Type: multipart/form-data

Multipart Payload

Field
Type
Required
Description

file_type

csv | json

Dataset format

file

File

CSV/JSON file (≤10 MB)

title

string

Dashboard title (defaults to dataset name)

instructions

string

Optional AI instructions/prompt

allowed_emails

string

Comma-separated emails (premium only)

allow_pdf_export

bool

Premium-only PDF toggle

allow_scrollable_cards

bool

Premium-only scroll toggle

Example Request

curl
curl -X POST https://api.pickalloy.com/api/dashboard/generate/ \
  -H "Authorization: Bearer alloy_yourapikey" \
  -F "file_type=csv" \
  -F "file=@sales.csv" \
  -F "title=Q3 Sales Overview"

Responses

chevron-rightAsync Response (large files / background processing)hashtag

When the file is large or requires background processing, you'll receive a generation_id to track the status:

Use the generation_id to check the status or set up webhooks for notifications.

chevron-rightSync Response (small files / completed immediately)hashtag

For small files, the dashboard may be generated immediately:


GET /api/dashboard/generate/{generation_id}/

Fetch the latest state for a generation ID (useful when the POST response returned status: "processing").

Headers

Path Parameters

Parameter
Type
Description

generation_id

string

The generation ID returned from the POST request

Example Request

Sample Response

Status Values

  • processing - Dashboard generation is in progress

  • completed - Dashboard has been successfully generated

  • failed - Generation encountered an error

Last updated