This commit is contained in:
greeneclipse committed 2026-10-15 21:22:43 +02:00
1 parent 04794aea54
commit cfd31f398c
61 files changed
+2062 -254

No files matched your search

+46 -20
View File
@@ -17,8 +17,10 @@ info:
## Authentication
All /api/v1 operations require a company API key (Bearer or X-API-Key) except
GET /health and GET /openapi.yaml.
Public /api/v1 operations require a company API key (Bearer or X-API-Key)
except GET /health and GET /openapi.yaml. Dashboard-only Team/Admin
operations described separately use a signed-in session and CSRF header;
they are not executable with a company API key.
Document-level security is BearerAuth OR ApiKeyAuth (same key value).
Do not send dashboard session cookies or CSRF tokens to /api/v1.
@@ -36,7 +38,8 @@ info:
1. Sign in at https://api.descrybe.io
2. Open Settings -> API keys (/settings?tab=api-keys)
3. Company admins create a key via dashboard POST /api/api-keys
3. Company admins or teammates granted API Keys management permission create
a key via dashboard POST /api/api-keys
(session cookie + CSRF; not this public OpenAPI surface). The secret is
shown once and starts with dk_.
4. Store it securely. Later list/revoke shows only key_prefix (first 10
@@ -134,8 +137,10 @@ info:
items[].description on the start body is optional source text the model may
rewrite. Poll GET /products/process/{id} for the generated HTML.
meta_title / meta_description are separate short SEO fields and may be
omitted depending on company configuration.
meta_title / meta_description are separate short SEO fields. The SEO-only
processing_type seo_meta generates these fields without replacing saved
product titles or descriptions. Company feature policies may still suppress
metadata output.
Note: Dashboard JSON under /api/* uses session cookies + CSRF and is separate
from this public API-key surface. Other path aliases
@@ -2136,7 +2141,7 @@ paths:
application/json:
schema:
type: object
required: [name, item_path]
required: [name]
properties:
name:
type: string
@@ -2144,7 +2149,9 @@ paths:
item_path:
type: string
description: |
XML item xpath / path stored in options.item_path (e.g. channel/item). Required.
Optional XML record path stored in options.item_path (e.g. SHOPITEM).
Auto-detection is available for typical feeds. For JSON use the item
array path (e.g. results or data.products) when needed.
url:
type: string
format: uri
@@ -2156,7 +2163,8 @@ paths:
enum:
- xml
- csv
description: Source format. xml (default) or csv.
- json
description: Source format. xml, csv or json; defaults to xml when not detected.
sync_interval_minutes:
type: integer
minimum: 1
@@ -2366,13 +2374,14 @@ paths:
description: Remote feed URL, or null to clear
item_path:
type: string
description: XML item xpath / path (stored in options.item_path)
description: Optional XML record path or JSON array path (stored in options.item_path)
feed_type:
type: string
enum:
- xml
- csv
description: Source format. xml or csv.
- json
description: Source format. xml, csv or json.
status:
type: string
description: |
@@ -2472,7 +2481,12 @@ paths:
tags:
- Feeds
summary: Delete feed
description: "Company-admin only. Flat { id, deleted: true } (not a message envelope)."
description: >-
Company-admin only. Atomically removes the input feed and its exclusively
owned, unprocessed or failed raw products. Previously processed products
are retained; active processing rows are not deleted, and products shared
with another existing feed are reassigned to that feed. Flat response
with id, deleted, and deleted_unprocessed_products (no message envelope).
responses:
'200':
description: Feed deleted. Flat FeedDeleted when handleDeleteFeed succeeds. Requires company-admin
@@ -2484,6 +2498,7 @@ paths:
example:
id: 22222222-2222-2222-2222-222222222222
deleted: true
deleted_unprocessed_products: 18
'400':
description: Invalid feed UUID.
content:
@@ -2866,7 +2881,7 @@ paths:
properties:
item_path:
type: string
description: Optional XML item path hint; inferred when omitted
description: Optional XML record path or JSON array path hint; inferred when omitted
example:
item_path: channel/item
responses:
@@ -3165,7 +3180,8 @@ paths:
enum:
- xml
- csv
description: Output format. xml or csv (required).
- json
description: Output format. xml, csv or json (required).
source_feed_id:
type: string
format: uuid
@@ -3660,7 +3676,7 @@ paths:
- Export feeds
summary: Rotate public export URL token
description: |
Replaces public_token so the previous /api/public/export-feeds/{token}.{xml|csv}
Replaces public_token so the previous /api/public/export-feeds/{token}.{xml|csv|json}
URL stops working immediately. Requires company admin (or platform staff).
Response is a flat ExportFeedDetail including the new public_token.
parameters:
@@ -5228,11 +5244,13 @@ components:
description: |
full (default) runs the whole pipeline including AI enhance, which
writes formula-driven HTML descriptions (not a one- or two-sentence
blurb). Named steps category|title|description|attributes (string or
blurb). Named steps category|title|description|attributes|seo_meta (string or
array of those steps); dual-mode also accepts v2 dashboard types such as
normalize_only, enhance_only, attributes_only, eprel_only, categorize_only
(ParseV1ProcessingType). Alias processingType accepted when values match.
The description step still emits the category formula HTML body.
The description step emits the category formula HTML body.
seo_meta generates meta_title and meta_description, preserving
existing product titles and descriptions.
oneOf:
- type: string
enum:
@@ -5241,6 +5259,7 @@ components:
- title
- description
- attributes
- seo_meta
- normalize_only
- enhance
- enhance_only
@@ -5261,6 +5280,7 @@ components:
- title
- description
- attributes
- seo_meta
processingType:
description: CamelCase alias of processing_type (must match if both set)
oneOf:
@@ -5272,7 +5292,7 @@ components:
type: array
items:
type: string
description: Dashboard fine-grained steps; used when processing_type omitted
description: Informational dashboard selection; execution uses processing_type.
examples:
by_ean:
summary: "items[].ean (preferred)"
@@ -5318,15 +5338,15 @@ components:
processing_type:
type: string
description: |
full (default) or a named dashboard step (category, title, description,
attributes, normalize_only, enhance_only, …).
full (default) or a named processing mode (title, description, seo_meta,
seo_meta, attributes, normalize_only, enhance_only, …).
default: full
example: full
processing_types:
type: array
items:
type: string
description: Optional fine-grained steps (dashboard); StartJob uses processing_type
description: Informational dashboard selection; execution uses processing_type. For seo_meta alone set processing_type to seo_meta.
example:
raw_product_ids:
- 2c5ea4c0-4067-4e44-8c5a-9a8b7c6d5e4f
@@ -6064,12 +6084,18 @@ components:
required:
- id
- deleted
- deleted_unprocessed_products
properties:
id:
type: string
format: uuid
deleted:
type: boolean
deleted_unprocessed_products:
type: integer
format: int64
minimum: 0
description: Number of unprocessed/failed raw products deleted with this feed.
PreparedCampaign:
type: object
properties: