Sites

Creates an additional AI site under the current account. Refuses if the proposed subdomain is taken.

post/sites

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

AiSiteCreateRequest required
prompt, string

Build brief describing the storefront to generate — brand, what you're selling, and the look and feel. Kicks off an AI build. Required unless repository is given.

repository, string

Optional "owner/repo" of an existing GitHub repository (reached through a connected GitHub App installation) to start the site from instead of generating a fresh one. When set, prompt is optional and only tells the agent what to adapt.

name, string
subdomain, string nullable
access_mode, 'public' | 'members' | 'account' | 'specific_members' | 'admins_only' | 'me_only'
show_referral_badge, boolean
indexable, boolean
front_desk_chat_enabled, boolean

Turns on website chat, the front desk on every page, where any visitor can ask questions, book, and leave their details. Shown only while access_mode is public; each visitor reply uses the account's credits.

members, string[]
groups, string[]
metadata, object

Set of key-value pairs you can attach to the object — store your own system's IDs or grouping labels. Keys max 40 chars (up to 50 keys), values stored as strings max 500 chars. On update, keys merge individually; set a key to null or "" to remove it. Echoed back on reads and in webhook payloads.

Response

AI site created. When created with a prompt, an engineering build is started automatically — build_task_id references it; track progress via GET /tasks/{id}. Do not start another build for the site.

AiSite required
id, string required
object, string required
name, string required
access_mode, 'public' | 'members' | 'account' | 'specific_members' | 'admins_only' | 'me_only' required
subdomain, string nullable required
github_repo_full_name, string nullable required
metadata, object required
domain, string nullable required
github_url, string nullable required
domain_verified, boolean required
app_url, string nullable required
preview_image_url, string nullable required
is_live, boolean required
show_referral_badge, boolean required
indexable, boolean required
front_desk_chat_enabled, boolean required
members, string[] required
build_task_id, string nullable required
created_at, string required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    2 more changes in this revision