Skip to main content
curl -X POST https://api.usenaive.ai/v1/apps/ca7a1b8c-a4d4-4824-b92d-89d5b297eb62/retry \
  -H "Authorization: Bearer nv_sk_live_..."
{
  "status": "retrying",
  "vercel": "created",
  "supabase": "provisioning"
}

Behavior

Use this endpoint when an app is stuck in error or provisioning status, or is missing provider infrastructure (e.g. an active fullstack app whose background Supabase provisioning failed). It checks which provider links are missing and re-provisions them:
  • No Vercel project linked → creates the Vercel project, seeds NEXT_PUBLIC_APP_URL, and links it.
  • Fullstack with no Supabase project linked → starts Supabase provisioning in the background (the supabase object appears on GET /v1/apps/:id once healthy).
  • Already-linked infrastructure is left untouched.
On success the app status is set back to active.

Response Fields

FieldValuesMeaning
vercelok, createdok = already linked; created = re-provisioned now
supabaseok, provisioning, not_applicableprovisioning = re-provisioning started in background; not_applicable = frontend_only app

Errors

400
{
  "error": {
    "code": "invalid_input",
    "message": "App has no failed or missing provisioning to retry"
  }
}
502
{
  "error": {
    "code": "provider_error",
    "message": "Vercel project creation failed: 429"
  }
}