# VCG: submit a project without a browser

This is the HTTP path. No JavaScript execution, account, CAPTCHA or issued API key is required. Use an HTTP client that can GET and POST JSON with headers. If your tool can only read webpages, prepare the JSON and hand it to the owner; do not report a submission.


## Review options

Free: about 4 weeks, nofollow. Free with badge: review within 5 business days after verification and complete materials, dofollow while retained. Express: €9.90, review within 48 hours after payment and 7 days on the homepage after publication. All publication requires approval.

For the badge use `plan: "free"`; after saving, request the offer with the same key. This route needs an owner-editable public HTTPS website. The receipt includes `badge.benefits`, `badge.embed_html` and steps with or without website access.

In the API, agent.name identifies the submitting agent. In the web form, select “With an agent” under “How are you submitting?” and specify the agent if known. These details are private: use the owner or team as creator, not the agent.

## 1. Prepare with the owner

Read `/api/submissions/openapi.json` for the complete schema, example, category IDs and response fields. Replace every fictional value in the example. Required: title (1–120), creator (1–120), description (40–5000), public HTTPS product URL (max 2048), authorized contact email (max 254), 1–3 distinct category IDs, `owner_authorized: true`, and `agent.name` (1–120). Names and tools are plain strings. Unknown fields are rejected.

Describe what works today, audience, access/pricing, tools actually used, how AI helped development, and current limitations. Do not invent results. Ask whether the owner submitted before: a pending project is not public. Agent metadata and email are private to admins; title, creator, description, tools, product and media links may be published. Owner authorization is a declaration, not identity verification.

Optional: status `Idea|MVP|Production` (default MVP), tools (up to 20, 80 characters each), locale `en|es` (default en), up to 5 `image_urls`, and `video_url`. URLs must be public HTTPS without credentials, IP addresses or custom ports. Use stable direct JPEG/PNG/GIF/WebP image URLs under 10 MB, not a webpage containing an image. We store the links; the API does not download, verify MIME type, check size or preserve a copy. Do not send signed URLs that expire or contain secrets. Local files, base64 and data: URLs are not accepted through this API. Images are recommended, optional. Use the web form for local files or ask the owner to provide public image links. Limits: 24 KiB JSON request body.

Free is the default: review queue around 4 weeks, nofollow link. Express is EUR 9.90 once: review within 48 hours after payment, permanent dofollow link and 7 homepage days after publication, full refund if not a fit. Select `plan: "express"` only with the owner's expense authorization and `express_authorized: true`. No guarantee of acceptance, traffic, sales or rankings. POST never charges a card. Keep `plan: "free"` when no expense is authorized.

## 2. Validate without saving

POST the prepared JSON to `/api/submissions/validate/` with `Content-Type: application/json`. A 200 response means `valid: true, saved: false`. A 422 response identifies invalid fields. Validation does not verify the product or promise editorial acceptance.

## 3. Save a private key before submitting

Generate 32 cryptographically random bytes, encoded as 64 lowercase hex characters. Keep one key per project privately with the exact JSON. This is a submission-specific key you generate locally, not an account credential issued by VCG. It allows retrying the same submission and reading its receipt. Anyone with the key can read the receipt. Share only with the owner; never put it in a URL, public log or project description. Do not overwrite it on a retry. There is no automatic key recovery.

## 4. Submit and keep the receipt

POST the same JSON to `/api/submissions/`, with `Authorization: Bearer <your-key>` and `Content-Type: application/json`. Use the trailing slash so redirects do not interfere with POST or Authorization. A 201 JSON response confirms receipt. The project remains hidden with `status: "pending_review"`. Save the returned id and timestamp alongside the key and JSON. Repeating the same normalized payload with the same key returns 200 and `replayed: true`, without a new project. Changing the payload under an existing key returns 409; this is not an editing endpoint.

For Express, give `payment.checkout_url` to the owner. Do not pay without authorization. If already paid, keep the Stripe receipt and do not pay again. The API returns `payment.status: paid` once Stripe confirms payment and stops offering `checkout_url`. If it still says `unverified` after paying, keep the receipt and check again; do not pay twice. A checkout or thank-you URL does not prove payment.

## 5. Retrieve status and recover

GET `/api/submissions/` with the same Authorization header, no body. The receipt returns `pending_review`, `published` or `removed`. `public_url` is present only for published projects. No more than one status check per hour is needed; Free review takes weeks. A receipt is available for API submissions only; old web-form submissions cannot be recovered with a new key.

- 400/415/422: fix JSON, content type or listed fields before a new attempt. Nothing is saved by validation errors.
- 401: check that your saved key has exactly 64 lowercase hex characters and the Bearer header is present.
- Timeout/503/lost response: outcome may be unknown. Keep the same key and JSON, GET the receipt, then retry the original POST with the same key if needed. Do not create a new key.
- GET 404: no receipt exists for this key. After an interrupted POST, retry the same JSON with that same key; an in-flight request remains safe to replay. A lost or mistyped key cannot recover a prior submission.
- 409 `submission_key_conflict`: retrieve the prior receipt; do not change keys to resend the project. 409 `possible_duplicate`: stop and ask the owner or VCG about the earlier project. No private details of another submission are disclosed.
- 429: respect Retry-After (currently 3600 seconds), retaining key and JSON. This is individual intake, not a bulk-import API. Limits: 10 new API submissions per owner email per hour, 100 across the API per hour. Replays bypass the new-submission quota.
- Corrections/removal or lost key: contact VCG through Fran Conejos on LinkedIn, https://www.linkedin.com/in/franconejos, with project title, URL and receipt id if available. Do not publish the private key or payment details. No self-service update or delete endpoint exists.

## Command example

`project.json` must contain real authorized data matching the schema. These commands do not finish Express payment. Replace the base URL with the same origin you fetched these instructions from when testing locally.

```sh
VCG_BASE=https://vibecoding.gallery
# Run from a private directory for this project. Preserve this key for retries.
test -f .vcg-submission-key || (umask 077; openssl rand -hex 32 > .vcg-submission-key)
VCG_KEY=$(cat .vcg-submission-key)
curl --fail-with-body -sS "$VCG_BASE/api/submissions/validate/" \
  -H 'Content-Type: application/json' --data-binary @project.json
# Continue only after validation succeeds and the owner authorizes submission.
curl --fail-with-body -sS "$VCG_BASE/api/submissions/" \
  -H "Authorization: Bearer $VCG_KEY" -H 'Content-Type: application/json' \
  --data-binary @project.json
curl --fail-with-body -sS "$VCG_BASE/api/submissions/" \
  -H "Authorization: Bearer $VCG_KEY"
```

## Badge

Free review within 5 business days after badge verification and complete materials. Dofollow while the badge remains. Publication requires approval; no homepage feature.

Optional after saving a free submission. Keep `plan: "free"`, the original JSON and the same private key; do not resubmit the project. Availability: GET `/api/submissions/badge/availability/` → `available`.

1. POST `/api/submissions/badge/` with `{"action":"offer","locale":"en"}` and `Authorization: Bearer <original key>`. This is idempotent.
2. Obtain the owner's permission to edit and deploy their website and accept the terms. If you cannot, hand over the HTML and report that installation is pending.
3. Install the badge on `project.site_url`, using `assets.href` and `assets.light` or `assets.dark`. Visible text also works. The link must be in initial HTML, without `nofollow`, `sponsored` or `ugc`. No iframe or JavaScript-only rendering. Deploy before verifying; never include the private key in HTML.
4. Verify with the request below. Check `check.result === "verified"` and `enrollment.state === "active"`; HTTP 200 alone does not confirm success. `enrollment.review_due_at` gives the review deadline; `project.published` gives actual publication status.
5. After a timeout, retrieve state with GET and the same key before retrying.

The API returns ready-to-paste `embed_html.light` and `embed_html.dark`, `offer_request`, `verify_request` and `next_steps`. No browser required. For a client-rendered site, put a visible footer outside the app root in `index.html` or use server rendering. After deployment, curl `project.site_url` and confirm the link is in the HTML.

Without edit access: privately hand the owner the HTML, `project.site_url`, `studio_url` and original key. They can open the studio, recover the submission with their key and verify. Report “installation and verification pending”. Never put the key in URLs, HTML or public reports.

```html
<a href="https://vibecoding.gallery/?utm_source=badge&amp;utm_medium=referral" target="_blank" rel="noopener"><img src="https://vibecoding.gallery/badges/vcg-en-light.svg" alt="Vibe Coding Gallery · Built with AI" width="240" height="72" /></a>
```

```sh
curl --fail-with-body -sS "$VCG_BASE/api/submissions/badge/" \
  -H "Authorization: Bearer $VCG_KEY" -H 'Content-Type: application/json' \
  --data '{"action":"offer","locale":"en"}'
curl --fail-with-body -sS "$VCG_BASE/api/submissions/badge/" \
  -H "Authorization: Bearer $VCG_KEY" -H 'Content-Type: application/json' \
  --data '{"action":"verify","website_edit_authorized":true,"accepted_terms":"badge-v1"}'
curl --fail-with-body -sS "$VCG_BASE/api/submissions/badge/" -H "Authorization: Bearer $VCG_KEY"
```

Terms `badge-v1`: free review within 5 business days after verified installation and complete materials, subject to editorial approval. Dofollow while the visible link to VCG remains. Removal triggers a notice and 7 days to restore the link before reverting to nofollow; the listing remains. Featured placement is not included. Express keeps its own terms.

Errors: 401 invalid key; 404 submission not found; 409 `badge_unavailable`, `badge_not_eligible` or `badge_offer_required`. Requires a free submission, public HTTPS website, email and description of at least 40 characters. 422 missing permission or invalid request; 429 wait `Retry-After`; 503 retrieve state and retry with the same key. `link_missing`, `link_hidden`, `link_qualified` and `page_noindex` need a website change. `unreachable` is inconclusive and never removes the benefit. Limits: HTML up to 2 MB, public HTTPS without IP targets or custom ports, redirects within the same registrable domain.

Report installation, verification, review deadline and actual publication status to the owner.


## Report to the owner

Report project title/URL, receipt id/time, submission received or unknown, plan, payment not applicable/awaiting owner/verified by Stripe/unknown, publication pending or verified public URL, unresolved facts, and next action. Deliver the private key securely with the owner materials; do not include it in public reports.
