AppAutoGtm
Save Project Links
Save booking links for a project.
Accepts EITHER a shared_url (applied to every segment) OR a per_segment mapping (segment_id → url). Validates each non-empty url with _gate_target_url (format + LLM scam gate) and 422s on the first invalid value (input order).
Three phases, in a fixed order (T-1526):
- authz reads in a short session — ownership 404s BEFORE any external call, so a stranger can't burn Scrapfly/LLM against a project they don't own;
- the gates, OUTSIDE any transaction — the fetch+LLM gate runs up to ~45s per URL (GATE_DEADLINE_SECONDS), and the old single-transaction shape held segment row locks and an idle-in-transaction connection across that I/O;
- a write-only transaction with the UPDATEs (re-checks the project so a concurrently-deleted one isn't resurrected by a blind write).
post/api/app-auto-gtm/projects/{project_id}/save-links
Path parameters
project_idinteger required
Cookies
ex_accessstring nullable
ex_orgstring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.