GET /api/v1/projects/{id}

Authentication

Bearer Token API Key (cookie: better-auth.session_token)

Path Parameters

id string required path

Responses

200 Project detail
application/json
id string REQUIRED
user_id string REQUIRED
name string REQUIRED
url string REQUIRED
viewport string REQUIRED
refresh_schedule string REQUIRED
webhook_secret string | null REQUIRED
signing_secret string
Returned only on project creation. Store it server-side and rotate if exposed.
created_at string REQUIRED
updated_at string REQUIRED
demo_count number
demos object[] REQUIRED
Array of:
id string REQUIRED
title string | null REQUIRED
prompt string REQUIRED
status string REQUIRED
thumbnail_key string | null REQUIRED
snapshots string | null REQUIRED
video_key string | null REQUIRED
gif_key string | null REQUIRED
duration_ms number | null REQUIRED
format string REQUIRED
version number REQUIRED
created_at string REQUIRED
updated_at string REQUIRED
404 Not found
curl -X GET 'https://littledemo.com/api/v1/projects/string' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://littledemo.com/api/v1/projects/string', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://littledemo.com/api/v1/projects/string', headers=headers)print(response.json())
200 Response
{  "id": "<string>",  "user_id": "<string>",  "name": "<string>",  "url": "<string>",  "viewport": "<string>",  "refresh_schedule": "<string>",  "webhook_secret": "<string>",  "signing_secret": "<string>",  "created_at": "<string>",  "updated_at": "<string>",  "demo_count": 123,  "demos": [    {      "id": "<string>",      "title": "<string>",      "prompt": "<string>",      "status": "<string>",      "thumbnail_key": "<string>",      "snapshots": "<string>",      "video_key": "<string>",      "gif_key": "<string>",      "duration_ms": 123,      "format": "<string>",      "version": 123,      "created_at": "<string>",      "updated_at": "<string>"    }  ]}
Ask a question... ⌘I